初级会员

- 积分
- 57
- 金钱
- 57
- 注册时间
- 2015-2-7
- 在线时间
- 3 小时
|
5金钱
typedef struct //?¨??·??????á????
{
uint8_t FrameHead_1;
uint8_t FrameHead_2;
uint8_t FrameID;
uint8_t FrameCount;
int16_t AngleInt1;
int16_t AngleInt2;
uint8_t StatusWord;
int16_t Rsv;
uint8_t TxCheckSum;
} StructTxFrame;
typedef union //?¨??·???????????
{
StructTxFrame TxFrame;
uint8_t TxBuffer[16];
} UnionTxFrame;
UnionTxFrame UniTxFrame = { 0} ;
UniTxFrame.TxFrame.AngleInt1 = 1;
编译提示最后一行错误: error: #77-D: this declaration has no storage class or type specifier
error: #147: declaration is incompatible with "UnionTxFrame UniTxFrame" (declared at line 31
|
|
|