Struct esp32s3_hal::pac::twai::status::R

pub struct R(_);
Expand description

Register STATUS reader

Implementations§

Bit 0 - 1: The data in the RX buffer is not empty, with at least one received data packet.

Bit 1 - 1: The RX FIFO is full and data overrun has occurred.

Bit 2 - 1: The TX buffer is empty, the CPU may write a message into it.

Bit 3 - 1: The TWAI controller has successfully received a packet from the bus.

Bit 4 - 1: The TWAI Controller is receiving a message from the bus.

Bit 5 - 1: The TWAI Controller is transmitting a message to the bus.

Bit 6 - 1: At least one of the RX/TX error counter has reached or exceeded the value set in register TWAI_ERR_WARNING_LIMIT_REG.

Bit 7 - 1: In bus-off status, the TWAI Controller is no longer involved in bus activities.

Bit 8 - This bit reflects whether the data packet in the RX FIFO is complete. 1: The current packet is missing; 0: The current packet is complete

Methods from Deref<Target = R<STATUS_SPEC>>§

Reads raw bits from register.

Trait Implementations§

The resulting type after dereferencing.
Dereferences the value.
Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.