Type Alias rp2040_pac::uart0::uartdr::R
source · pub type R = R<UARTDR_SPEC>;
Expand description
Register UARTDR
reader
Aliased Type§
struct R { /* private fields */ }
Implementations§
source§impl R
impl R
sourcepub fn data(&self) -> DATA_R
pub fn data(&self) -> DATA_R
Bits 0:7 - Receive (read) data character. Transmit (write) data character.
sourcepub fn fe(&self) -> FE_R
pub fn fe(&self) -> FE_R
Bit 8 - Framing error. When set to 1, it indicates that the received character did not have a valid stop bit (a valid stop bit is 1). In FIFO mode, this error is associated with the character at the top of the FIFO.
sourcepub fn pe(&self) -> PE_R
pub fn pe(&self) -> PE_R
Bit 9 - Parity error. When set to 1, it indicates that the parity of the received data character does not match the parity that the EPS and SPS bits in the Line Control Register, UARTLCR_H. In FIFO mode, this error is associated with the character at the top of the FIFO.
sourcepub fn be(&self) -> BE_R
pub fn be(&self) -> BE_R
Bit 10 - Break error. This bit is set to 1 if a break condition was detected, indicating that the received data input was held LOW for longer than a full-word transmission time (defined as start, data, parity and stop bits). In FIFO mode, this error is associated with the character at the top of the FIFO. When a break occurs, only one 0 character is loaded into the FIFO. The next character is only enabled after the receive data input goes to a 1 (marking state), and the next valid start bit is received.