10 #ifndef _I2C_PROTOCOL_MODULE_ 11 #define _I2C_PROTOCOL_MODULE_ 26 #include "system_msg_deal.h" 31 #define IIC_PROTOCOL_CMD_ID 1 32 #define IIC_PROTOCOL_SEC_ID 0 34 #define IIC_PROTOCOL_DEBUG 0 36 #define IIC_WAKEUP_WORD_CMDID 0x01 37 #define IIC_WAKEUP_WORD_SECID 0x01e05501 39 #if IIC_PROTOCOL_CMD_ID 40 #define IIC_SEND_CMDID_LEN 3 41 #define I2C_RECV_STATUS_CMDID 0x02 42 #define IIC_RECV_CMDID_LEN 4 45 #if IIC_PROTOCOL_SEC_ID 46 #define IIC_SEND_SECID_LEN 6 47 #define I2C_RECV_STATUS_SECID 0x03 48 #define IIC_RECV_SECID_LEN 7 51 #define I2C_RECV_STATUS_REG 0x01 52 #define I2C_RECV_STATUS_CHECK_SUM 0x04 53 #define I2C_RECV_STATUS_END 0x05 62 #if IIC_PROTOCOL_CMD_ID 81 #if IIC_PROTOCOL_SEC_ID 85 I2C_REG_PLAY_SECID = 0x05,
105 #if IIC_PROTOCOL_CMD_ID 109 #if IIC_PROTOCOL_SEC_ID 110 i2c_secid_msg_t secid_msg;
123 uint32_t
i2c_send_data(
volatile uint8_t *reg, uint8_t *data);
uint8_t cmd_id
Definition: i2c_protocol_module.h:74
Definition: i2c_protocol_module.h:65
Definition: i2c_protocol_module.h:66
Definition: i2c_protocol_module.h:101
此模块用于查询和读取命令词信息(来源于命令词信息excel表格).
uint32_t userapp_deal_i2c_msg(sys_msg_t *msg)
uint32_t i2c_send_data(volatile uint8_t *reg, uint8_t *data)
uint32_t i2c_recv_secid_packet(uint8_t data)
void i2c_product_send_msg(cmd_handle_t cmd_handle)
void i2c_communicate_init(void)
i2c_cmdid_reg_t
Definition: i2c_protocol_module.h:63
void * cmd_handle_t
定义命令词信息结构的句柄类型。
Definition: command_info_v2.h:54
uint8_t end
Definition: i2c_protocol_module.h:76
Definition: i2c_protocol_module.h:71
uint32_t i2c_recv_cmdid_packet(uint8_t data)
uint8_t reg
Definition: i2c_protocol_module.h:73
uint8_t check_sum
Definition: i2c_protocol_module.h:75