Initial commit: CCU621_M firmware project with BLE debug link support.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
|
||||
#ifndef LED_CTRL_H
|
||||
#define LED_CTRL_H
|
||||
|
||||
#ifdef __cplusplus /*C++编译环境下兼容C语言*/
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*------ Exported includes(头文件) ----------------------*/
|
||||
#include "main.h"
|
||||
#include "publicdata/publicdata.h"
|
||||
/*------ Exported macro(宏定义) -------------------------*/
|
||||
|
||||
/*------ Exported struct(结构体定义) --------------------*/
|
||||
typedef enum
|
||||
{
|
||||
E_PILE_STATE_TYPE_FAULT = 0, //存在故障
|
||||
E_PILE_STATE_TYPE_IDLE, //空闲未插枪
|
||||
E_PILE_STATE_TYPE_STARTING, //启动中
|
||||
E_PILE_STATE_TYPE_CHARGING, //充电中
|
||||
E_PILE_STATE_TYPE_PLUGGED_NOT_START, //插枪未启动
|
||||
}E_PILE_STATE_TYPE;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
E_LED_TYPE_GREEN_STEADY = 0, //绿灯常亮
|
||||
E_LED_TYPE_GREEN_BLINK , //绿灯闪烁
|
||||
E_LED_TYPE_RED_STEADY , //红灯常亮
|
||||
E_LED_TYPE_RED_BLINK , //红灯闪烁
|
||||
E_LED_TYPE_YELLOW_STEADY , //黄灯常量
|
||||
E_LED_TYPE_YELLOW_BLINK , //黄灯闪烁
|
||||
E_LED_TYPE_GREEN_RUNNING, //绿灯流水
|
||||
E_LED_TYPE_RED_RUNNING, //红灯流水
|
||||
E_LED_TYPE_YELLOW_RUNNING, //黄灯流水
|
||||
}E_LED_STATE_TYPE;
|
||||
/*------ Exported variables(变量定义) -------------------*/
|
||||
|
||||
/*------ Exported function prototypes (函数声明) -------*/
|
||||
void v_led_init(void);
|
||||
void v_led_ctrl(U16_T u16_sleepTime);
|
||||
U8_T u8_led_state_get(U8_T u8_gunNo);
|
||||
void v_led_state_refresh(void);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* LED_CTRL_H */
|
||||
Reference in New Issue
Block a user