pub struct Status { /* private fields */ }Expand description
Status register.
Implementations§
Source§impl Status
impl Status
Sourcepub const ZERO: Self
pub const ZERO: Self
Creates a new instance with a raw value of 0. Equivalent to [Self::new_with_raw_value(0)].
Sourcepub const fn new_with_raw_value(value: u32) -> Status
pub const fn new_with_raw_value(value: u32) -> Status
Creates a new instance of this bitfield with the given raw value.
No checks are performed on the value, so it is possible to set bits that don’t have any accessors specified.
Sourcepub const fn parity_error(&self) -> bool
pub const fn parity_error(&self) -> bool
Parity error bit.
Sourcepub const fn frame_error(&self) -> bool
pub const fn frame_error(&self) -> bool
Frame error bit.
Sourcepub const fn overrun_error(&self) -> bool
pub const fn overrun_error(&self) -> bool
Overrun error bit.
Sourcepub const fn intr_enabled(&self) -> bool
pub const fn intr_enabled(&self) -> bool
Interrupt enabled bit.
Sourcepub const fn tx_fifo_full(&self) -> bool
pub const fn tx_fifo_full(&self) -> bool
TX FIFO full.
Sourcepub const fn tx_fifo_empty(&self) -> bool
pub const fn tx_fifo_empty(&self) -> bool
TX FIFO empty.
Sourcepub const fn rx_fifo_full(&self) -> bool
pub const fn rx_fifo_full(&self) -> bool
RX FIFO full.
Sourcepub const fn rx_fifo_valid_data(&self) -> bool
pub const fn rx_fifo_valid_data(&self) -> bool
RX FIFO contains valid data.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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
Mutably borrows from an owned value. Read more