Type Alias R

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

Register SR reader

Aliased Type§

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

Source

pub fn udr(&self) -> UDR_R

Bit 3 - Underrun flag

Source

pub fn crcerr(&self) -> CRCERR_R

Bit 4 - CRC error flag

Source

pub fn modf(&self) -> MODF_R

Bit 5 - Mode fault

Source

pub fn ovr(&self) -> OVR_R

Bit 6 - Overrun flag

Source

pub fn bsy(&self) -> BSY_R

Bit 7 - Busy flag

Trait Implementations§

Source§

impl Debug for R

Source§

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

Formats the value using the given formatter. Read more