Enum InterfaceOperationMode

Source
pub enum InterfaceOperationMode {
    Receiver,
    Transmitter,
    Integrating,
    Idle,
}
Expand description

Operation Modes describe what the interface is currently doing.

Variants§

§

Receiver

The interface is currently receiving a message from the bus.

§

Transmitter

The interface is currently transmitting a message from the bus.

§

Integrating

The interface is waiting to sync with the bus (detect 11 consecutive recessive bits).

NOTE: this state was never described in the CAN 2.0 spec, only the CAN FD spec, so documentation not written with CAN FD in mind may not talk about how to detect it. That said, it is applicable to regular CAN hardware, they have this state for the same reason CAN-FD does, so people implementing CanInterface for non-FD hardware may have to do some thinking.

§

Idle

The interface ready and waiting to either transmit or receive.

NOTE: this state was never described in the CAN 2.0 spec, only the CAN FD spec, so documentation not written with CAN FD in mind may not talk about how to detect it. That said, it is applicable to regular CAN hardware, they have this state for the same reason CAN-FD does, so people implementing CanInterface for non-FD hardware may have to do some thinking.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.