#[repr(transparent)]pub struct Sr(pub u32);
Expand description
Status register, SSPSR on page 3-7
Tuple Fields§
§0: u32
Implementations§
source§impl Sr
impl Sr
sourcepub const fn tfe(&self) -> bool
pub const fn tfe(&self) -> bool
Transmit FIFO empty, RO: 0 Transmit FIFO is not empty. 1 Transmit FIFO is empty.
sourcepub fn set_tfe(&mut self, val: bool)
pub fn set_tfe(&mut self, val: bool)
Transmit FIFO empty, RO: 0 Transmit FIFO is not empty. 1 Transmit FIFO is empty.
sourcepub const fn tnf(&self) -> bool
pub const fn tnf(&self) -> bool
Transmit FIFO not full, RO: 0 Transmit FIFO is full. 1 Transmit FIFO is not full.
sourcepub fn set_tnf(&mut self, val: bool)
pub fn set_tnf(&mut self, val: bool)
Transmit FIFO not full, RO: 0 Transmit FIFO is full. 1 Transmit FIFO is not full.
sourcepub const fn rne(&self) -> bool
pub const fn rne(&self) -> bool
Receive FIFO not empty, RO: 0 Receive FIFO is empty. 1 Receive FIFO is not empty.
sourcepub fn set_rne(&mut self, val: bool)
pub fn set_rne(&mut self, val: bool)
Receive FIFO not empty, RO: 0 Receive FIFO is empty. 1 Receive FIFO is not empty.
sourcepub const fn rff(&self) -> bool
pub const fn rff(&self) -> bool
Receive FIFO full, RO: 0 Receive FIFO is not full. 1 Receive FIFO is full.
sourcepub fn set_rff(&mut self, val: bool)
pub fn set_rff(&mut self, val: bool)
Receive FIFO full, RO: 0 Receive FIFO is not full. 1 Receive FIFO is full.
Trait Implementations§
impl Copy for Sr
impl Eq for Sr
impl StructuralPartialEq for Sr
Auto Trait Implementations§
impl Freeze for Sr
impl RefUnwindSafe for Sr
impl Send for Sr
impl Sync for Sr
impl Unpin for Sr
impl UnwindSafe for Sr
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
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)