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
sourceimpl Clone for OperationMode
impl Clone for OperationMode
sourcefn clone(&self) -> OperationMode
fn clone(&self) -> OperationMode
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for OperationMode
impl Debug for OperationMode
impl Copy for OperationMode
Auto Trait Implementations
impl RefUnwindSafe for OperationMode
impl Send for OperationMode
impl Sync for OperationMode
impl Unpin for OperationMode
impl UnwindSafe for OperationMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more