pub enum BusState {
ErrorActive,
ErrorPassive,
BusOff,
}Expand description
The error state of a CAN bus controller.
Variants§
ErrorActive
Normal operation. Error counters are below 128.
ErrorPassive
Error counters have reached the warning threshold (128–255). The controller can still communicate but may be experiencing issues.
BusOff
The controller has gone off-bus due to excessive errors (counter > 255). No frames can be sent or received until recovery.
Trait Implementations§
impl Copy for BusState
impl Eq for BusState
impl StructuralPartialEq for BusState
Auto Trait Implementations§
impl Freeze for BusState
impl RefUnwindSafe for BusState
impl Send for BusState
impl Sync for BusState
impl Unpin for BusState
impl UnsafeUnpin for BusState
impl UnwindSafe for BusState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more