Struct esp32s3_hal::pac::twai::status::R
pub struct R(_);
Expand description
Register STATUS
reader
Implementations§
§impl R
impl R
pub fn rx_buf_st(&self) -> BitReaderRaw<bool>
pub fn rx_buf_st(&self) -> BitReaderRaw<bool>
Bit 0 - 1: The data in the RX buffer is not empty, with at least one received data packet.
pub fn overrun_st(&self) -> BitReaderRaw<bool>
pub fn overrun_st(&self) -> BitReaderRaw<bool>
Bit 1 - 1: The RX FIFO is full and data overrun has occurred.
pub fn tx_buf_st(&self) -> BitReaderRaw<bool>
pub fn tx_buf_st(&self) -> BitReaderRaw<bool>
Bit 2 - 1: The TX buffer is empty, the CPU may write a message into it.
pub fn tx_complete(&self) -> BitReaderRaw<bool>
pub fn tx_complete(&self) -> BitReaderRaw<bool>
Bit 3 - 1: The TWAI controller has successfully received a packet from the bus.
pub fn rx_st(&self) -> BitReaderRaw<bool>
pub fn rx_st(&self) -> BitReaderRaw<bool>
Bit 4 - 1: The TWAI Controller is receiving a message from the bus.
pub fn tx_st(&self) -> BitReaderRaw<bool>
pub fn tx_st(&self) -> BitReaderRaw<bool>
Bit 5 - 1: The TWAI Controller is transmitting a message to the bus.
pub fn err_st(&self) -> BitReaderRaw<bool>
pub fn err_st(&self) -> BitReaderRaw<bool>
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.
pub fn bus_off_st(&self) -> BitReaderRaw<bool>
pub fn bus_off_st(&self) -> BitReaderRaw<bool>
Bit 7 - 1: In bus-off status, the TWAI Controller is no longer involved in bus activities.
Methods from Deref<Target = R<STATUS_SPEC>>§
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
Reads raw bits from register.
Trait Implementations§
§impl From<R<STATUS_SPEC>> for R
impl From<R<STATUS_SPEC>> for R
§fn from(reader: R<STATUS_SPEC>) -> R
fn from(reader: R<STATUS_SPEC>) -> R
Converts to this type from the input type.