[][src]Struct cortex_m::peripheral::SAU

pub struct SAU { /* fields omitted */ }

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]

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.

impl Send for SAU[src]

Auto Trait Implementations

impl !Sync for SAU

impl Unpin for SAU

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.