light_driver.h 502 B

1234567891011121314151617
  1. #ifndef __LIGHT_DRIVER_H
  2. #define __LIGHT_DRIVER_H
  3. #include "stm32f1xx_hal.h"
  4. #include "var.h"
  5. typedef struct
  6. {
  7. GPIO_TypeDef* Port;
  8. uint16_t Pin;
  9. }MC_LightDriver_IO_Struct_t;
  10. extern MC_LightDriver_IO_Struct_t HeadLightIO_Groups[3], TailLightIO_Groups[3];
  11. void LightDriver_Init(void);
  12. void LightDriver_Process(uint8_t Light_Mode, MC_LightVoltage_Struct_t HeadLightVol, MC_LightVoltage_Struct_t TailLightVol, TrueOrFalse_Flag_Struct_t IsBreakFlag, MC_LightSwitch_Struct_t LightSwitchCode);
  13. #endif