nxp-pac

Crates

git

Versions

mcxn947

Flavors

Esr12

Struct Esr12 

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

Error and Status 1.

Tuple Fields§

§0: u32

Implementations§

Source§

impl Esr12

Source

pub const fn wakint(&self) -> bool

Wake-up Interrupt Flag. Raw bit values: false (0) = Disable: No such occurrence.; true (1) = Enable: Indicates that a recessive-to-dominant transition was received on the CAN bus.

Source

pub const fn set_wakint(&mut self, val: bool)

Wake-up Interrupt Flag. Raw bit values: false (0) = Disable: No such occurrence.; true (1) = Enable: Indicates that a recessive-to-dominant transition was received on the CAN bus.

Source

pub const fn errint(&self) -> bool

Error Interrupt Flag. Raw bit values: false (0) = Disable: No such occurrence.; true (1) = Enable: Indicates setting of any error flag in the Error and Status register.

Source

pub const fn set_errint(&mut self, val: bool)

Error Interrupt Flag. Raw bit values: false (0) = Disable: No such occurrence.; true (1) = Enable: Indicates setting of any error flag in the Error and Status register.

Source

pub const fn boffint(&self) -> bool

Bus Off Interrupt Flag. Raw bit values: false (0) = Disable: No such occurrence.; true (1) = Enable: FlexCAN module entered Bus Off state.

Source

pub const fn set_boffint(&mut self, val: bool)

Bus Off Interrupt Flag. Raw bit values: false (0) = Disable: No such occurrence.; true (1) = Enable: FlexCAN module entered Bus Off state.

Source

pub const fn rx(&self) -> bool

FlexCAN in Reception Flag. Raw bit values: false (0) = Disable: Not receiving.; true (1) = Enable: Receiving.

Source

pub const fn set_rx(&mut self, val: bool)

FlexCAN in Reception Flag. Raw bit values: false (0) = Disable: Not receiving.; true (1) = Enable: Receiving.

Source

pub const fn fltconf(&self) -> Fltconf

Fault Confinement State.

Source

pub const fn set_fltconf(&mut self, val: Fltconf)

Fault Confinement State.

Source

pub const fn tx(&self) -> bool

FlexCAN In Transmission. Raw bit values: false (0) = TransmitMessageNo: Not transmitting.; true (1) = TransmitMessageYes: Transmitting.

Source

pub const fn set_tx(&mut self, val: bool)

FlexCAN In Transmission. Raw bit values: false (0) = TransmitMessageNo: Not transmitting.; true (1) = TransmitMessageYes: Transmitting.

Source

pub const fn idle(&self) -> bool

Idle. Raw bit values: false (0) = CanBusNotIdle: Not IDLE.; true (1) = CanBusIdle: IDLE.

Source

pub const fn set_idle(&mut self, val: bool)

Idle. Raw bit values: false (0) = CanBusNotIdle: Not IDLE.; true (1) = CanBusIdle: IDLE.

Source

pub const fn rxwrn(&self) -> bool

RX Error Warning Flag. Raw bit values: false (0) = RxerrcntLt96: No such occurrence.; true (1) = RxerrcntGte96: RXERRCNT is greater than or equal to 96.

Source

pub const fn set_rxwrn(&mut self, val: bool)

RX Error Warning Flag. Raw bit values: false (0) = RxerrcntLt96: No such occurrence.; true (1) = RxerrcntGte96: RXERRCNT is greater than or equal to 96.

Source

pub const fn txwrn(&self) -> bool

TX Error Warning Flag. Raw bit values: false (0) = TxerrcntLt96: No such occurrence.; true (1) = TxerrcntGte96: TXERRCNT is 96 or greater.

Source

pub const fn set_txwrn(&mut self, val: bool)

TX Error Warning Flag. Raw bit values: false (0) = TxerrcntLt96: No such occurrence.; true (1) = TxerrcntGte96: TXERRCNT is 96 or greater.

Source

pub const fn stferr(&self) -> bool

Stuffing Error Flag. Raw bit values: false (0) = StuffingErrorNo: No error.; true (1) = StuffingErrorYes: Error occurred since last read of this register.

Source

pub const fn set_stferr(&mut self, val: bool)

Stuffing Error Flag. Raw bit values: false (0) = StuffingErrorNo: No error.; true (1) = StuffingErrorYes: Error occurred since last read of this register.

Source

pub const fn frmerr(&self) -> bool

Form Error Flag. Raw bit values: false (0) = FormErrorNo: No error.; true (1) = FormErrorYes: Error occurred since last read of this register.

Source

pub const fn set_frmerr(&mut self, val: bool)

Form Error Flag. Raw bit values: false (0) = FormErrorNo: No error.; true (1) = FormErrorYes: Error occurred since last read of this register.

Source

pub const fn crcerr(&self) -> bool

Cyclic Redundancy Check Error Flag. Raw bit values: false (0) = CrcErrorNo: No error.; true (1) = CrcErrorYes: Error occurred since last read of this register.

Source

pub const fn set_crcerr(&mut self, val: bool)

Cyclic Redundancy Check Error Flag. Raw bit values: false (0) = CrcErrorNo: No error.; true (1) = CrcErrorYes: Error occurred since last read of this register.

Source

pub const fn ackerr(&self) -> bool

Acknowledge Error Flag. Raw bit values: false (0) = AckErrorNo: No error.; true (1) = AckErrorYes: Error occurred since last read of this register.

Source

pub const fn set_ackerr(&mut self, val: bool)

Acknowledge Error Flag. Raw bit values: false (0) = AckErrorNo: No error.; true (1) = AckErrorYes: Error occurred since last read of this register.

Source

pub const fn bit0err(&self) -> bool

Bit0 Error Flag. Raw bit values: false (0) = Bit0ErrorNo: No such occurrence.; true (1) = Bit0ErrorYes: At least one bit sent as dominant is received as recessive.

Source

pub const fn set_bit0err(&mut self, val: bool)

Bit0 Error Flag. Raw bit values: false (0) = Bit0ErrorNo: No such occurrence.; true (1) = Bit0ErrorYes: At least one bit sent as dominant is received as recessive.

Source

pub const fn bit1err(&self) -> bool

Bit1 Error Flag. Raw bit values: false (0) = Bit1ErrorNo: No such occurrence.; true (1) = Bit1ErrorYes: At least one bit sent as recessive is received as dominant.

Source

pub const fn set_bit1err(&mut self, val: bool)

Bit1 Error Flag. Raw bit values: false (0) = Bit1ErrorNo: No such occurrence.; true (1) = Bit1ErrorYes: At least one bit sent as recessive is received as dominant.

Source

pub const fn rwrnint(&self) -> bool

RX Warning Interrupt Flag. Raw bit values: false (0) = RxWarningIntNo: No such occurrence.; true (1) = RxWarningIntYes: RX error counter changed from less than 96 to greater than or equal to 96.

Source

pub const fn set_rwrnint(&mut self, val: bool)

RX Warning Interrupt Flag. Raw bit values: false (0) = RxWarningIntNo: No such occurrence.; true (1) = RxWarningIntYes: RX error counter changed from less than 96 to greater than or equal to 96.

Source

pub const fn twrnint(&self) -> bool

TX Warning Interrupt Flag. Raw bit values: false (0) = TxWarningIntNo: No such occurrence.; true (1) = TxWarningIntYes: TX error counter changed from less than 96 to greater than or equal to 96.

Source

pub const fn set_twrnint(&mut self, val: bool)

TX Warning Interrupt Flag. Raw bit values: false (0) = TxWarningIntNo: No such occurrence.; true (1) = TxWarningIntYes: TX error counter changed from less than 96 to greater than or equal to 96.

Source

pub const fn synch(&self) -> bool

CAN Synchronization Status Flag. Raw bit values: false (0) = CanBusSyncNo: Not synchronized.; true (1) = CanBusSyncYes: Synchronized.

Source

pub const fn set_synch(&mut self, val: bool)

CAN Synchronization Status Flag. Raw bit values: false (0) = CanBusSyncNo: Not synchronized.; true (1) = CanBusSyncYes: Synchronized.

Source

pub const fn boffdoneint(&self) -> bool

Bus Off Done Interrupt Flag. Raw bit values: false (0) = BusOffNotDone: No such occurrence.; true (1) = BusOffDone: FlexCAN module has completed Bus Off process.

Source

pub const fn set_boffdoneint(&mut self, val: bool)

Bus Off Done Interrupt Flag. Raw bit values: false (0) = BusOffNotDone: No such occurrence.; true (1) = BusOffDone: FlexCAN module has completed Bus Off process.

Source

pub const fn errint_fast(&self) -> bool

Fast Error Interrupt Flag. Raw bit values: false (0) = ErrorsDataPhaseNo: No such occurrence.; true (1) = ErrorsDataPhaseYes: Error flag set in the data phase of CAN FD frames that have BRS = 1.

Source

pub const fn set_errint_fast(&mut self, val: bool)

Fast Error Interrupt Flag. Raw bit values: false (0) = ErrorsDataPhaseNo: No such occurrence.; true (1) = ErrorsDataPhaseYes: Error flag set in the data phase of CAN FD frames that have BRS = 1.

Source

pub const fn errovr(&self) -> bool

Error Overrun Flag. Raw bit values: false (0) = OverrunNotOccurred: No overrun.; true (1) = OverrunOccurred: Overrun.

Source

pub const fn set_errovr(&mut self, val: bool)

Error Overrun Flag. Raw bit values: false (0) = OverrunNotOccurred: No overrun.; true (1) = OverrunOccurred: Overrun.

Source

pub const fn stferr_fast(&self) -> bool

Fast Stuffing Error Flag. Raw bit values: false (0) = StuffingErrorNo: No such occurrence.; true (1) = StuffingErrorYes: A stuffing error occurred since last read of this register.

Source

pub const fn set_stferr_fast(&mut self, val: bool)

Fast Stuffing Error Flag. Raw bit values: false (0) = StuffingErrorNo: No such occurrence.; true (1) = StuffingErrorYes: A stuffing error occurred since last read of this register.

Source

pub const fn frmerr_fast(&self) -> bool

Fast Form Error Flag. Raw bit values: false (0) = FormErrorNo: No such occurrence.; true (1) = FormErrorYes: A form error occurred since last read of this register.

Source

pub const fn set_frmerr_fast(&mut self, val: bool)

Fast Form Error Flag. Raw bit values: false (0) = FormErrorNo: No such occurrence.; true (1) = FormErrorYes: A form error occurred since last read of this register.

Source

pub const fn crcerr_fast(&self) -> bool

Fast Cyclic Redundancy Check Error Flag. Raw bit values: false (0) = CrcErrorNo: No such occurrence.; true (1) = CrcErrorYes: A CRC error occurred since last read of this register.

Source

pub const fn set_crcerr_fast(&mut self, val: bool)

Fast Cyclic Redundancy Check Error Flag. Raw bit values: false (0) = CrcErrorNo: No such occurrence.; true (1) = CrcErrorYes: A CRC error occurred since last read of this register.

Source

pub const fn bit0err_fast(&self) -> bool

Fast Bit0 Error Flag. Raw bit values: false (0) = Bit0ErrorNo: No such occurrence.; true (1) = Bit0ErrorYes: At least one bit transmitted as dominant is received as recessive.

Source

pub const fn set_bit0err_fast(&mut self, val: bool)

Fast Bit0 Error Flag. Raw bit values: false (0) = Bit0ErrorNo: No such occurrence.; true (1) = Bit0ErrorYes: At least one bit transmitted as dominant is received as recessive.

Source

pub const fn bit1err_fast(&self) -> bool

Fast Bit1 Error Flag. Raw bit values: false (0) = Bit1ErrorNo: No such occurrence.; true (1) = Bit1ErrorYes: At least one bit transmitted as recessive is received as dominant.

Source

pub const fn set_bit1err_fast(&mut self, val: bool)

Fast Bit1 Error Flag. Raw bit values: false (0) = Bit1ErrorNo: No such occurrence.; true (1) = Bit1ErrorYes: At least one bit transmitted as recessive is received as dominant.

Trait Implementations§

Source§

impl Clone for Esr12

Source§

fn clone(&self) -> Esr12

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Default for Esr12

Source§

fn default() -> Esr12

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

impl PartialEq for Esr12

Source§

fn eq(&self, other: &Esr12) -> 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.
Source§

impl Copy for Esr12

Source§

impl Eq for Esr12

Source§

impl StructuralPartialEq for Esr12

Auto Trait Implementations§

§

impl Freeze for Esr12

§

impl RefUnwindSafe for Esr12

§

impl Send for Esr12

§

impl Sync for Esr12

§

impl Unpin for Esr12

§

impl UnwindSafe for Esr12

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.