#[repr(transparent)]pub struct Forceprotect(pub u32);
Expand description
Software force enable APPROTECT mechanism until next reset. This register can only be written once.
Tuple Fields§
§0: u32
Implementations§
Source§impl Forceprotect
impl Forceprotect
Sourcepub const fn forceprotect(&self) -> Forceprotect
pub const fn forceprotect(&self) -> Forceprotect
Write 0x0 to force enable APPROTECT mechanism
Sourcepub fn set_forceprotect(&mut self, val: Forceprotect)
pub fn set_forceprotect(&mut self, val: Forceprotect)
Write 0x0 to force enable APPROTECT mechanism
Trait Implementations§
Source§impl Clone for Forceprotect
impl Clone for Forceprotect
Source§fn clone(&self) -> Forceprotect
fn clone(&self) -> Forceprotect
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for Forceprotect
impl Default for Forceprotect
Source§fn default() -> Forceprotect
fn default() -> Forceprotect
Returns the “default value” for a type. Read more
Source§impl PartialEq for Forceprotect
impl PartialEq for Forceprotect
impl Copy for Forceprotect
impl Eq for Forceprotect
impl StructuralPartialEq for Forceprotect
Auto Trait Implementations§
impl Freeze for Forceprotect
impl RefUnwindSafe for Forceprotect
impl Send for Forceprotect
impl Sync for Forceprotect
impl Unpin for Forceprotect
impl UnwindSafe for Forceprotect
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
)