Struct AES

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

Implementations§

Source§

impl AES

Source

pub const PTR: *const <AES as Deref>::Target = {0x60088000 as *const <esp32c6::AES as core::ops::Deref>::Target}

Pointer to the register block

Source

pub unsafe fn steal() -> AES

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 <AES as Deref>::Target

Return the pointer to the register block

Methods from Deref<Target = RegisterBlock>§

Source

pub fn key_0(&self) -> &Reg<KEY_0_SPEC>

0x00 - Key material key_0 configure register

Source

pub fn key_1(&self) -> &Reg<KEY_1_SPEC>

0x04 - Key material key_1 configure register

Source

pub fn key_2(&self) -> &Reg<KEY_2_SPEC>

0x08 - Key material key_2 configure register

Source

pub fn key_3(&self) -> &Reg<KEY_3_SPEC>

0x0c - Key material key_3 configure register

Source

pub fn key_4(&self) -> &Reg<KEY_4_SPEC>

0x10 - Key material key_4 configure register

Source

pub fn key_5(&self) -> &Reg<KEY_5_SPEC>

0x14 - Key material key_5 configure register

Source

pub fn key_6(&self) -> &Reg<KEY_6_SPEC>

0x18 - Key material key_6 configure register

Source

pub fn key_7(&self) -> &Reg<KEY_7_SPEC>

0x1c - Key material key_7 configure register

Source

pub fn text_in_0(&self) -> &Reg<TEXT_IN_0_SPEC>

0x20 - source text material text_in_0 configure register

Source

pub fn text_in_1(&self) -> &Reg<TEXT_IN_1_SPEC>

0x24 - source text material text_in_1 configure register

Source

pub fn text_in_2(&self) -> &Reg<TEXT_IN_2_SPEC>

0x28 - source text material text_in_2 configure register

Source

pub fn text_in_3(&self) -> &Reg<TEXT_IN_3_SPEC>

0x2c - source text material text_in_3 configure register

Source

pub fn text_out_0(&self) -> &Reg<TEXT_OUT_0_SPEC>

0x30 - result text material text_out_0 configure register

Source

pub fn text_out_1(&self) -> &Reg<TEXT_OUT_1_SPEC>

0x34 - result text material text_out_1 configure register

Source

pub fn text_out_2(&self) -> &Reg<TEXT_OUT_2_SPEC>

0x38 - result text material text_out_2 configure register

Source

pub fn text_out_3(&self) -> &Reg<TEXT_OUT_3_SPEC>

0x3c - result text material text_out_3 configure register

Source

pub fn mode(&self) -> &Reg<MODE_SPEC>

0x40 - AES Mode register

Source

pub fn endian(&self) -> &Reg<ENDIAN_SPEC>

0x44 - AES Endian configure register

Source

pub fn trigger(&self) -> &Reg<TRIGGER_SPEC>

0x48 - AES trigger register

Source

pub fn state(&self) -> &Reg<STATE_SPEC>

0x4c - AES state register

Source

pub fn iv_mem(&self, n: usize) -> &Reg<IV_MEM_SPEC>

0x50..0x60 - The memory that stores initialization vector

Source

pub fn iv_mem_iter(&self) -> impl Iterator<Item = &Reg<IV_MEM_SPEC>>

Iterator for array of: 0x50..0x60 - The memory that stores initialization vector

Source

pub fn h_mem(&self, n: usize) -> &Reg<H_MEM_SPEC>

0x60..0x70 - The memory that stores GCM hash subkey

Source

pub fn h_mem_iter(&self) -> impl Iterator<Item = &Reg<H_MEM_SPEC>>

Iterator for array of: 0x60..0x70 - The memory that stores GCM hash subkey

Source

pub fn j0_mem(&self, n: usize) -> &Reg<J0_MEM_SPEC>

0x70..0x80 - The memory that stores J0

Source

pub fn j0_mem_iter(&self) -> impl Iterator<Item = &Reg<J0_MEM_SPEC>>

Iterator for array of: 0x70..0x80 - The memory that stores J0

Source

pub fn t0_mem(&self, n: usize) -> &Reg<T0_MEM_SPEC>

0x80..0x90 - The memory that stores T0

Source

pub fn t0_mem_iter(&self) -> impl Iterator<Item = &Reg<T0_MEM_SPEC>>

Iterator for array of: 0x80..0x90 - The memory that stores T0

Source

pub fn dma_enable(&self) -> &Reg<DMA_ENABLE_SPEC>

0x90 - DMA-AES working mode register

Source

pub fn block_mode(&self) -> &Reg<BLOCK_MODE_SPEC>

0x94 - AES cipher block mode register

Source

pub fn block_num(&self) -> &Reg<BLOCK_NUM_SPEC>

0x98 - AES block number register

Source

pub fn inc_sel(&self) -> &Reg<INC_SEL_SPEC>

0x9c - Standard incrementing function configure register

Source

pub fn aad_block_num(&self) -> &Reg<AAD_BLOCK_NUM_SPEC>

0xa0 - Additional Authential Data block number register

Source

pub fn remainder_bit_num(&self) -> &Reg<REMAINDER_BIT_NUM_SPEC>

0xa4 - AES remainder bit number register

Source

pub fn continue_(&self) -> &Reg<CONTINUE_SPEC>

0xa8 - AES continue register

Source

pub fn int_clear(&self) -> &Reg<INT_CLEAR_SPEC>

0xac - AES Interrupt clear register

Source

pub fn int_ena(&self) -> &Reg<INT_ENA_SPEC>

0xb0 - AES Interrupt enable register

Source

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

0xb4 - AES version control register

Source

pub fn dma_exit(&self) -> &Reg<DMA_EXIT_SPEC>

0xb8 - AES-DMA exit config

Trait Implementations§

Source§

impl Debug for AES

Source§

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

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

impl Deref for AES

Source§

type Target = <AES as Deref>::Target

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl DerefMut for AES

Source§

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

Mutably dereferences the value.
Source§

impl Peripheral for AES

Source§

type P = AES

Peripheral singleton type
Source§

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

§

impl RefUnwindSafe for AES

§

impl Send for AES

§

impl Sync for AES

§

impl Unpin for AES

§

impl UnwindSafe for AES

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.