#[repr(transparent)]pub struct Ctrl1(pub u32);Expand description
Control 1.
Tuple Fields§
§0: u32Implementations§
Source§impl Ctrl1
impl Ctrl1
Sourcepub const fn set_propseg(&mut self, val: u8)
pub const fn set_propseg(&mut self, val: u8)
Propagation Segment.
Sourcepub const fn lom(&self) -> bool
pub const fn lom(&self) -> bool
Listen-Only Mode. Raw bit values: false (0) = ListenOnlyModeDisabled: Listen-Only mode is deactivated.; true (1) = ListenOnlyModeEnabled: FlexCAN module operates in Listen-Only mode.
Sourcepub const fn set_lom(&mut self, val: bool)
pub const fn set_lom(&mut self, val: bool)
Listen-Only Mode. Raw bit values: false (0) = ListenOnlyModeDisabled: Listen-Only mode is deactivated.; true (1) = ListenOnlyModeEnabled: FlexCAN module operates in Listen-Only mode.
Sourcepub const fn lbuf(&self) -> bool
pub const fn lbuf(&self) -> bool
Lowest Buffer Transmitted First. Raw bit values: false (0) = HighestBufferFirst: Buffer with highest priority is transmitted first.; true (1) = LowestBufferFirst: Lowest number buffer is transmitted first.
Sourcepub const fn set_lbuf(&mut self, val: bool)
pub const fn set_lbuf(&mut self, val: bool)
Lowest Buffer Transmitted First. Raw bit values: false (0) = HighestBufferFirst: Buffer with highest priority is transmitted first.; true (1) = LowestBufferFirst: Lowest number buffer is transmitted first.
Sourcepub const fn tsyn(&self) -> bool
pub const fn tsyn(&self) -> bool
Timer Sync. Raw bit values: false (0) = TimerSyncDisabled: Disable.; true (1) = TimerSyncEnabled: Enable.
Sourcepub const fn set_tsyn(&mut self, val: bool)
pub const fn set_tsyn(&mut self, val: bool)
Timer Sync. Raw bit values: false (0) = TimerSyncDisabled: Disable.; true (1) = TimerSyncEnabled: Enable.
Sourcepub const fn boffrec(&self) -> bool
pub const fn boffrec(&self) -> bool
Bus Off Recovery. Raw bit values: false (0) = AutoRecoverEnabled: Enabled.; true (1) = AutoRecoverDisabled: Disabled.
Sourcepub const fn set_boffrec(&mut self, val: bool)
pub const fn set_boffrec(&mut self, val: bool)
Bus Off Recovery. Raw bit values: false (0) = AutoRecoverEnabled: Enabled.; true (1) = AutoRecoverDisabled: Disabled.
Sourcepub const fn smp(&self) -> bool
pub const fn smp(&self) -> bool
CAN Bit Sampling. Raw bit values: false (0) = OneSample: One sample is used to determine the bit value.; true (1) = ThreeSample: Three samples are used to determine the value of the received bit: the regular one (sample point) and two preceding samples. A majority rule is used.
Sourcepub const fn set_smp(&mut self, val: bool)
pub const fn set_smp(&mut self, val: bool)
CAN Bit Sampling. Raw bit values: false (0) = OneSample: One sample is used to determine the bit value.; true (1) = ThreeSample: Three samples are used to determine the value of the received bit: the regular one (sample point) and two preceding samples. A majority rule is used.
Sourcepub const fn rwrnmsk(&self) -> bool
pub const fn rwrnmsk(&self) -> bool
RX Warning Interrupt Mask. Raw bit values: false (0) = RxWarningIntDisabled: Disabled.; true (1) = RxWarningIntEnabled: Enabled.
Sourcepub const fn set_rwrnmsk(&mut self, val: bool)
pub const fn set_rwrnmsk(&mut self, val: bool)
RX Warning Interrupt Mask. Raw bit values: false (0) = RxWarningIntDisabled: Disabled.; true (1) = RxWarningIntEnabled: Enabled.
Sourcepub const fn twrnmsk(&self) -> bool
pub const fn twrnmsk(&self) -> bool
TX Warning Interrupt Mask. Raw bit values: false (0) = TxWarningIntDisabled: Disabled.; true (1) = TxWarningIntEnabled: Enabled.
Sourcepub const fn set_twrnmsk(&mut self, val: bool)
pub const fn set_twrnmsk(&mut self, val: bool)
TX Warning Interrupt Mask. Raw bit values: false (0) = TxWarningIntDisabled: Disabled.; true (1) = TxWarningIntEnabled: Enabled.
Sourcepub const fn lpb(&self) -> bool
pub const fn lpb(&self) -> bool
Loopback Mode. Raw bit values: false (0) = LoopbackDisabled: Disabled.; true (1) = LoopbackEnabled: Enabled.
Sourcepub const fn set_lpb(&mut self, val: bool)
pub const fn set_lpb(&mut self, val: bool)
Loopback Mode. Raw bit values: false (0) = LoopbackDisabled: Disabled.; true (1) = LoopbackEnabled: Enabled.
Sourcepub const fn errmsk(&self) -> bool
pub const fn errmsk(&self) -> bool
Error Interrupt Mask. Raw bit values: false (0) = ErrorIntDisabled: Interrupt disabled.; true (1) = ErrorIntEnabled: Interrupt enabled.
Sourcepub const fn set_errmsk(&mut self, val: bool)
pub const fn set_errmsk(&mut self, val: bool)
Error Interrupt Mask. Raw bit values: false (0) = ErrorIntDisabled: Interrupt disabled.; true (1) = ErrorIntEnabled: Interrupt enabled.
Sourcepub const fn boffmsk(&self) -> bool
pub const fn boffmsk(&self) -> bool
Bus Off Interrupt Mask. Raw bit values: false (0) = BusOffIntDisabled: Interrupt disabled.; true (1) = BusOffIntEnabled: Interrupt enabled.
Sourcepub const fn set_boffmsk(&mut self, val: bool)
pub const fn set_boffmsk(&mut self, val: bool)
Bus Off Interrupt Mask. Raw bit values: false (0) = BusOffIntDisabled: Interrupt disabled.; true (1) = BusOffIntEnabled: Interrupt enabled.
Sourcepub const fn set_presdiv(&mut self, val: u8)
pub const fn set_presdiv(&mut self, val: u8)
Prescaler Division Factor.