pub type INIT_R = BitReader<INIT_A>;
Expand description
Field INIT
reader - Node Initialization
Aliased Type§
struct INIT_R { /* private fields */ }
Implementations§
source§impl INIT_R
impl INIT_R
sourcepub fn is_value1(&self) -> bool
pub fn is_value1(&self) -> bool
Resetting bit INIT enables the participation of the node in the CAN traffic. If the CAN node is in the bus-off state, the ongoing bus-off recovery (which does not depend on the INIT bit) is continued. With the end of the bus-off recovery sequence the CAN node is allowed to take part in the CAN traffic. If the CAN node is not in the bus-off state, a sequence of 11 consecutive recessive bits must be detected before the node is allowed to take part in the CAN traffic.
sourcepub fn is_value2(&self) -> bool
pub fn is_value2(&self) -> bool
Setting this bit terminates the participation of this node in the CAN traffic. Any ongoing frame transfer is cancelled and the transmit line goes recessive. If the CAN node is in the bus-off state, then the running bus-off recovery sequence is continued. If the INIT bit is still set after the successful completion of the bus-off recovery sequence, i.e. after detecting 128 sequences of 11 consecutive recessive bits (11 1), then the CAN node leaves the bus-off state but remains inactive as long as INIT remains set.