Type Alias R

Source
pub type R = R<SRrs>;
Expand description

Register SR reader

Aliased Type§

pub struct R { /* private fields */ }

Implementations§

Source§

impl R

Source

pub fn rxne(&self) -> RXNE_R

Bit 0 - Receive buffer not empty

Source

pub fn txe(&self) -> TXE_R

Bit 1 - Transmit buffer empty

Source

pub fn chside(&self) -> CHSIDE_R

Bit 2 - Channel side Note: This bit is not used in SPI mode. It has no significance in PCM mode.

Source

pub fn udr(&self) -> UDR_R

Bit 3 - Underrun flag This flag is set by hardware and reset by a software sequence. Refer to page1057 for the software sequence. Note: This bit is not used in SPI mode.

Source

pub fn crcerr(&self) -> CRCERR_R

Bit 4 - CRC error flag Note: This flag is set by hardware and cleared by software writing 0. This bit is not used in I2S mode.

Source

pub fn modf(&self) -> MODF_R

Bit 5 - Mode fault This flag is set by hardware and reset by a software sequence. Refer to (MODF) on page1031 for the software sequence. Note: This bit is not used in I2S mode.

Source

pub fn ovr(&self) -> OVR_R

Bit 6 - Overrun flag This flag is set by hardware and reset by a software sequence. Refer to page1057 for the software sequence.

Source

pub fn bsy(&self) -> BSY_R

Bit 7 - Busy flag This flag is set and cleared by hardware. Note: The BSY flag must be used with caution: refer to and .

Source

pub fn fre(&self) -> FRE_R

Bit 8 - Frame format error This flag is used for SPI in TI slave mode and I2S slave mode. Refer to error flags and . This flag is set by hardware and reset when SPI_SR is read by software.

Source

pub fn frlvl(&self) -> FRLVL_R

Bits 9:10 - FIFO reception level

Source

pub fn ftlvl(&self) -> FTLVL_R

Bits 11:12 - FIFO transmission level These bits are set and cleared by hardware. Note: This bit is not used in I2S mode.

Trait Implementations§

Source§

impl Debug for R

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more