#[repr(transparent)]pub struct Usr(pub u32);
Expand description
Controls for APB data read interface (USER interface)
Tuple Fields§
§0: u32
Implementations§
source§impl Usr
impl Usr
sourcepub const fn dctrl(&self) -> bool
pub const fn dctrl(&self) -> bool
1 enables USER interface; 0 disables USER interface (enables SBPI). This bit must be cleared before performing any SBPI access, such as when programming the OTP. The APB data read interface (USER interface) will be inaccessible during this time, and will return a bus error if any read is attempted.
sourcepub fn set_dctrl(&mut self, val: bool)
pub fn set_dctrl(&mut self, val: bool)
1 enables USER interface; 0 disables USER interface (enables SBPI). This bit must be cleared before performing any SBPI access, such as when programming the OTP. The APB data read interface (USER interface) will be inaccessible during this time, and will return a bus error if any read is attempted.
Trait Implementations§
impl Copy for Usr
impl Eq for Usr
impl StructuralPartialEq for Usr
Auto Trait Implementations§
impl Freeze for Usr
impl RefUnwindSafe for Usr
impl Send for Usr
impl Sync for Usr
impl Unpin for Usr
impl UnwindSafe for Usr
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
)