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.