Struct cortex_m::peripheral::SAU

source ·
pub struct SAU { /* private fields */ }
Expand description

Security Attribution Unit

Implementations§

Get the number of implemented SAU regions.

Enable the SAU.

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.

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.

Pointer to the register block

👎Deprecated since 0.7.5: Use the associated constant PTR instead

Returns a pointer to the register block

Trait Implementations§

The resulting type after dereferencing.
Dereferences the value.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.