pub struct HMAC { /* private fields */ }

Implementations§

source§

impl HMAC

source

pub unsafe fn steal() -> HMAC

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 <HMAC as Deref>::Target = {0x6003e000 as *const <esp32s3::HMAC as core::ops::Deref>::Target}

Pointer to the register block

source

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

Return the pointer to the register block

Methods from Deref<Target = RegisterBlock>§

source

pub fn set_start(&self) -> &Reg<SET_START_SPEC>

0x40 - Process control register 0.

source

pub fn set_para_purpose(&self) -> &Reg<SET_PARA_PURPOSE_SPEC>

0x44 - Configure purpose.

source

pub fn set_para_key(&self) -> &Reg<SET_PARA_KEY_SPEC>

0x48 - Configure key.

source

pub fn set_para_finish(&self) -> &Reg<SET_PARA_FINISH_SPEC>

0x4c - Finish initial configuration.

source

pub fn set_message_one(&self) -> &Reg<SET_MESSAGE_ONE_SPEC>

0x50 - Process control register 1.

source

pub fn set_message_ing(&self) -> &Reg<SET_MESSAGE_ING_SPEC>

0x54 - Process control register 2.

source

pub fn set_message_end(&self) -> &Reg<SET_MESSAGE_END_SPEC>

0x58 - Process control register 3.

source

pub fn set_result_finish(&self) -> &Reg<SET_RESULT_FINISH_SPEC>

0x5c - Process control register 4.

source

pub fn set_invalidate_jtag(&self) -> &Reg<SET_INVALIDATE_JTAG_SPEC>

0x60 - Invalidate register 0.

source

pub fn set_invalidate_ds(&self) -> &Reg<SET_INVALIDATE_DS_SPEC>

0x64 - Invalidate register 1.

source

pub fn query_error(&self) -> &Reg<QUERY_ERROR_SPEC>

0x68 - Error register.

source

pub fn query_busy(&self) -> &Reg<QUERY_BUSY_SPEC>

0x6c - Busy register.

source

pub fn wr_message_mem(&self, n: usize) -> &Reg<WR_MESSAGE_MEM_SPEC>

0x80..0xc0 - Message block memory.

source

pub fn wr_message_mem_iter( &self ) -> impl Iterator<Item = &Reg<WR_MESSAGE_MEM_SPEC>>

Iterator for array of: 0x80..0xc0 - Message block memory.

source

pub fn rd_result_mem(&self, n: usize) -> &Reg<RD_RESULT_MEM_SPEC>

0xc0..0xe0 - Result from upstream.

source

pub fn rd_result_mem_iter( &self ) -> impl Iterator<Item = &Reg<RD_RESULT_MEM_SPEC>>

Iterator for array of: 0xc0..0xe0 - Result from upstream.

source

pub fn set_message_pad(&self) -> &Reg<SET_MESSAGE_PAD_SPEC>

0xf0 - Process control register 5.

source

pub fn one_block(&self) -> &Reg<ONE_BLOCK_SPEC>

0xf4 - Process control register 6.

source

pub fn soft_jtag_ctrl(&self) -> &Reg<SOFT_JTAG_CTRL_SPEC>

0xf8 - Jtag register 0.

source

pub fn wr_jtag(&self) -> &Reg<WR_JTAG_SPEC>

0xfc - Jtag register 1.

source

pub fn date(&self) -> &Reg<DATE_SPEC>

0x1fc - Date register.

Trait Implementations§

source§

impl Debug for HMAC

source§

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

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

impl Deref for HMAC

§

type Target = <HMAC as Deref>::Target

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl DerefMut for HMAC

source§

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

Mutably dereferences the value.
source§

impl Peripheral for HMAC

§

type P = HMAC

Peripheral singleton type
source§

unsafe fn clone_unchecked(&mut self) -> <HMAC 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 HMAC

§

impl Send for HMAC

§

impl Sync for HMAC

§

impl Unpin for HMAC

§

impl UnwindSafe for HMAC

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.