pub struct R(_);
Expand description
Register FIFOSTAT
reader
Implementations
sourceimpl R
impl R
sourcepub fn txerr(&self) -> TXERR_R
pub fn txerr(&self) -> TXERR_R
Bit 0 - TX FIFO error. Will be set if a transmit FIFO error occurs. This could be an overflow caused by pushing data into a full FIFO, or by an underflow if the FIFO is empty when data is needed. Cleared by writing a 1 to this bit.
sourcepub fn rxerr(&self) -> RXERR_R
pub fn rxerr(&self) -> RXERR_R
Bit 1 - RX FIFO error. Will be set if a receive FIFO overflow occurs, caused by software or DMA not emptying the FIFO fast enough. Cleared by writing a 1 to this bit.
sourcepub fn perint(&self) -> PERINT_R
pub fn perint(&self) -> PERINT_R
Bit 3 - Peripheral interrupt. When 1, this indicates that the peripheral function has asserted an interrupt. The details can be found by reading the peripheral’s STAT register.
sourcepub fn txempty(&self) -> TXEMPTY_R
pub fn txempty(&self) -> TXEMPTY_R
Bit 4 - Transmit FIFO empty. When 1, the transmit FIFO is empty. The peripheral may still be processing the last piece of data.
sourcepub fn txnotfull(&self) -> TXNOTFULL_R
pub fn txnotfull(&self) -> TXNOTFULL_R
Bit 5 - Transmit FIFO not full. When 1, the transmit FIFO is not full, so more data can be written. When 0, the transmit FIFO is full and another write would cause it to overflow.
sourcepub fn rxnotempty(&self) -> RXNOTEMPTY_R
pub fn rxnotempty(&self) -> RXNOTEMPTY_R
Bit 6 - Receive FIFO not empty. When 1, the receive FIFO is not empty, so data can be read. When 0, the receive FIFO is empty.
sourcepub fn rxfull(&self) -> RXFULL_R
pub fn rxfull(&self) -> RXFULL_R
Bit 7 - Receive FIFO full. When 1, the receive FIFO is full. Data needs to be read out to prevent the peripheral from causing an overflow.
sourcepub fn txlvl(&self) -> TXLVL_R
pub fn txlvl(&self) -> TXLVL_R
Bits 8:12 - Transmit FIFO current level. A 0 means the TX FIFO is currently empty, and the TXEMPTY and TXNOTFULL flags will be 1. Other values tell how much data is actually in the TX FIFO at the point where the read occurs. If the TX FIFO is full, the TXEMPTY and TXNOTFULL flags will be 0.
sourcepub fn rxlvl(&self) -> RXLVL_R
pub fn rxlvl(&self) -> RXLVL_R
Bits 16:20 - Receive FIFO current level. A 0 means the RX FIFO is currently empty, and the RXFULL and RXNOTEMPTY flags will be 0. Other values tell how much data is actually in the RX FIFO at the point where the read occurs. If the RX FIFO is full, the RXFULL and RXNOTEMPTY flags will be 1.
Methods from Deref<Target = R<FIFOSTAT_SPEC>>
Trait Implementations
sourceimpl From<R<FIFOSTAT_SPEC>> for R
impl From<R<FIFOSTAT_SPEC>> for R
sourcefn from(reader: R<FIFOSTAT_SPEC>) -> Self
fn from(reader: R<FIFOSTAT_SPEC>) -> Self
Performs the conversion.
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more