SEC_SAES

Struct SEC_SAES 

Source
pub struct SEC_SAES { /* private fields */ }
Expand description

Secure advanced encryption standard hardware accelerator

Implementations§

Source§

impl SEC_SAES

Source

pub const PTR: *const RegisterBlock = {0x520c0c00 as *const stm32h573::saes::RegisterBlock}

Pointer to the register block

Source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

Source

pub unsafe fn steal() -> Self

Steal an instance of this peripheral

§Safety

Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.

Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.

Methods from Deref<Target = RegisterBlock>§

Source

pub fn cr(&self) -> &CR

0x00 - SAES control register

Source

pub fn sr(&self) -> &SR

0x04 - SAES status register

Source

pub fn dinr(&self) -> &DINR

0x08 - SAES data input register

Source

pub fn doutr(&self) -> &DOUTR

0x0c - SAES data output register

Source

pub fn keyr0(&self) -> &KEYR0

0x10 - SAES key register 0

Source

pub fn keyr1(&self) -> &KEYR1

0x14 - SAES key register 1

Source

pub fn keyr2(&self) -> &KEYR2

0x18 - SAES key register 2

Source

pub fn keyr3(&self) -> &KEYR3

0x1c - SAES key register 3

Source

pub fn ivr0(&self) -> &IVR0

0x20 - SAES initialization vector register 0

Source

pub fn ivr1(&self) -> &IVR1

0x24 - SAES initialization vector register 1

Source

pub fn ivr2(&self) -> &IVR2

0x28 - SAES initialization vector register 2

Source

pub fn ivr3(&self) -> &IVR3

0x2c - SAES initialization vector register 3

Source

pub fn keyr4(&self) -> &KEYR4

0x30 - SAES key register 4

Source

pub fn keyr5(&self) -> &KEYR5

0x34 - SAES key register 5

Source

pub fn keyr6(&self) -> &KEYR6

0x38 - SAES key register 6

Source

pub fn keyr7(&self) -> &KEYR7

0x3c - SAES key register 7

Source

pub fn susp0r(&self) -> &SUSP0R

0x40 - SAES suspend registers

Source

pub fn susp1r(&self) -> &SUSP1R

0x44 - SAES suspend registers

Source

pub fn susp2r(&self) -> &SUSP2R

0x48 - SAES suspend registers

Source

pub fn susp3r(&self) -> &SUSP3R

0x4c - SAES suspend registers

Source

pub fn susp4r(&self) -> &SUSP4R

0x50 - SAES suspend registers

Source

pub fn susp5r(&self) -> &SUSP5R

0x54 - SAES suspend registers

Source

pub fn susp6r(&self) -> &SUSP6R

0x58 - SAES suspend registers

Source

pub fn susp7r(&self) -> &SUSP7R

0x5c - SAES suspend registers

Source

pub fn ier(&self) -> &IER

0x300 - SAES interrupt enable register

Source

pub fn isr(&self) -> &ISR

0x304 - SAES interrupt status register

Source

pub fn icr(&self) -> &ICR

0x308 - SAES interrupt clear register

Trait Implementations§

Source§

impl Debug for SEC_SAES

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deref for SEC_SAES

Source§

type Target = RegisterBlock

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl Send for SEC_SAES

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.