10 #ifndef _I2C_PROTOCOL_MODULE_ 11 #define _I2C_PROTOCOL_MODULE_ 30 #define IIC_PROTOCOL_CMD_ID 1 31 #define IIC_PROTOCOL_SEC_ID 0 33 #define IIC_PROTOCOL_DEBUG 0 35 #define IIC_WAKEUP_WORD_CMDID 0x01 36 #define IIC_WAKEUP_WORD_SECID 0x01e05501 38 #if IIC_PROTOCOL_CMD_ID 39 #define IIC_SEND_CMDID_LEN 3 40 #define I2C_RECV_STATUS_CMDID 0x02 41 #define IIC_RECV_CMDID_LEN 4 44 #if IIC_PROTOCOL_SEC_ID 45 #define IIC_SEND_SECID_LEN 6 46 #define I2C_RECV_STATUS_SECID 0x03 47 #define IIC_RECV_SECID_LEN 7 50 #define I2C_RECV_STATUS_REG 0x01 51 #define I2C_RECV_STATUS_CHECK_SUM 0x04 52 #define I2C_RECV_STATUS_END 0x05 61 #if IIC_PROTOCOL_CMD_ID 80 #if IIC_PROTOCOL_SEC_ID 84 I2C_REG_PLAY_SECID = 0x05,
104 #if IIC_PROTOCOL_CMD_ID 108 #if IIC_PROTOCOL_SEC_ID 109 i2c_secid_msg_t secid_msg;
122 uint32_t
i2c_send_data(
volatile uint8_t *reg, uint8_t *data);
uint8_t cmd_id
Definition: i2c_protocol_module.h:73
Definition: i2c_protocol_module.h:64
Definition: i2c_protocol_module.h:65
Definition: i2c_protocol_module.h:100
此模块用于查询和读取命令词信息(来源于命令词信息excel表格).
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:62
void * cmd_handle_t
定义命令词信息结构的句柄类型。
Definition: command_info_v2.h:54
uint8_t end
Definition: i2c_protocol_module.h:75
Definition: i2c_protocol_module.h:70
uint32_t userapp_deal_i2c_msg(sys_msg_i2c_data_t *msg)
uint32_t i2c_recv_cmdid_packet(uint8_t data)
uint8_t reg
Definition: i2c_protocol_module.h:72
uint8_t check_sum
Definition: i2c_protocol_module.h:74