[][src]Trait stm32f3xx_hal_v2::can::Frame

pub trait Frame {
    type Id: Id;
    pub fn is_remote_frame(&self) -> bool;
pub fn is_data_frame(&self) -> bool;
pub fn id(&self) -> Self::Id;
pub fn data(&self) -> Option<&[u8]>; pub fn is_base_id_frame(&self) -> bool { ... }
pub fn is_extended_id_frame(&self) -> bool { ... } }

A Can Frame

Associated Types

type Id: Id[src]

The Id type of this Frame

Loading content...

Required methods

pub fn is_remote_frame(&self) -> bool[src]

Returns true if this Frame is a remote frame

pub fn is_data_frame(&self) -> bool[src]

Returns true if this Frame is a data frame

pub fn id(&self) -> Self::Id[src]

Returns the Can-ID

pub fn data(&self) -> Option<&[u8]>[src]

Returns Some(Data) if data frame. Returns None if remote frame.

Loading content...

Provided methods

pub fn is_base_id_frame(&self) -> bool[src]

Returns true if this Frame is a extended id frame

pub fn is_extended_id_frame(&self) -> bool[src]

Returns true if this Frame is a extended id frame

Loading content...

Implementors

impl Frame for CanFrame[src]

type Id = CanId

Loading content...