Struct esp32s2_hal::peripherals::AES
source · pub struct AES { /* private fields */ }
Implementations§
source§impl AES
impl AES
sourcepub unsafe fn steal() -> AES
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.
Methods from Deref<Target = RegisterBlock>§
sourcepub fn key_iter(&self) -> impl Iterator<Item = &Reg<KEY_SPEC>>
pub fn key_iter(&self) -> impl Iterator<Item = &Reg<KEY_SPEC>>
Iterator for array of: 0x00..0x20 - AES key register %s
sourcepub fn text_in(&self, n: usize) -> &Reg<TEXT_IN_SPEC>
pub fn text_in(&self, n: usize) -> &Reg<TEXT_IN_SPEC>
0x20..0x30 - Source data register %s
sourcepub fn text_in_iter(&self) -> impl Iterator<Item = &Reg<TEXT_IN_SPEC>>
pub fn text_in_iter(&self) -> impl Iterator<Item = &Reg<TEXT_IN_SPEC>>
Iterator for array of: 0x20..0x30 - Source data register %s
sourcepub fn text_out(&self, n: usize) -> &Reg<TEXT_OUT_SPEC>
pub fn text_out(&self, n: usize) -> &Reg<TEXT_OUT_SPEC>
0x30..0x40 - Result data register %s
sourcepub fn text_out_iter(&self) -> impl Iterator<Item = &Reg<TEXT_OUT_SPEC>>
pub fn text_out_iter(&self) -> impl Iterator<Item = &Reg<TEXT_OUT_SPEC>>
Iterator for array of: 0x30..0x40 - Result data register %s
sourcepub fn endian(&self) -> &Reg<ENDIAN_SPEC>
pub fn endian(&self) -> &Reg<ENDIAN_SPEC>
0x44 - Endian configuration register
sourcepub fn trigger(&self) -> &Reg<TRIGGER_SPEC>
pub fn trigger(&self) -> &Reg<TRIGGER_SPEC>
0x48 - Operation start controlling register
sourcepub fn state(&self) -> &Reg<STATE_SPEC>
pub fn state(&self) -> &Reg<STATE_SPEC>
0x4c - Operation status register
sourcepub fn iv__iter(&self) -> impl Iterator<Item = &Reg<IV__SPEC>>
pub fn iv__iter(&self) -> impl Iterator<Item = &Reg<IV__SPEC>>
Iterator for array of: 0x50..0x60 - initialization vector
sourcepub fn h__iter(&self) -> impl Iterator<Item = &Reg<H__SPEC>>
pub fn h__iter(&self) -> impl Iterator<Item = &Reg<H__SPEC>>
Iterator for array of: 0x60..0x70 - GCM hash subkey
sourcepub fn j0__iter(&self) -> impl Iterator<Item = &Reg<J0__SPEC>>
pub fn j0__iter(&self) -> impl Iterator<Item = &Reg<J0__SPEC>>
Iterator for array of: 0x70..0x80 - J0
sourcepub fn t0__iter(&self) -> impl Iterator<Item = &Reg<T0__SPEC>>
pub fn t0__iter(&self) -> impl Iterator<Item = &Reg<T0__SPEC>>
Iterator for array of: 0x80..0x90 - T0
sourcepub fn dma_enable(&self) -> &Reg<DMA_ENABLE_SPEC>
pub fn dma_enable(&self) -> &Reg<DMA_ENABLE_SPEC>
0x90 - DMA enable register
sourcepub fn block_mode(&self) -> &Reg<BLOCK_MODE_SPEC>
pub fn block_mode(&self) -> &Reg<BLOCK_MODE_SPEC>
0x94 - Block operation type register
sourcepub fn block_num(&self) -> &Reg<BLOCK_NUM_SPEC>
pub fn block_num(&self) -> &Reg<BLOCK_NUM_SPEC>
0x98 - Block number configuration register
sourcepub fn inc_sel(&self) -> &Reg<INC_SEL_SPEC>
pub fn inc_sel(&self) -> &Reg<INC_SEL_SPEC>
0x9c - Standard incrementing function register
sourcepub fn aad_block_num(&self) -> &Reg<AAD_BLOCK_NUM_SPEC>
pub fn aad_block_num(&self) -> &Reg<AAD_BLOCK_NUM_SPEC>
0xa0 - AAD block number configuration register
sourcepub fn remainder_bit_num(&self) -> &Reg<REMAINDER_BIT_NUM_SPEC>
pub fn remainder_bit_num(&self) -> &Reg<REMAINDER_BIT_NUM_SPEC>
0xa4 - Remainder bit number of plaintext/ciphertext
sourcepub fn continue_op(&self) -> &Reg<CONTINUE_OP_SPEC>
pub fn continue_op(&self) -> &Reg<CONTINUE_OP_SPEC>
0xa8 - Operation continue controlling register
sourcepub fn int_clr(&self) -> &Reg<INT_CLR_SPEC>
pub fn int_clr(&self) -> &Reg<INT_CLR_SPEC>
0xac - DMA-AES interrupt clear register
sourcepub fn int_ena(&self) -> &Reg<INT_ENA_SPEC>
pub fn int_ena(&self) -> &Reg<INT_ENA_SPEC>
0xb0 - DMA-AES interrupt enable register
sourcepub fn dma_exit(&self) -> &Reg<DMA_EXIT_SPEC>
pub fn dma_exit(&self) -> &Reg<DMA_EXIT_SPEC>
0xb8 - Operation exit controlling register