|
LCM — CH32V003 Light Control Module
Light Control Module, I2C slave
|
Go to the source code of this file.
Macros | |
| #define | EVENT_LOG_ENABLE 1 |
Functions | |
| void | EventLog_Init (void) |
| void | EventLog_Process (void) |
| void | EventLog_Printf (const char *fmt,...) |
| void | EventLog_BootBanner (void) |
| void | EventLog_UserDataInit (UserData_Status st) |
| void | EventLog_LcmConfig (uint8_t i2c_addr, const uint8_t group_mask[4], uint8_t relay_state) |
| void | EventLog_PushI2cCmd (uint8_t cmd, uint8_t param, uint8_t has_param) |
| void | EventLog_PushI2cReadArm (uint8_t cmd) |
| void | EventLog_PushLcmError (uint8_t lcm_err_code) |
| void | EventLog_PushNvm (uint8_t tag, uint8_t status) |
| void | EventLog_PushSystem (uint8_t tag) |
| #define EVENT_LOG_ENABLE 1 |
Definition at line 14 of file event_log.h.
| void EventLog_BootBanner | ( | void | ) |
Definition at line 396 of file event_log.c.
References EVENT_LOG_BAUD, EventLog_Printf(), and LCM_ID.
Referenced by main().
| void EventLog_Init | ( | void | ) |
Definition at line 335 of file event_log.c.
References EventLog_UartInit(), s_ring_head, s_ring_tail, and s_seq.
Referenced by main().
| void EventLog_LcmConfig | ( | uint8_t | i2c_addr, |
| const uint8_t | group_mask[4], | ||
| uint8_t | relay_state ) |
Definition at line 414 of file event_log.c.
References EventLog_Printf(), and s_seq.
Referenced by main().
| void EventLog_Printf | ( | const char * | fmt, |
| ... ) |
Definition at line 381 of file event_log.c.
References EventLog_UartWrite(), and s_line.
Referenced by EventLog_BootBanner(), EventLog_LcmConfig(), and EventLog_UserDataInit().
| void EventLog_Process | ( | void | ) |
Definition at line 356 of file event_log.c.
References EVENT_LOG_RING_SIZE, EventLog_FormatRecord(), s_ring, s_ring_head, and s_ring_tail.
Referenced by LCM_Module_Poll(), and main().
| void EventLog_PushI2cCmd | ( | uint8_t | cmd, |
| uint8_t | param, | ||
| uint8_t | has_param ) |
Definition at line 425 of file event_log.c.
References EventLog_PushRaw(), and EVT_I2C_CMD.
Referenced by LCM_I2C_OnRxData().
| void EventLog_PushI2cReadArm | ( | uint8_t | cmd | ) |
Definition at line 430 of file event_log.c.
References EventLog_PushRaw(), and EVT_I2C_READ.
Referenced by LCM_I2C_OnRxData().
| void EventLog_PushLcmError | ( | uint8_t | lcm_err_code | ) |
Definition at line 435 of file event_log.c.
References EventLog_PushRaw(), and EVT_LCM_ERR.
Referenced by LCM_SetError().
| void EventLog_PushNvm | ( | uint8_t | tag, |
| uint8_t | status ) |
Definition at line 440 of file event_log.c.
References EventLog_PushRaw(), and EVT_NVM.
Referenced by LCM_Module_Poll(), LCM_SetUserDataCommitError(), and LCM_SetUserDataError().
| void EventLog_PushSystem | ( | uint8_t | tag | ) |
Definition at line 445 of file event_log.c.
References EventLog_PushRaw(), and EVT_SYS.
Referenced by LCM_Module_Poll(), and main().
| void EventLog_UserDataInit | ( | UserData_Status | st | ) |
Definition at line 404 of file event_log.c.
References EventLog_Printf(), EventLog_UserDataName(), s_seq, and USER_DATA_OK.
Referenced by main().