[−][src]Struct drone_cortex_m::map::reg::mpu::ctrl::Hold
Enables the MPU, and when the MPU is enabled, controls whether the default memory map is enabled as a background region for privileged accesses, and whether the MPU is enabled for HardFaults, NMIs, and exception handlers when FAULTMASK is set to 1.
Methods
impl<'a, _T: RegTag> Hold<'a, _T>
[src]
pub fn privdefena(&self) -> bool
[src]
Enables the default memory map as a background region for privileged access.
impl<'a, _T: RegTag> Hold<'a, _T>
[src]
pub fn set_privdefena(&mut self) -> &mut Self
[src]
Enables the default memory map as a background region for privileged access.
pub fn clear_privdefena(&mut self) -> &mut Self
[src]
Enables the default memory map as a background region for privileged access.
pub fn toggle_privdefena(&mut self) -> &mut Self
[src]
Enables the default memory map as a background region for privileged access.
impl<'a, _T: RegTag> Hold<'a, _T>
[src]
pub fn hfnmiena(&self) -> bool
[src]
Enables the operation of MPU during hard fault, NMI, and FAULTMASK handlers.
impl<'a, _T: RegTag> Hold<'a, _T>
[src]
pub fn set_hfnmiena(&mut self) -> &mut Self
[src]
Enables the operation of MPU during hard fault, NMI, and FAULTMASK handlers.
pub fn clear_hfnmiena(&mut self) -> &mut Self
[src]
Enables the operation of MPU during hard fault, NMI, and FAULTMASK handlers.
pub fn toggle_hfnmiena(&mut self) -> &mut Self
[src]
Enables the operation of MPU during hard fault, NMI, and FAULTMASK handlers.
impl<'a, _T: RegTag> Hold<'a, _T>
[src]
impl<'a, _T: RegTag> Hold<'a, _T>
[src]
pub fn set_enable(&mut self) -> &mut Self
[src]
Enables the MPU.
pub fn clear_enable(&mut self) -> &mut Self
[src]
Enables the MPU.
pub fn toggle_enable(&mut self) -> &mut Self
[src]
Enables the MPU.
Trait Implementations
Auto Trait Implementations
impl<'a, _T> Unpin for Hold<'a, _T>
impl<'a, _T> Send for Hold<'a, _T>
impl<'a, _T> Sync for Hold<'a, _T>
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,