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