Struct cortex_m::peripheral::SAU
source · [−]pub struct SAU { /* private fields */ }
Expand description
Security Attribution Unit
Implementations
sourceimpl SAU
impl SAU
sourcepub fn region_numbers(&self) -> u8
pub fn region_numbers(&self) -> u8
Get the number of implemented SAU regions.
sourcepub fn set_region(
&mut self,
region_number: u8,
region: SauRegion
) -> Result<(), SauError>
pub fn set_region(
&mut self,
region_number: u8,
region: SauRegion
) -> Result<(), SauError>
Set a SAU region to a region number. SAU regions must be 32 bytes aligned and their sizes must be a multiple of 32 bytes. It means that the 5 least significant bits of the base address of a SAU region must be set to zero and the 5 least significant bits of the limit address must be set to one. The region number must be valid. This function is executed under a critical section to prevent having inconsistent results.
sourceimpl SAU
impl SAU
sourcepub const PTR: *const RegisterBlock = {0xe000edd0 as *const peripheral::sau::RegisterBlock}
pub const PTR: *const RegisterBlock = {0xe000edd0 as *const peripheral::sau::RegisterBlock}
Pointer to the register block
sourcepub const fn ptr() -> *const RegisterBlock
👎 Deprecated since 0.7.5: Use the associated constant PTR
instead
pub const fn ptr() -> *const RegisterBlock
Use the associated constant PTR
instead
Returns a pointer to the register block
Trait Implementations
sourceimpl Deref for SAU
impl Deref for SAU
type Target = RegisterBlock
type Target = RegisterBlock
The resulting type after dereferencing.
impl Send for SAU
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more