Struct esp32_hal::peripherals::SHA

source ·
pub struct SHA { /* private fields */ }

Implementations§

source§

impl SHA

source

pub unsafe fn steal() -> SHA

Unsafely create an instance of this peripheral out of thin air.

§Safety

You must ensure that you’re only using one instance of this type at a time.

source

pub const PTR: *const <SHA as Deref>::Target = {0x3ff03000 as *const <esp32::SHA as core::ops::Deref>::Target}

Pointer to the register block

source

pub const fn ptr() -> *const <SHA as Deref>::Target

Return the pointer to the register block

Methods from Deref<Target = RegisterBlock>§

source

pub fn text(&self, n: usize) -> &Reg<TEXT_SPEC>

0x00..0x80 -

source

pub fn text_iter(&self) -> impl Iterator<Item = &Reg<TEXT_SPEC>>

Iterator for array of: 0x00..0x80 -

source

pub fn sha1_start(&self) -> &Reg<SHA1_START_SPEC>

0x80 -

source

pub fn sha1_continue(&self) -> &Reg<SHA1_CONTINUE_SPEC>

0x84 -

source

pub fn sha1_load(&self) -> &Reg<SHA1_LOAD_SPEC>

0x88 -

source

pub fn sha1_busy(&self) -> &Reg<SHA1_BUSY_SPEC>

0x8c -

source

pub fn sha256_start(&self) -> &Reg<SHA256_START_SPEC>

0x90 -

source

pub fn sha256_continue(&self) -> &Reg<SHA256_CONTINUE_SPEC>

0x94 -

source

pub fn sha256_load(&self) -> &Reg<SHA256_LOAD_SPEC>

0x98 -

source

pub fn sha256_busy(&self) -> &Reg<SHA256_BUSY_SPEC>

0x9c -

source

pub fn sha384_start(&self) -> &Reg<SHA384_START_SPEC>

0xa0 -

source

pub fn sha384_continue(&self) -> &Reg<SHA384_CONTINUE_SPEC>

0xa4 -

source

pub fn sha384_load(&self) -> &Reg<SHA384_LOAD_SPEC>

0xa8 -

source

pub fn sha384_busy(&self) -> &Reg<SHA384_BUSY_SPEC>

0xac -

source

pub fn sha512_start(&self) -> &Reg<SHA512_START_SPEC>

0xb0 -

source

pub fn sha512_continue(&self) -> &Reg<SHA512_CONTINUE_SPEC>

0xb4 -

source

pub fn sha512_load(&self) -> &Reg<SHA512_LOAD_SPEC>

0xb8 -

source

pub fn sha512_busy(&self) -> &Reg<SHA512_BUSY_SPEC>

0xbc -

Trait Implementations§

source§

impl Debug for SHA

source§

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

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

impl Deref for SHA

§

type Target = <SHA as Deref>::Target

The resulting type after dereferencing.
source§

fn deref(&self) -> &<SHA as Deref>::Target

Dereferences the value.
source§

impl DerefMut for SHA

source§

fn deref_mut(&mut self) -> &mut <SHA as Deref>::Target

Mutably dereferences the value.
source§

impl Peripheral for SHA

§

type P = SHA

Peripheral singleton type
source§

unsafe fn clone_unchecked(&mut self) -> <SHA as Peripheral>::P

Unsafely clone (duplicate) a peripheral singleton. Read more
source§

fn into_ref<'a>(self) -> PeripheralRef<'a, Self::P>
where Self: 'a,

Convert a value into a PeripheralRef. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for SHA

§

impl Send for SHA

§

impl Sync for SHA

§

impl Unpin for SHA

§

impl UnwindSafe for SHA

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<T, U> TryFrom<U> for T
where U: Into<T>,

§

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>,

§

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.