[−][src]Struct cortex_m::peripheral::SAU
Security Attribution Unit
Implementations
impl SAU
[src]
pub fn region_numbers(&self) -> u8
[src]
Get the number of implemented SAU regions.
pub fn enable(&mut self)
[src]
Enable the SAU.
pub fn set_region(
&mut self,
region_number: u8,
region: SauRegion
) -> Result<(), SauError>
[src]
&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.
pub fn get_region(&mut self, region_number: u8) -> Result<SauRegion, SauError>
[src]
Get a region from the SAU. The region number must be valid. This function is executed under a critical section to prevent having inconsistent results.
impl SAU
[src]
pub const PTR: *const RegisterBlock
[src]
Pointer to the register block
pub const fn ptr() -> *const RegisterBlock
[src]
Returns a pointer to the register block (to be deprecated in 0.7)
Trait Implementations
impl Deref for SAU
[src]
type Target = RegisterBlock
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl Send for SAU
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,