|
PER Firmware
|
Classic CAN frame. More...
#include <can.h>
Public Attributes | ||
| CAN_TypeDef * | Bus | |
| bool | IDE | |
| union { | ||
| uint16_t StdId | ||
| uint32_t ExtId | ||
| }; | ||
| uint8_t | DLC | |
| uint8_t | Data [8] | |
| FDCAN_GlobalTypeDef * | Bus | |
| union { | ||
| uint16_t StdId | ||
| uint32_t ExtId | ||
| }; | ||
Classic CAN frame.
used for both TX and RX.
| union { ... } CanMsgTypeDef_t |
| union { ... } CanMsgTypeDef_t |
| CAN_TypeDef* CanMsgTypeDef_t::Bus |
When RX - Bus = which peripheral the frame arrived on When TX - Bus = which peripheral should transmits it
| FDCAN_GlobalTypeDef* CanMsgTypeDef_t::Bus |
When RX - Bus = which peripheral the frame arrived on When TX - Bus = which peripheral should transmits it
| uint8_t CanMsgTypeDef_t::Data |
payload bytes
| uint8_t CanMsgTypeDef_t::DLC |
payload length, 0-8
| uint32_t CanMsgTypeDef_t::ExtId |
valid when IDE, 29-bit
| bool CanMsgTypeDef_t::IDE |
true = extended ID, false = standard ID
| uint16_t CanMsgTypeDef_t::StdId |
valid when !IDE, 11-bit