#[repr(transparent)]pub struct Mcr(pub u32);Expand description
Module Configuration.
Tuple Fields§
§0: u32Implementations§
Source§impl Mcr
impl Mcr
Sourcepub const fn aen(&self) -> bool
pub const fn aen(&self) -> bool
Abort Enable. Raw bit values: false (0) = AbortDisabled: Disabled.; true (1) = AbortEnabled: Enabled.
Sourcepub const fn set_aen(&mut self, val: bool)
pub const fn set_aen(&mut self, val: bool)
Abort Enable. Raw bit values: false (0) = AbortDisabled: Disabled.; true (1) = AbortEnabled: Enabled.
Sourcepub const fn lprioen(&self) -> bool
pub const fn lprioen(&self) -> bool
Local Priority Enable. Raw bit values: false (0) = LocalPriorityDisabled: Disable.; true (1) = LocalPriorityEnabled: Enable.
Sourcepub const fn set_lprioen(&mut self, val: bool)
pub const fn set_lprioen(&mut self, val: bool)
Local Priority Enable. Raw bit values: false (0) = LocalPriorityDisabled: Disable.; true (1) = LocalPriorityEnabled: Enable.
Sourcepub const fn pnet_en(&self) -> bool
pub const fn pnet_en(&self) -> bool
Pretended Networking Enable. Raw bit values: false (0) = PnDisabled: Disable.; true (1) = PnEnabled: Enable.
Sourcepub const fn set_pnet_en(&mut self, val: bool)
pub const fn set_pnet_en(&mut self, val: bool)
Pretended Networking Enable. Raw bit values: false (0) = PnDisabled: Disable.; true (1) = PnEnabled: Enable.
Sourcepub const fn dma(&self) -> bool
pub const fn dma(&self) -> bool
DMA Enable. Raw bit values: false (0) = Id1: Disable.; true (1) = Id2: Enable.
Sourcepub const fn set_dma(&mut self, val: bool)
pub const fn set_dma(&mut self, val: bool)
DMA Enable. Raw bit values: false (0) = Id1: Disable.; true (1) = Id2: Enable.
Sourcepub const fn irmq(&self) -> bool
pub const fn irmq(&self) -> bool
Individual RX Masking and Queue Enable. Raw bit values: false (0) = IndividualRxMaskingDisabled: Disable.; true (1) = IndividualRxMaskingEnabled: Enable.
Sourcepub const fn set_irmq(&mut self, val: bool)
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.
Sourcepub const fn srxdis(&self) -> bool
pub const fn srxdis(&self) -> bool
Self-Reception Disable. Raw bit values: false (0) = SelfReceptionEnabled: Enable.; true (1) = SelfReceptionDisabled: Disable.
Sourcepub const fn set_srxdis(&mut self, val: bool)
pub const fn set_srxdis(&mut self, val: bool)
Self-Reception Disable. Raw bit values: false (0) = SelfReceptionEnabled: Enable.; true (1) = SelfReceptionDisabled: Disable.
Sourcepub const fn doze(&self) -> bool
pub const fn doze(&self) -> bool
Doze Mode Enable. Raw bit values: false (0) = LowPowerDozeDisabled: Disable.; true (1) = LowPowerDozeEnabled: Enable.
Sourcepub const fn set_doze(&mut self, val: bool)
pub const fn set_doze(&mut self, val: bool)
Doze Mode Enable. Raw bit values: false (0) = LowPowerDozeDisabled: Disable.; true (1) = LowPowerDozeEnabled: Enable.
Sourcepub const fn set_waksrc(&mut self, val: bool)
pub const fn set_waksrc(&mut self, val: bool)
Wake-Up Source.
Sourcepub const fn lpmack(&self) -> bool
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.
Sourcepub const fn set_lpmack(&mut self, val: bool)
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.
Sourcepub const fn wrnen(&self) -> bool
pub const fn wrnen(&self) -> bool
Warning Interrupt Enable. Raw bit values: false (0) = TwrnintRwrnintInactive: Disable.; true (1) = TwrnintRwrnintActive: Enable.
Sourcepub const fn set_wrnen(&mut self, val: bool)
pub const fn set_wrnen(&mut self, val: bool)
Warning Interrupt Enable. Raw bit values: false (0) = TwrnintRwrnintInactive: Disable.; true (1) = TwrnintRwrnintActive: Enable.
Sourcepub const fn slfwak(&self) -> bool
pub const fn slfwak(&self) -> bool
Self Wake-up. Raw bit values: false (0) = SelfWakeupDisabled: Disable.; true (1) = SelfWakeupEnabled: Enable.
Sourcepub const fn set_slfwak(&mut self, val: bool)
pub const fn set_slfwak(&mut self, val: bool)
Self Wake-up. Raw bit values: false (0) = SelfWakeupDisabled: Disable.; true (1) = SelfWakeupEnabled: Enable.
Sourcepub const fn frzack(&self) -> bool
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.
Sourcepub const fn set_frzack(&mut self, val: bool)
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.
Sourcepub const fn softrst(&self) -> bool
pub const fn softrst(&self) -> bool
Soft Reset. Raw bit values: false (0) = SoftrstNoResetRequest: No reset.; true (1) = SoftrstResetRegisters: Soft reset affects reset registers.
Sourcepub const fn set_softrst(&mut self, val: bool)
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.
Sourcepub const fn wakmsk(&self) -> bool
pub const fn wakmsk(&self) -> bool
Wake-up Interrupt Mask. Raw bit values: false (0) = WakeupInterruptDisabled: Disabled.; true (1) = WakeupInterruptEnabled: Enabled.
Sourcepub const fn set_wakmsk(&mut self, val: bool)
pub const fn set_wakmsk(&mut self, val: bool)
Wake-up Interrupt Mask. Raw bit values: false (0) = WakeupInterruptDisabled: Disabled.; true (1) = WakeupInterruptEnabled: Enabled.
Sourcepub const fn notrdy(&self) -> bool
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) = Id2: FlexCAN is in Disable mode, Doze mode, Stop mode, or Freeze mode.
Sourcepub const fn set_notrdy(&mut self, val: bool)
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) = Id2: FlexCAN is in Disable mode, Doze mode, Stop mode, or Freeze mode.
Sourcepub const fn halt(&self) -> bool
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.
Sourcepub const fn set_halt(&mut self, val: bool)
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.
Sourcepub const fn rfen(&self) -> bool
pub const fn rfen(&self) -> bool
Legacy RX FIFO Enable. Raw bit values: false (0) = Id1: Disable.; true (1) = Id2: Enable.
Sourcepub const fn set_rfen(&mut self, val: bool)
pub const fn set_rfen(&mut self, val: bool)
Legacy RX FIFO Enable. Raw bit values: false (0) = Id1: Disable.; true (1) = Id2: Enable.
Sourcepub const fn frz(&self) -> bool
pub const fn frz(&self) -> bool
Freeze Enable. Raw bit values: false (0) = FreezeModeDisabled: Disable.; true (1) = FreezeModeEnabled: Enable.
Sourcepub const fn set_frz(&mut self, val: bool)
pub const fn set_frz(&mut self, val: bool)
Freeze Enable. Raw bit values: false (0) = FreezeModeDisabled: Disable.; true (1) = FreezeModeEnabled: Enable.