#[repr(transparent)]pub struct Uartfr(pub u32);
Expand description
Flag Register, UARTFR
Tuple Fields§
§0: u32
Implementations§
source§impl Uartfr
impl Uartfr
sourcepub const fn cts(&self) -> bool
pub const fn cts(&self) -> bool
Clear to send. This bit is the complement of the UART clear to send, nUARTCTS, modem status input. That is, the bit is 1 when nUARTCTS is LOW.
sourcepub fn set_cts(&mut self, val: bool)
pub fn set_cts(&mut self, val: bool)
Clear to send. This bit is the complement of the UART clear to send, nUARTCTS, modem status input. That is, the bit is 1 when nUARTCTS is LOW.
sourcepub const fn dsr(&self) -> bool
pub const fn dsr(&self) -> bool
Data set ready. This bit is the complement of the UART data set ready, nUARTDSR, modem status input. That is, the bit is 1 when nUARTDSR is LOW.
sourcepub fn set_dsr(&mut self, val: bool)
pub fn set_dsr(&mut self, val: bool)
Data set ready. This bit is the complement of the UART data set ready, nUARTDSR, modem status input. That is, the bit is 1 when nUARTDSR is LOW.
sourcepub const fn dcd(&self) -> bool
pub const fn dcd(&self) -> bool
Data carrier detect. This bit is the complement of the UART data carrier detect, nUARTDCD, modem status input. That is, the bit is 1 when nUARTDCD is LOW.
sourcepub fn set_dcd(&mut self, val: bool)
pub fn set_dcd(&mut self, val: bool)
Data carrier detect. This bit is the complement of the UART data carrier detect, nUARTDCD, modem status input. That is, the bit is 1 when nUARTDCD is LOW.
sourcepub const fn busy(&self) -> bool
pub const fn busy(&self) -> bool
UART busy. If this bit is set to 1, the UART is busy transmitting data. This bit remains set until the complete byte, including all the stop bits, has been sent from the shift register. This bit is set as soon as the transmit FIFO becomes non-empty, regardless of whether the UART is enabled or not.
sourcepub fn set_busy(&mut self, val: bool)
pub fn set_busy(&mut self, val: bool)
UART busy. If this bit is set to 1, the UART is busy transmitting data. This bit remains set until the complete byte, including all the stop bits, has been sent from the shift register. This bit is set as soon as the transmit FIFO becomes non-empty, regardless of whether the UART is enabled or not.
sourcepub const fn rxfe(&self) -> bool
pub const fn rxfe(&self) -> bool
Receive FIFO empty. The meaning of this bit depends on the state of the FEN bit in the UARTLCR_H Register. If the FIFO is disabled, this bit is set when the receive holding register is empty. If the FIFO is enabled, the RXFE bit is set when the receive FIFO is empty.
sourcepub fn set_rxfe(&mut self, val: bool)
pub fn set_rxfe(&mut self, val: bool)
Receive FIFO empty. The meaning of this bit depends on the state of the FEN bit in the UARTLCR_H Register. If the FIFO is disabled, this bit is set when the receive holding register is empty. If the FIFO is enabled, the RXFE bit is set when the receive FIFO is empty.
sourcepub const fn txff(&self) -> bool
pub const fn txff(&self) -> bool
Transmit FIFO full. The meaning of this bit depends on the state of the FEN bit in the UARTLCR_H Register. If the FIFO is disabled, this bit is set when the transmit holding register is full. If the FIFO is enabled, the TXFF bit is set when the transmit FIFO is full.
sourcepub fn set_txff(&mut self, val: bool)
pub fn set_txff(&mut self, val: bool)
Transmit FIFO full. The meaning of this bit depends on the state of the FEN bit in the UARTLCR_H Register. If the FIFO is disabled, this bit is set when the transmit holding register is full. If the FIFO is enabled, the TXFF bit is set when the transmit FIFO is full.
sourcepub const fn rxff(&self) -> bool
pub const fn rxff(&self) -> bool
Receive FIFO full. The meaning of this bit depends on the state of the FEN bit in the UARTLCR_H Register. If the FIFO is disabled, this bit is set when the receive holding register is full. If the FIFO is enabled, the RXFF bit is set when the receive FIFO is full.
sourcepub fn set_rxff(&mut self, val: bool)
pub fn set_rxff(&mut self, val: bool)
Receive FIFO full. The meaning of this bit depends on the state of the FEN bit in the UARTLCR_H Register. If the FIFO is disabled, this bit is set when the receive holding register is full. If the FIFO is enabled, the RXFF bit is set when the receive FIFO is full.
sourcepub const fn txfe(&self) -> bool
pub const fn txfe(&self) -> bool
Transmit FIFO empty. The meaning of this bit depends on the state of the FEN bit in the Line Control Register, UARTLCR_H. If the FIFO is disabled, this bit is set when the transmit holding register is empty. If the FIFO is enabled, the TXFE bit is set when the transmit FIFO is empty. This bit does not indicate if there is data in the transmit shift register.
sourcepub fn set_txfe(&mut self, val: bool)
pub fn set_txfe(&mut self, val: bool)
Transmit FIFO empty. The meaning of this bit depends on the state of the FEN bit in the Line Control Register, UARTLCR_H. If the FIFO is disabled, this bit is set when the transmit holding register is empty. If the FIFO is enabled, the TXFE bit is set when the transmit FIFO is empty. This bit does not indicate if there is data in the transmit shift register.
Trait Implementations§
impl Copy for Uartfr
impl Eq for Uartfr
impl StructuralPartialEq for Uartfr
Auto Trait Implementations§
impl Freeze for Uartfr
impl RefUnwindSafe for Uartfr
impl Send for Uartfr
impl Sync for Uartfr
impl Unpin for Uartfr
impl UnwindSafe for Uartfr
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
)