#[repr(transparent)]pub struct Esr1(pub u32);Expand description
Error and Status 1.
Tuple Fields§
§0: u32Implementations§
Source§impl Esr1
impl Esr1
Sourcepub const fn set_wakint(&mut self, val: bool)
pub const fn set_wakint(&mut self, val: bool)
Wake-up Interrupt Flag.
Sourcepub const fn set_errint(&mut self, val: bool)
pub const fn set_errint(&mut self, val: bool)
Error Interrupt Flag.
Sourcepub const fn set_boffint(&mut self, val: bool)
pub const fn set_boffint(&mut self, val: bool)
Bus Off Interrupt Flag.
Sourcepub const fn set_fltconf(&mut self, val: Fltconf)
pub const fn set_fltconf(&mut self, val: Fltconf)
Fault Confinement State.
Sourcepub const fn tx(&self) -> bool
pub const fn tx(&self) -> bool
FlexCAN In Transmission. Raw bit values: false (0) = TransmitMessageNo: Not transmitting.; true (1) = TransmitMessageYes: Transmitting.
Sourcepub const fn set_tx(&mut self, val: bool)
pub const fn set_tx(&mut self, val: bool)
FlexCAN In Transmission. Raw bit values: false (0) = TransmitMessageNo: Not transmitting.; true (1) = TransmitMessageYes: Transmitting.
Sourcepub const fn idle(&self) -> bool
pub const fn idle(&self) -> bool
Idle. Raw bit values: false (0) = CanBusNotIdle: Not IDLE.; true (1) = CanBusIdle: IDLE.
Sourcepub const fn set_idle(&mut self, val: bool)
pub const fn set_idle(&mut self, val: bool)
Idle. Raw bit values: false (0) = CanBusNotIdle: Not IDLE.; true (1) = CanBusIdle: IDLE.
Sourcepub const fn rxwrn(&self) -> bool
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.
Sourcepub const fn set_rxwrn(&mut self, val: bool)
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.
Sourcepub const fn txwrn(&self) -> bool
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.
Sourcepub const fn set_txwrn(&mut self, val: bool)
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.
Sourcepub const fn stferr(&self) -> bool
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.
Sourcepub const fn set_stferr(&mut self, val: bool)
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.
Sourcepub const fn frmerr(&self) -> bool
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.
Sourcepub const fn set_frmerr(&mut self, val: bool)
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.
Sourcepub const fn crcerr(&self) -> bool
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.
Sourcepub const fn set_crcerr(&mut self, val: bool)
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.
Sourcepub const fn ackerr(&self) -> bool
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.
Sourcepub const fn set_ackerr(&mut self, val: bool)
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.
Sourcepub const fn bit0err(&self) -> bool
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.
Sourcepub const fn set_bit0err(&mut self, val: bool)
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.
Sourcepub const fn bit1err(&self) -> bool
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.
Sourcepub const fn set_bit1err(&mut self, val: bool)
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.
Sourcepub const fn rwrnint(&self) -> bool
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.
Sourcepub const fn set_rwrnint(&mut self, val: bool)
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.
Sourcepub const fn twrnint(&self) -> bool
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.
Sourcepub const fn set_twrnint(&mut self, val: bool)
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.
Sourcepub const fn synch(&self) -> bool
pub const fn synch(&self) -> bool
CAN Synchronization Status Flag. Raw bit values: false (0) = CanBusSyncNo: Not synchronized.; true (1) = CanBusSyncYes: Synchronized.
Sourcepub const fn set_synch(&mut self, val: bool)
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.
Sourcepub const fn boffdoneint(&self) -> bool
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.
Sourcepub const fn set_boffdoneint(&mut self, val: bool)
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.
Sourcepub const fn errovr(&self) -> bool
pub const fn errovr(&self) -> bool
Error Overrun Flag. Raw bit values: false (0) = OverrunNotOccurred: No overrun.; true (1) = OverrunOccurred: Overrun.
Sourcepub const fn set_errovr(&mut self, val: bool)
pub const fn set_errovr(&mut self, val: bool)
Error Overrun Flag. Raw bit values: false (0) = OverrunNotOccurred: No overrun.; true (1) = OverrunOccurred: Overrun.