#[repr(transparent)]pub struct Esr12(pub u32);Expand description
Error and Status 1.
Tuple Fields§
§0: u32Implementations§
Source§impl Esr12
impl Esr12
Sourcepub const fn wakint(&self) -> bool
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.
Sourcepub const fn set_wakint(&mut self, val: bool)
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.
Sourcepub const fn errint(&self) -> bool
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.
Sourcepub const fn set_errint(&mut self, val: bool)
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.
Sourcepub const fn boffint(&self) -> bool
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.
Sourcepub const fn set_boffint(&mut self, val: bool)
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.
Sourcepub const fn rx(&self) -> bool
pub const fn rx(&self) -> bool
FlexCAN in Reception Flag. Raw bit values: false (0) = Disable: Not receiving.; true (1) = Enable: Receiving.
Sourcepub const fn set_rx(&mut self, val: bool)
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.
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 errint_fast(&self) -> bool
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.
Sourcepub const fn set_errint_fast(&mut self, val: bool)
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.
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.
Sourcepub const fn stferr_fast(&self) -> bool
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.
Sourcepub const fn set_stferr_fast(&mut self, val: bool)
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.
Sourcepub const fn frmerr_fast(&self) -> bool
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.
Sourcepub const fn set_frmerr_fast(&mut self, val: bool)
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.
Sourcepub const fn crcerr_fast(&self) -> bool
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.
Sourcepub const fn set_crcerr_fast(&mut self, val: bool)
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.
Sourcepub const fn bit0err_fast(&self) -> bool
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.
Sourcepub const fn set_bit0err_fast(&mut self, val: bool)
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.
Sourcepub const fn bit1err_fast(&self) -> bool
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.
Sourcepub const fn set_bit1err_fast(&mut self, val: bool)
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.