|
nros platform-cffi
Canonical C ABI for porting the nros platform abstraction
|
#include <platform_can.h>
Data Fields | |
| uint8_t | data [64] |
| uint8_t | flags |
| uint32_t | id |
| uint8_t | len |
One CAN or CAN FD frame. len is the payload in BYTES, never a DLC: the backend maps bytes to the wire DLC, and a length that is not a valid size is refused, never padded (padding is payload layout, the application's).
| uint8_t nros_platform_can_frame_t::data[64] |
Payload; bytes past len are ignored on send and unspecified on recv.
| uint8_t nros_platform_can_frame_t::flags |
NROS_PLATFORM_CAN_FLAG_* / NROS_PLATFORM_CAN_SEND_WAIT_TX.
| uint32_t nros_platform_can_frame_t::id |
11- or 29-bit identifier, per NROS_PLATFORM_CAN_FLAG_EXT.
| uint8_t nros_platform_can_frame_t::len |
Payload bytes: 0..8 classic; 0..8, 12, 16, 20, 24, 32, 48, 64 FD.