#[repr(transparent)]pub struct Ctrl(pub u32);Expand description
MPU Control Register.
Tuple Fields§
§0: u32Implementations§
Source§impl Ctrl
impl Ctrl
Sourcepub const fn set_enable(&mut self, val: Enable)
pub const fn set_enable(&mut self, val: Enable)
Enables the MPU.
Sourcepub const fn hfnmiena(&self) -> bool
pub const fn hfnmiena(&self) -> bool
Enables the operation of MPU during HardFault and NMI handlers.
Sourcepub const fn set_hfnmiena(&mut self, val: bool)
pub const fn set_hfnmiena(&mut self, val: bool)
Enables the operation of MPU during HardFault and NMI handlers.
Sourcepub const fn privdefena(&self) -> Privdefena
pub const fn privdefena(&self) -> Privdefena
no description available.
Sourcepub const fn set_privdefena(&mut self, val: Privdefena)
pub const fn set_privdefena(&mut self, val: Privdefena)
no description available.
Trait Implementations§
impl Copy for Ctrl
impl Eq for Ctrl
impl StructuralPartialEq for Ctrl
Auto Trait Implementations§
impl Freeze for Ctrl
impl RefUnwindSafe for Ctrl
impl Send for Ctrl
impl Sync for Ctrl
impl Unpin for Ctrl
impl UnwindSafe for Ctrl
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