Enum kernel::hil::can::OperationMode
source · pub enum OperationMode {
Loopback,
Monitoring,
Freeze,
Normal,
}
Expand description
The peripheral can be configured to work in the following modes:
Variants§
Loopback
Loopback mode means that each message is transmitted on the TX channel and immediately received on the RX channel
Monitoring
Monitoring mode means that the CAN peripheral sends only the recessive bits on the bus and cannot start a transmission, but can receive valid data frames and valid remote frames
Freeze
Freeze mode means that no transmission or reception of frames is done
Normal
Normal mode means that the transmission and reception of frames are available
Trait Implementations§
source§impl Clone for OperationMode
impl Clone for OperationMode
source§fn clone(&self) -> OperationMode
fn clone(&self) -> OperationMode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OperationMode
impl Debug for OperationMode
impl Copy for OperationMode
Auto Trait Implementations§
impl Freeze for OperationMode
impl RefUnwindSafe for OperationMode
impl Send for OperationMode
impl Sync for OperationMode
impl Unpin for OperationMode
impl UnwindSafe for OperationMode
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)