stm32-metapac

Crates

git

Versions

stm32u585zi

Flavors

Struct stm32_metapac::can::regs::Ir

#[repr(transparent)]
pub struct Ir(pub u32);
Expand description

FDCAN interrupt register

Tuple Fields§

§0: u32

Implementations§

§

impl Ir

pub const fn rfn(&self, n: usize) -> bool

Rx FIFO X new message

pub fn set_rfn(&mut self, n: usize, val: bool)

Rx FIFO X new message

pub const fn rff(&self, n: usize) -> bool

Rx FIFO X full

pub fn set_rff(&mut self, n: usize, val: bool)

Rx FIFO X full

pub const fn rfl(&self, n: usize) -> bool

Rx FIFO X message lost

pub fn set_rfl(&mut self, n: usize, val: bool)

Rx FIFO X message lost

pub const fn hpm(&self) -> bool

High-priority message

pub fn set_hpm(&mut self, val: bool)

High-priority message

pub const fn tc(&self) -> bool

Transmission completed

pub fn set_tc(&mut self, val: bool)

Transmission completed

pub const fn tcf(&self) -> bool

Transmission cancellation finished

pub fn set_tcf(&mut self, val: bool)

Transmission cancellation finished

pub const fn tfe(&self) -> bool

Tx FIFO empty

pub fn set_tfe(&mut self, val: bool)

Tx FIFO empty

pub const fn tefn(&self) -> bool

Tx event FIFO New Entry

pub fn set_tefn(&mut self, val: bool)

Tx event FIFO New Entry

pub const fn teff(&self) -> bool

Tx event FIFO full

pub fn set_teff(&mut self, val: bool)

Tx event FIFO full

pub const fn tefl(&self) -> bool

Tx event FIFO element lost

pub fn set_tefl(&mut self, val: bool)

Tx event FIFO element lost

pub const fn tsw(&self) -> bool

Timestamp wraparound

pub fn set_tsw(&mut self, val: bool)

Timestamp wraparound

pub const fn mraf(&self) -> bool

Message RAM access failure. The flag is set when the Rx handler: has not completed acceptance filtering or storage of an accepted message until the arbitration field of the following message has been received. In this case acceptance filtering or message storage is aborted and the Rx handler starts processing of the following message. was unable to write a message to the message RAM. In this case message storage is aborted. In both cases the FIFO put index is not updated. The partly stored message is overwritten when the next message is stored to this location. The flag is also set when the Tx Handler was not able to read a message from the Message RAM in time. In this case message transmission is aborted. In case of a Tx Handler access failure the FDCAN is switched into Restricted operation Mode (see mode). To leave Restricted operation Mode, the Host CPU has to reset CCCR.ASM.

pub fn set_mraf(&mut self, val: bool)

Message RAM access failure. The flag is set when the Rx handler: has not completed acceptance filtering or storage of an accepted message until the arbitration field of the following message has been received. In this case acceptance filtering or message storage is aborted and the Rx handler starts processing of the following message. was unable to write a message to the message RAM. In this case message storage is aborted. In both cases the FIFO put index is not updated. The partly stored message is overwritten when the next message is stored to this location. The flag is also set when the Tx Handler was not able to read a message from the Message RAM in time. In this case message transmission is aborted. In case of a Tx Handler access failure the FDCAN is switched into Restricted operation Mode (see mode). To leave Restricted operation Mode, the Host CPU has to reset CCCR.ASM.

pub const fn too(&self) -> bool

Timeout occurred

pub fn set_too(&mut self, val: bool)

Timeout occurred

pub const fn elo(&self) -> bool

Error logging overflow

pub fn set_elo(&mut self, val: bool)

Error logging overflow

pub const fn ep(&self) -> bool

Error passive

pub fn set_ep(&mut self, val: bool)

Error passive

pub const fn ew(&self) -> bool

Warning status

pub fn set_ew(&mut self, val: bool)

Warning status

pub const fn bo(&self) -> bool

Bus_Off status

pub fn set_bo(&mut self, val: bool)

Bus_Off status

pub const fn wdi(&self) -> bool

Watchdog interrupt

pub fn set_wdi(&mut self, val: bool)

Watchdog interrupt

pub const fn pea(&self) -> bool

Protocol error in arbitration phase (nominal bit time is used)

pub fn set_pea(&mut self, val: bool)

Protocol error in arbitration phase (nominal bit time is used)

pub const fn ped(&self) -> bool

Protocol error in data phase (data bit time is used)

pub fn set_ped(&mut self, val: bool)

Protocol error in data phase (data bit time is used)

pub const fn ara(&self) -> bool

Access to reserved address

pub fn set_ara(&mut self, val: bool)

Access to reserved address

Trait Implementations§

§

impl Clone for Ir

§

fn clone(&self) -> Ir

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Default for Ir

§

fn default() -> Ir

Returns the “default value” for a type. Read more
§

impl PartialEq for Ir

§

fn eq(&self, other: &Ir) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Copy for Ir

§

impl Eq for Ir

§

impl StructuralPartialEq for Ir

Auto Trait Implementations§

§

impl Freeze for Ir

§

impl RefUnwindSafe for Ir

§

impl Send for Ir

§

impl Sync for Ir

§

impl Unpin for Ir

§

impl UnwindSafe for Ir

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.