#[repr(u32)]pub enum Alert {
Show 18 variants
TransmitIdle = 0,
Success = 1,
Received = 2,
BelowErrorWarning = 3,
ActiveError = 4,
RecoveryInProgress = 5,
BusRecovered = 6,
ArbLost = 7,
AboveErrorWarning = 8,
BusError = 9,
TransmitFailed = 10,
ReceiveQueueFull = 11,
ErrorPass = 12,
BusOffline = 13,
ReceiveFifoOverflow = 14,
TransmitRetried = 15,
PeripheralReset = 16,
AlertAndLog = 17,
}Variants§
TransmitIdle = 0
No more messages to transmit
Success = 1
The previous transmission was successful
Received = 2
A frame has been received and added to the RX queue
BelowErrorWarning = 3
Both error counters have dropped below error warning limit
ActiveError = 4
TWAI controller has become error active
RecoveryInProgress = 5
TWAI controller is undergoing bus recovery
BusRecovered = 6
TWAI controller has successfully completed bus recovery
ArbLost = 7
The previous transmission lost arbitration
AboveErrorWarning = 8
One of the error counters have exceeded the error warning limit
BusError = 9
A (Bit, Stuff, CRC, Form, ACK) error has occurred on the bus
TransmitFailed = 10
The previous transmission has failed (for single shot transmission)
ReceiveQueueFull = 11
The RX queue is full causing a frame to be lost
ErrorPass = 12
TWAI controller has become error passive
BusOffline = 13
Bus-off condition occurred. TWAI controller can no longer influence bus
ReceiveFifoOverflow = 14
An RX FIFO overrun has occurred
TransmitRetried = 15
An message transmission was cancelled and retried due to an errata workaround
PeripheralReset = 16
The TWAI controller was reset
AlertAndLog = 17
In addition to alerting also Logs the event
Trait Implementations§
Source§impl EnumSetConstHelper for Alert
impl EnumSetConstHelper for Alert
Source§const CONST_INIT_HELPER: __EnumSetInitHelper = __EnumSetInitHelper
const CONST_INIT_HELPER: __EnumSetInitHelper = __EnumSetInitHelper
ConstInitHelper.Source§const CONST_OP_HELPER: __EnumSetOpHelper = __EnumSetOpHelper
const CONST_OP_HELPER: __EnumSetOpHelper = __EnumSetOpHelper
ConstOpHelper.Source§type ConstInitHelper = __EnumSetInitHelper
type ConstInitHelper = __EnumSetInitHelper
Source§type ConstOpHelper = __EnumSetOpHelper
type ConstOpHelper = __EnumSetOpHelper
Source§impl EnumSetTypePrivate for Alert
impl EnumSetTypePrivate for Alert
Source§const VARIANT_COUNT: u32 = 18u32
const VARIANT_COUNT: u32 = 18u32
Source§fn enum_into_u32(self) -> u32
fn enum_into_u32(self) -> u32
Source§unsafe fn enum_from_u32(val: u32) -> Self
unsafe fn enum_from_u32(val: u32) -> Self
Source§unsafe fn enum_from_u32_checked(val: u32) -> Self
unsafe fn enum_from_u32_checked(val: u32) -> Self
impl Copy for Alert
impl EnumSetType for Alert
impl Eq for Alert
Auto Trait Implementations§
impl Freeze for Alert
impl RefUnwindSafe for Alert
impl Send for Alert
impl Sync for Alert
impl Unpin for Alert
impl UnsafeUnpin for Alert
impl UnwindSafe for Alert
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)