stm32-metapac

Crates

13.0.0

Versions

stm32g0b1vb

Flavors

Struct Ir

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

The flags are set when one of the listed conditions is detected (edge-sensitive). The flags remain set until the Host clears them. A flag is cleared by writing a 1 to the corresponding bit position. Writing a 0 has no effect. A hard reset will clear the register. The configuration of IE controls whether an interrupt is generated. The configuration of ILS controls on which interrupt line an interrupt is signaled.

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 even FIFO new entry

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

Tx even 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

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

Message RAM access failure

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

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

Protocol error in arbitration phase

pub const fn ped(&self) -> bool

Protocol error in data phase

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

Protocol error in data phase

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 duplicate of the value. Read more
1.0.0 · Source§

const 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§

const 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, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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.