#[repr(transparent)]pub struct Uartdr(pub u32);
Expand description
Data Register, UARTDR
Tuple Fields§
§0: u32
Implementations§
source§impl Uartdr
impl Uartdr
sourcepub fn set_data(&mut self, val: u8)
pub fn set_data(&mut self, val: u8)
Receive (read) data character. Transmit (write) data character.
sourcepub const fn fe(&self) -> bool
pub const fn fe(&self) -> bool
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 set_fe(&mut self, val: bool)
pub fn set_fe(&mut self, val: bool)
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 const fn pe(&self) -> bool
pub const fn pe(&self) -> bool
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 set_pe(&mut self, val: bool)
pub fn set_pe(&mut self, val: bool)
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 const fn be(&self) -> bool
pub const fn be(&self) -> bool
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.
sourcepub fn set_be(&mut self, val: bool)
pub fn set_be(&mut self, val: bool)
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.
Trait Implementations§
impl Copy for Uartdr
impl Eq for Uartdr
impl StructuralPartialEq for Uartdr
Auto Trait Implementations§
impl Freeze for Uartdr
impl RefUnwindSafe for Uartdr
impl Send for Uartdr
impl Sync for Uartdr
impl Unpin for Uartdr
impl UnwindSafe for Uartdr
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)