typedef struct PROTOCOL_HEAD_t {
union {//共用体确定好头的大小,结构体再来规范具体的对象?防止字节对齐造成浪费么?
uint64_t head : 40;//位域
struct {
uint8_t a1 ;
uint8_t a2 ;
uint8_t cmd ;
uint8_t len ;
uint8_t crc ;
};
};
}* protocol_head_p ;
07-10
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交