[][src]Trait stm32f3xx_hal::can::Id

pub trait Id {
    type BaseId;
    type ExtendedId;
    pub fn base_id(&self) -> Option<Self::BaseId>;
pub fn extended_id(&self) -> Option<Self::ExtendedId>; }

A type that can either be BaseId or ExtendedId

Associated Types

type BaseId[src]

The (11-bit) BaseId variant.

type ExtendedId[src]

The (29-bit) ExtendedId variant.

Loading content...

Required methods

pub fn base_id(&self) -> Option<Self::BaseId>[src]

Returns Some(base_id) if this Can-ID is 11-bit. Returns None if this Can-ID is 29-bit.

pub fn extended_id(&self) -> Option<Self::ExtendedId>[src]

Returns Some(extended_id) if this Can-ID is 29-bit. Returns None if this Can-ID is 11-bit.

Loading content...

Implementors

impl Id for CanId[src]

type BaseId = u16

type ExtendedId = u32

Loading content...