#[repr(u32)]pub enum BMCanMode {
Normal = 0,
BufOff = 1,
InternalLoopback = 2,
ListenOnly = 3,
Configuration = 4,
ExternalLoopback = 5,
Classic = 6,
Restricted = 7,
}Expand description
CAN mode IDs, used by super::api::BM_SetCanMode to change the operation mode of CAN device.
Variants§
Normal = 0
The device is running normally (with the capability to handle CAN and CAN-FD messages
BufOff = 1
The device is logically disconnected from CAN bus
InternalLoopback = 2
The device is looping back messages internally without impacting the physical CAN bus
ListenOnly = 3
The device is receiving messages without impacting the physical CAN bus (do not send ACKs to the bus)
Configuration = 4
The device is under configuration and temporarily disconnected from CAN bus, For Internal usage only
ExternalLoopback = 5
The device is looping back messages externally, all transmitted messages are echoed by the device itself
Classic = 6
The device is running normally (with the capability to handle only classical CAN2.0 messages
Restricted = 7
Reserved
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BMCanMode
impl RefUnwindSafe for BMCanMode
impl Send for BMCanMode
impl Sync for BMCanMode
impl Unpin for BMCanMode
impl UnwindSafe for BMCanMode
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