#[repr(C)]pub struct nros_platform_can_frame_t {
pub id: u32,
pub flags: u8,
pub len: u8,
pub data: [u8; 64],
}Expand 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).
Fields§
§id: u3211- or 29-bit identifier, per NROS_PLATFORM_CAN_FLAG_EXT.
flags: u8NROS_PLATFORM_CAN_FLAG_* / NROS_PLATFORM_CAN_SEND_WAIT_TX.
len: u8Payload bytes: 0..8 classic; 0..8, 12, 16, 20, 24, 32, 48, 64 FD.
data: [u8; 64]Payload; bytes past len are ignored on send and unspecified on recv.
Trait Implementations§
Source§impl Clone for nros_platform_can_frame_t
impl Clone for nros_platform_can_frame_t
Source§fn clone(&self) -> nros_platform_can_frame_t
fn clone(&self) -> nros_platform_can_frame_t
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for nros_platform_can_frame_t
Auto Trait Implementations§
impl Freeze for nros_platform_can_frame_t
impl RefUnwindSafe for nros_platform_can_frame_t
impl Send for nros_platform_can_frame_t
impl Sync for nros_platform_can_frame_t
impl Unpin for nros_platform_can_frame_t
impl UnsafeUnpin for nros_platform_can_frame_t
impl UnwindSafe for nros_platform_can_frame_t
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more