typedef struct _MessageDetail
{
unsigned char LEN;
unsigned char FF;
unsigned int CANID;
unsigned int DATAA;
unsigned int DATAB;
}MessageDetail;
MessageDetail MessageDetailT;
以下代码是否正确:
MessageDetailT.LEN=LEN;
MessageDetailT.FF=FF;
MessageDetailT.CANID=ID;
MessageDetailT.DATAA=0;
MessageDetailT.DATAB=0;
请指点,新手学习。。。。
|