pub enum Mode {
Normal,
ListenOnly,
SelfTest,
LoopbackSelfTest,
}Expand description
How the controller participates on the bus.
Variants§
Normal
Transmits and receives normally.
ListenOnly
Receives only, never driving a dominant bit (TRM 38.3.12.4).
SelfTest
Treats a frame as transmitted even without an ACK (TRM 38.3.12.2).
Needed to transmit as the only node on a bus.
LoopbackSelfTest
Routes transmitted frames back into the RX buffer (TRM 38.3.12.1).
Also enables self test, because loopback alone still requires an ACK.
Trait Implementations§
impl Copy for Mode
Available on crate feature
unstable only.impl Eq for Mode
Available on crate feature
unstable only.impl StructuralPartialEq for Mode
Available on crate feature
unstable only.Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnsafeUnpin for Mode
impl UnwindSafe for Mode
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)