//
// Created by DELL on 2025/2/10.
//

#ifndef FAN_BOARD_RCT6_FAN_H
#define FAN_BOARD_RCT6_FAN_H
#include "main.h"
#include "tim.h"
typedef struct {
    uint32_t timChannel;
    TIM_HandleTypeDef *htim;
}PWMComParam_t;
typedef struct {
    GPIO_TypeDef *GPIOx;
    uint16_t GPIO_Pin;
}dipComParam_t;
extern uint8_t  dipBuf[3];
extern uint8_t dipNum;
uint8_t read_dip5();
extern  PWMComParam_t PWMComParam[3];
void fan_control(PWMComParam_t PWMParam,uint8_t speed);
#endif //FAN_BOARD_RCT6_FAN_H
