#pragma pack(push)
#pragma pack(1) //按字节对齐
typedef struct
{
uint8 cmd_head; //帧头
uint8 cmd_type; //命令类型(UPDATE_CONTROL)
uint8 ctrl_msg; //CtrlMsgType-指示消息的类型
uint16 screen_id; //产生消息的画面ID
uint16 control_id; //产生消息的控件ID
uint8 control_type; //控件类型
uint8 param[256];//可变长度参数,最多256个字节
uint8 cmd_tail[4]; //帧尾
} CTRL_MSG,*PCTRL_MSG;
#pragma pack(pop)
Warning[Pa039]: use of address of unaligned structure member E:\a_sw\stm32_sw_xx\t106\user\b01_hmi_06.c 47 |