Struct Sr
#[repr(transparent)]pub struct Sr(pub u32);Expand description
status register
Tuple Fields§
§0: u32Implementations§
§impl Sr
impl Sr
pub const fn flevel(&self) -> u8
pub const fn flevel(&self) -> u8
FIFO level. Number of valid bytes held in the FIFO (0 when empty, 32 when full). Bit 13 is reserved on STM32L4 and STM32G4, which have a 16-byte FIFO (FLEVEL[4:0]).
pub const fn set_flevel(&mut self, val: u8)
pub const fn set_flevel(&mut self, val: u8)
FIFO level. Number of valid bytes held in the FIFO (0 when empty, 32 when full). Bit 13 is reserved on STM32L4 and STM32G4, which have a 16-byte FIFO (FLEVEL[4:0]).
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 UnsafeUnpin 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