Struct esp32c3::twai0::status::R

source ·
pub struct R(_);
Expand description

Register STATUS reader

Implementations§

source§

impl R

source

pub fn rx_buf_st(&self) -> RX_BUF_ST_R

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

source

pub fn overrun_st(&self) -> OVERRUN_ST_R

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

source

pub fn tx_buf_st(&self) -> TX_BUF_ST_R

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

source

pub fn tx_complete(&self) -> TX_COMPLETE_R

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

source

pub fn rx_st(&self) -> RX_ST_R

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

source

pub fn tx_st(&self) -> TX_ST_R

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

source

pub fn err_st(&self) -> ERR_ST_R

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.

source

pub fn bus_off_st(&self) -> BUS_OFF_ST_R

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

source

pub fn miss_st(&self) -> MISS_ST_R

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>>§

source

pub fn bits(&self) -> REG::Ux

Reads raw bits from register.

Trait Implementations§

source§

impl Deref for R

§

type Target = R<STATUS_SPEC>

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl From<R<STATUS_SPEC>> for R

source§

fn from(reader: R<STATUS_SPEC>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl RefUnwindSafe for R

§

impl Send for R

§

impl Sync for R

§

impl Unpin for R

§

impl UnwindSafe for R

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.