nxp-pac

Crates

git

Versions

mcxn546

Flavors

Mcr2

Struct Mcr2 

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

Module Configuration.

Tuple Fields§

§0: u32

Implementations§

Source§

impl Mcr2

Source

pub const fn maxmb(&self) -> u8

Number of the Last Message Buffer.

Source

pub const fn set_maxmb(&mut self, val: u8)

Number of the Last Message Buffer.

Source

pub const fn idam(&self) -> Idam

ID Acceptance Mode.

Source

pub const fn set_idam(&mut self, val: Idam)

ID Acceptance Mode.

Source

pub const fn fden(&self) -> bool

CAN FD Operation Enable. Raw bit values: false (0) = CanFdDisabled: Disable.; true (1) = CanFdEnabled: Enable.

Source

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

CAN FD Operation Enable. Raw bit values: false (0) = CanFdDisabled: Disable.; true (1) = CanFdEnabled: Enable.

Source

pub const fn aen(&self) -> bool

Abort Enable. Raw bit values: false (0) = AbortDisabled: Disabled.; true (1) = AbortEnabled: Enabled.

Source

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

Abort Enable. Raw bit values: false (0) = AbortDisabled: Disabled.; true (1) = AbortEnabled: Enabled.

Source

pub const fn lprioen(&self) -> bool

Local Priority Enable. Raw bit values: false (0) = LocalPriorityDisabled: Disable.; true (1) = LocalPriorityEnabled: Enable.

Source

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

Local Priority Enable. Raw bit values: false (0) = LocalPriorityDisabled: Disable.; true (1) = LocalPriorityEnabled: Enable.

Source

pub const fn pnet_en(&self) -> bool

Pretended Networking Enable. Raw bit values: false (0) = PnDisabled: Disable.; true (1) = PnEnabled: Enable.

Source

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

Pretended Networking Enable. Raw bit values: false (0) = PnDisabled: Disable.; true (1) = PnEnabled: Enable.

Source

pub const fn dma(&self) -> bool

DMA Enable. Raw bit values: false (0) = Id1: Disable.; true (1) = Id2: Enable.

Source

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

DMA Enable. Raw bit values: false (0) = Id1: Disable.; true (1) = Id2: Enable.

Source

pub const fn irmq(&self) -> bool

Individual RX Masking and Queue Enable. Raw bit values: false (0) = IndividualRxMaskingDisabled: Disable.; true (1) = IndividualRxMaskingEnabled: Enable.

Source

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

Individual RX Masking and Queue Enable. Raw bit values: false (0) = IndividualRxMaskingDisabled: Disable.; true (1) = IndividualRxMaskingEnabled: Enable.

Source

pub const fn srxdis(&self) -> bool

Self-Reception Disable. Raw bit values: false (0) = SelfReceptionEnabled: Enable.; true (1) = SelfReceptionDisabled: Disable.

Source

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

Self-Reception Disable. Raw bit values: false (0) = SelfReceptionEnabled: Enable.; true (1) = SelfReceptionDisabled: Disable.

Source

pub const fn waksrc(&self) -> bool

Wake-Up Source. Raw bit values: false (0) = UnfilteredRxInput: No filter applied.; true (1) = FilteredRxInput: Filter applied.

Source

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

Wake-Up Source. Raw bit values: false (0) = UnfilteredRxInput: No filter applied.; true (1) = FilteredRxInput: Filter applied.

Source

pub const fn lpmack(&self) -> bool

Low-Power Mode Acknowledge. Raw bit values: false (0) = LowPowerNo: Not in a low-power mode.; true (1) = LowPowerYes: In a low-power mode.

Source

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

Low-Power Mode Acknowledge. Raw bit values: false (0) = LowPowerNo: Not in a low-power mode.; true (1) = LowPowerYes: In a low-power mode.

Source

pub const fn wrnen(&self) -> bool

Warning Interrupt Enable. Raw bit values: false (0) = TwrnintRwrnintInactive: Disable.; true (1) = TwrnintRwrnintActive: Enable.

Source

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

Warning Interrupt Enable. Raw bit values: false (0) = TwrnintRwrnintInactive: Disable.; true (1) = TwrnintRwrnintActive: Enable.

Source

pub const fn slfwak(&self) -> bool

Self Wake-up. Raw bit values: false (0) = SelfWakeupDisabled: Disable.; true (1) = SelfWakeupEnabled: Enable.

Source

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

Self Wake-up. Raw bit values: false (0) = SelfWakeupDisabled: Disable.; true (1) = SelfWakeupEnabled: Enable.

Source

pub const fn frzack(&self) -> bool

Freeze Mode Acknowledge. Raw bit values: false (0) = FreezeModeNo: Not in Freeze mode, prescaler running.; true (1) = FreezeModeYes: In Freeze mode, prescaler stopped.

Source

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

Freeze Mode Acknowledge. Raw bit values: false (0) = FreezeModeNo: Not in Freeze mode, prescaler running.; true (1) = FreezeModeYes: In Freeze mode, prescaler stopped.

Source

pub const fn softrst(&self) -> bool

Soft Reset. Raw bit values: false (0) = SoftrstNoResetRequest: No reset.; true (1) = SoftrstResetRegisters: Soft reset affects reset registers.

Source

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

Soft Reset. Raw bit values: false (0) = SoftrstNoResetRequest: No reset.; true (1) = SoftrstResetRegisters: Soft reset affects reset registers.

Source

pub const fn wakmsk(&self) -> bool

Wake-up Interrupt Mask. Raw bit values: false (0) = WakeupInterruptDisabled: Disabled.; true (1) = WakeupInterruptEnabled: Enabled.

Source

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

Wake-up Interrupt Mask. Raw bit values: false (0) = WakeupInterruptDisabled: Disabled.; true (1) = WakeupInterruptEnabled: Enabled.

Source

pub const fn notrdy(&self) -> bool

FlexCAN Not Ready. Raw bit values: false (0) = Id1: FlexCAN is in Normal mode, Listen-Only mode, or Loopback mode.; true (1) = Id4: FlexCAN is in Disable mode, Stop mode, or Freeze mode.

Source

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

FlexCAN Not Ready. Raw bit values: false (0) = Id1: FlexCAN is in Normal mode, Listen-Only mode, or Loopback mode.; true (1) = Id4: FlexCAN is in Disable mode, Stop mode, or Freeze mode.

Source

pub const fn halt(&self) -> bool

Halt FlexCAN. Raw bit values: false (0) = HaltDisable: No request.; true (1) = HaltEnable: Enter Freeze mode, if MCR[FRZ] = 1.

Source

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

Halt FlexCAN. Raw bit values: false (0) = HaltDisable: No request.; true (1) = HaltEnable: Enter Freeze mode, if MCR[FRZ] = 1.

Source

pub const fn rfen(&self) -> bool

Legacy RX FIFO Enable. Raw bit values: false (0) = Id1: Disable.; true (1) = Id2: Enable.

Source

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

Legacy RX FIFO Enable. Raw bit values: false (0) = Id1: Disable.; true (1) = Id2: Enable.

Source

pub const fn frz(&self) -> bool

Freeze Enable. Raw bit values: false (0) = FreezeModeDisabled: Disable.; true (1) = FreezeModeEnabled: Enable.

Source

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

Freeze Enable. Raw bit values: false (0) = FreezeModeDisabled: Disable.; true (1) = FreezeModeEnabled: Enable.

Source

pub const fn mdis(&self) -> bool

Module Disable. Raw bit values: false (0) = FlexcanEnabled: Enable.; true (1) = FlexcanDisabled: Disable.

Source

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

Module Disable. Raw bit values: false (0) = FlexcanEnabled: Enable.; true (1) = FlexcanDisabled: Disable.

Trait Implementations§

Source§

impl Clone for Mcr2

Source§

fn clone(&self) -> Mcr2

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 Mcr2

Source§

fn default() -> Mcr2

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

impl PartialEq for Mcr2

Source§

fn eq(&self, other: &Mcr2) -> 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 Mcr2

Source§

impl Eq for Mcr2

Source§

impl StructuralPartialEq for Mcr2

Auto Trait Implementations§

§

impl Freeze for Mcr2

§

impl RefUnwindSafe for Mcr2

§

impl Send for Mcr2

§

impl Sync for Mcr2

§

impl Unpin for Mcr2

§

impl UnwindSafe for Mcr2

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.