Struct HMAC

Source
pub struct HMAC { /* private fields */ }

Implementations§

Source§

impl HMAC

Source

pub const PTR: *const <HMAC as Deref>::Target = {0x6008d000 as *const <esp32h2::HMAC as core::ops::Deref>::Target}

Pointer to the register block

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

Source§

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

Source§

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 Freeze for HMAC

§

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