这是结构体的定义,
typedef struct {
flexcan_msgbuff_id_type_t msg_id_type; /*!< Type of message ID (standard or extended)*/
uint32_t data_length; /*!< Length of Data in Bytes*/
#if FEATURE_CAN_HAS_FD
bool fd_enable; /*!< Enable or disable FD*/
uint8_t fd_padding; /*!< Set a value for padding. It will be used when the data length code (DLC)
specifies a bigger payload size than data_length to fill the MB */
bool enable_brs; /*!< Enable bit rate switch inside a CAN FD format frame*/
#endif
bool is_remote; /*!< Specifies if the frame is standard or remote */
} flexcan_data_info_t;
我们在输出和接收数据的时候都会定义一个这个类型的对象
flexcan_data_info_t xTxDataInfo =
{
.data_length = 8,