nros platform-cffi
Canonical C ABI for porting the nros platform abstraction
Loading...
Searching...
No Matches
nros_platform_can_frame_t Struct Reference

#include <platform_can.h>

Data Fields

uint8_t data [64]
uint8_t flags
uint32_t id
uint8_t len

Detailed Description

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).

Field Documentation

◆ data

uint8_t nros_platform_can_frame_t::data[64]

Payload; bytes past len are ignored on send and unspecified on recv.

◆ flags

uint8_t nros_platform_can_frame_t::flags

NROS_PLATFORM_CAN_FLAG_* / NROS_PLATFORM_CAN_SEND_WAIT_TX.

◆ id

uint32_t nros_platform_can_frame_t::id

11- or 29-bit identifier, per NROS_PLATFORM_CAN_FLAG_EXT.

◆ len

uint8_t nros_platform_can_frame_t::len

Payload bytes: 0..8 classic; 0..8, 12, 16, 20, 24, 32, 48, 64 FD.


The documentation for this struct was generated from the following file: