typedef struct
{
uint32_t Frame;
uint32_t MsgID;
uint32_t DataA;
uint32_t DataB;
};
缺少名字
typedef struct
{
struct data TXBUF[CAN_TXBUF_LENGTH];//!定义结构体时其成员不能指定存储位置,把data去掉
volatile uint32_t head; /*!< ReceiveData Tx ring buffer head index */
volatile uint32_t tail; /*!< ReceiveData Tx ring buffer tail index */
volatile uint32_t number;
}CAN_TXBUF;
|