void CAN_Receive(uint8_t FIFONumber, CanRxMsg* RxMessage)
typedef struct { uint32_t StdId; uint32_t ExtId; uint8_t IDE; uint8_t RTR; uint8_t DLC; uint8_t Data[8]; uint8_t FMI; } CanRxMsg;
IDE | 説明 |
CAN_ID_STD | 標準識別子を使用します |
CAN_ID_EXT拡張識別子を使用します |
RTR | 説明 |
CAN_RTR_DATA | Data frame |
CAN_RTR_REMOTE | Remote frame |
/* Receive a message with the CAN */ CanRxMsg RxMessage; CAN_Receive(&RxMessage);