[][src]Trait embedded_hal_can::Frame

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

A Can Frame

Associated Types

type Id: Id

The Id type of this Frame

Loading content...

Required methods

fn is_remote_frame(&self) -> bool

Returns true if this Frame is a remote frame

fn is_data_frame(&self) -> bool

Returns true if this Frame is a data frame

fn id(&self) -> Self::Id

Returns the Can-ID

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

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

Loading content...

Provided methods

fn is_base_id_frame(&self) -> bool

Returns true if this Frame is a extended id frame

fn is_extended_id_frame(&self) -> bool

Returns true if this Frame is a extended id frame

Loading content...

Implementors

Loading content...