stm32-metapac

Crates

git

Versions

stm32h7s7l8

Flavors

๐Ÿ“ฃ We want to hear from you! Fill the Rust Embedded 2024 micro-survey.

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 rfw(&self, n: usize) -> bool

Rx FIFO X Watermark Reached

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

Rx FIFO X Watermark Reached

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 tef(&self) -> bool

Tx FIFO Empty

pub fn set_tef(&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 tefw(&self) -> bool

Tx Event FIFO Watermark Reached

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

Tx Event FIFO Watermark Reached

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 drx(&self) -> bool

Message stored to Dedicated Rx Buffer

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

Message stored to Dedicated Rx Buffer

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 ยท sourceยง

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

This method 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 StructuralEq for Ir

ยง

impl StructuralPartialEq for Ir

Auto Trait Implementationsยง

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> 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>,

ยง

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>,

ยง

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.