HASH

Struct HASH 

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

Hash processor

Implementations§

Source§

impl HASH

Source

pub const PTR: *const RegisterBlock = {0x420c0400 as *const stm32h503::hash::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 - HASH control register

Source

pub fn din(&self) -> &DIN

0x04 - HASH data input register

Source

pub fn str(&self) -> &STR

0x08 - HASH start register

Source

pub fn hra0(&self) -> &HRA0

0x0c - HASH aliased digest register 0

Source

pub fn hra1(&self) -> &HRA1

0x10 - HASH aliased digest register 1

Source

pub fn hra2(&self) -> &HRA2

0x14 - HASH aliased digest register 2

Source

pub fn hra3(&self) -> &HRA3

0x18 - HASH aliased digest register 3

Source

pub fn hra4(&self) -> &HRA4

0x1c - HASH aliased digest register 4

Source

pub fn imr(&self) -> &IMR

0x20 - HASH interrupt enable register

Source

pub fn sr(&self) -> &SR

0x24 - HASH status register

Source

pub fn csr0(&self) -> &CSR0

0xf8 - HASH context swap register 0

Source

pub fn csr1(&self) -> &CSR1

0xfc - HASH context swap register 1

Source

pub fn csr2(&self) -> &CSR2

0x100 - HASH context swap register 2

Source

pub fn csr3(&self) -> &CSR3

0x104 - HASH context swap register 3

Source

pub fn csr4(&self) -> &CSR4

0x108 - HASH context swap register 4

Source

pub fn csr5(&self) -> &CSR5

0x10c - HASH context swap register 5

Source

pub fn csr6(&self) -> &CSR6

0x110 - HASH context swap register 6

Source

pub fn csr7(&self) -> &CSR7

0x114 - HASH context swap register 7

Source

pub fn csr8(&self) -> &CSR8

0x118 - HASH context swap register 8

Source

pub fn csr9(&self) -> &CSR9

0x11c - HASH context swap register 9

Source

pub fn csr10(&self) -> &CSR10

0x120 - HASH context swap register 10

Source

pub fn csr11(&self) -> &CSR11

0x124 - HASH context swap register 11

Source

pub fn csr12(&self) -> &CSR12

0x128 - HASH context swap register 12

Source

pub fn csr13(&self) -> &CSR13

0x12c - HASH context swap register 13

Source

pub fn csr14(&self) -> &CSR14

0x130 - HASH context swap register 14

Source

pub fn csr15(&self) -> &CSR15

0x134 - HASH context swap register 15

Source

pub fn csr16(&self) -> &CSR16

0x138 - HASH context swap register 16

Source

pub fn csr17(&self) -> &CSR17

0x13c - HASH context swap register 17

Source

pub fn csr18(&self) -> &CSR18

0x140 - HASH context swap register 18

Source

pub fn csr19(&self) -> &CSR19

0x144 - HASH context swap register 19

Source

pub fn csr20(&self) -> &CSR20

0x148 - HASH context swap register 20

Source

pub fn csr21(&self) -> &CSR21

0x14c - HASH context swap register 21

Source

pub fn csr22(&self) -> &CSR22

0x150 - HASH context swap register 22

Source

pub fn csr23(&self) -> &CSR23

0x154 - HASH context swap register 23

Source

pub fn csr24(&self) -> &CSR24

0x158 - HASH context swap register 24

Source

pub fn csr25(&self) -> &CSR25

0x15c - HASH context swap register 25

Source

pub fn csr26(&self) -> &CSR26

0x160 - HASH context swap register 26

Source

pub fn csr27(&self) -> &CSR27

0x164 - HASH context swap register 27

Source

pub fn csr28(&self) -> &CSR28

0x168 - HASH context swap register 28

Source

pub fn csr29(&self) -> &CSR29

0x16c - HASH context swap register 29

Source

pub fn csr30(&self) -> &CSR30

0x170 - HASH context swap register 30

Source

pub fn csr31(&self) -> &CSR31

0x174 - HASH context swap register 31

Source

pub fn csr32(&self) -> &CSR32

0x178 - HASH context swap register 32

Source

pub fn csr33(&self) -> &CSR33

0x17c - HASH context swap register 33

Source

pub fn csr34(&self) -> &CSR34

0x180 - HASH context swap register 34

Source

pub fn csr35(&self) -> &CSR35

0x184 - HASH context swap register 35

Source

pub fn csr36(&self) -> &CSR36

0x188 - HASH context swap register 36

Source

pub fn csr37(&self) -> &CSR37

0x18c - HASH context swap register 37

Source

pub fn csr38(&self) -> &CSR38

0x190 - HASH context swap register 38

Source

pub fn csr39(&self) -> &CSR39

0x194 - HASH context swap register 39

Source

pub fn csr40(&self) -> &CSR40

0x198 - HASH context swap register 40

Source

pub fn csr41(&self) -> &CSR41

0x19c - HASH context swap register 41

Source

pub fn csr42(&self) -> &CSR42

0x1a0 - HASH context swap register 42

Source

pub fn csr43(&self) -> &CSR43

0x1a4 - HASH context swap register 43

Source

pub fn csr44(&self) -> &CSR44

0x1a8 - HASH context swap register 44

Source

pub fn csr45(&self) -> &CSR45

0x1ac - HASH context swap register 45

Source

pub fn csr46(&self) -> &CSR46

0x1b0 - HASH context swap register 46

Source

pub fn csr47(&self) -> &CSR47

0x1b4 - HASH context swap register 47

Source

pub fn csr48(&self) -> &CSR48

0x1b8 - HASH context swap register 48

Source

pub fn csr49(&self) -> &CSR49

0x1bc - HASH context swap register 49

Source

pub fn csr50(&self) -> &CSR50

0x1c0 - HASH context swap register 50

Source

pub fn csr51(&self) -> &CSR51

0x1c4 - HASH context swap register 51

Source

pub fn csr52(&self) -> &CSR52

0x1c8 - HASH context swap register 52

Source

pub fn csr53(&self) -> &CSR53

0x1cc - HASH context swap register 53

Source

pub fn hr0(&self) -> &HR0

0x310 - HASH digest register 0

Source

pub fn hr1(&self) -> &HR1

0x314 - HASH digest register 1

Source

pub fn hr2(&self) -> &HR2

0x318 - HASH digest register 2

Source

pub fn hr3(&self) -> &HR3

0x31c - HASH digest register 3

Source

pub fn hr4(&self) -> &HR4

0x320 - HASH digest register 4

Source

pub fn hr5(&self) -> &HR5

0x324 - HASH supplementary digest register 5

Source

pub fn hr6(&self) -> &HR6

0x328 - HASH supplementary digest register 6

Source

pub fn hr7(&self) -> &HR7

0x32c - HASH supplementary digest register 7

Trait Implementations§

Source§

impl Debug for HASH

Source§

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

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

impl Deref for HASH

Source§

type Target = RegisterBlock

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl Send for HASH

Auto Trait Implementations§

§

impl Freeze for HASH

§

impl RefUnwindSafe for HASH

§

impl !Sync for HASH

§

impl Unpin for HASH

§

impl UnwindSafe for HASH

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.