pub struct AES { /* private fields */ }Expand description
Represents a virtual peripheral with no associated hardware.
This struct is generated by the create_peripheral! macro when the peripheral
is defined as virtual.
Implementations§
Methods from Deref<Target = RegisterBlock>§
Sourcepub fn key(&self, n: usize) -> &Reg<KEY_SPEC>
pub fn key(&self, n: usize) -> &Reg<KEY_SPEC>
0x00..0x20 - Key material key_%s configure register
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 - Key material key_%s configure register
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 text material text_in_%s configure register
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 text material text_in_%s configure register
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 text material text_out_%s configure register
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 text material text_out_%s configure register
Sourcepub fn endian(&self) -> &Reg<ENDIAN_SPEC>
pub fn endian(&self) -> &Reg<ENDIAN_SPEC>
0x44 - AES Endian configure register
Sourcepub fn trigger(&self) -> &Reg<TRIGGER_SPEC>
pub fn trigger(&self) -> &Reg<TRIGGER_SPEC>
0x48 - AES trigger register
Sourcepub fn state(&self) -> &Reg<STATE_SPEC>
pub fn state(&self) -> &Reg<STATE_SPEC>
0x4c - AES state register
Sourcepub fn iv_mem(&self, n: usize) -> &Reg<IV_MEM_SPEC>
pub fn iv_mem(&self, n: usize) -> &Reg<IV_MEM_SPEC>
0x50..0x60 - The memory that stores initialization vector
Sourcepub fn iv_mem_iter(&self) -> impl Iterator<Item = &Reg<IV_MEM_SPEC>>
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
Sourcepub fn h_mem(&self, n: usize) -> &Reg<H_MEM_SPEC>
pub fn h_mem(&self, n: usize) -> &Reg<H_MEM_SPEC>
0x60..0x70 - The memory that stores GCM hash subkey
Sourcepub fn h_mem_iter(&self) -> impl Iterator<Item = &Reg<H_MEM_SPEC>>
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
Sourcepub fn j0_mem(&self, n: usize) -> &Reg<J0_MEM_SPEC>
pub fn j0_mem(&self, n: usize) -> &Reg<J0_MEM_SPEC>
0x70..0x80 - The memory that stores J0
Sourcepub fn j0_mem_iter(&self) -> impl Iterator<Item = &Reg<J0_MEM_SPEC>>
pub fn j0_mem_iter(&self) -> impl Iterator<Item = &Reg<J0_MEM_SPEC>>
Iterator for array of: 0x70..0x80 - The memory that stores J0
Sourcepub fn t0_mem(&self, n: usize) -> &Reg<T0_MEM_SPEC>
pub fn t0_mem(&self, n: usize) -> &Reg<T0_MEM_SPEC>
0x80..0x90 - The memory that stores T0
Sourcepub fn t0_mem_iter(&self) -> impl Iterator<Item = &Reg<T0_MEM_SPEC>>
pub fn t0_mem_iter(&self) -> impl Iterator<Item = &Reg<T0_MEM_SPEC>>
Iterator for array of: 0x80..0x90 - The memory that stores T0
Sourcepub fn dma_enable(&self) -> &Reg<DMA_ENABLE_SPEC>
pub fn dma_enable(&self) -> &Reg<DMA_ENABLE_SPEC>
0x90 - DMA-AES working mode register
Sourcepub fn block_mode(&self) -> &Reg<BLOCK_MODE_SPEC>
pub fn block_mode(&self) -> &Reg<BLOCK_MODE_SPEC>
0x94 - AES cipher block mode register
Sourcepub fn block_num(&self) -> &Reg<BLOCK_NUM_SPEC>
pub fn block_num(&self) -> &Reg<BLOCK_NUM_SPEC>
0x98 - AES block number register
Sourcepub fn inc_sel(&self) -> &Reg<INC_SEL_SPEC>
pub fn inc_sel(&self) -> &Reg<INC_SEL_SPEC>
0x9c - Standard incrementing function configure register
Sourcepub fn aad_block_num(&self) -> &Reg<AAD_BLOCK_NUM_SPEC>
pub fn aad_block_num(&self) -> &Reg<AAD_BLOCK_NUM_SPEC>
0xa0 - Additional Authential Data block number register
Sourcepub fn remainder_bit_num(&self) -> &Reg<REMAINDER_BIT_NUM_SPEC>
pub fn remainder_bit_num(&self) -> &Reg<REMAINDER_BIT_NUM_SPEC>
0xa4 - AES remainder bit number register
Sourcepub fn continue_(&self) -> &Reg<CONTINUE_SPEC>
pub fn continue_(&self) -> &Reg<CONTINUE_SPEC>
0xa8 - AES continue register
Sourcepub fn int_clr(&self) -> &Reg<INT_CLR_SPEC>
pub fn int_clr(&self) -> &Reg<INT_CLR_SPEC>
0xac - AES Interrupt clear register
Sourcepub fn int_ena(&self) -> &Reg<INT_ENA_SPEC>
pub fn int_ena(&self) -> &Reg<INT_ENA_SPEC>
0xb0 - AES Interrupt enable register
Sourcepub fn dma_exit(&self) -> &Reg<DMA_EXIT_SPEC>
pub fn dma_exit(&self) -> &Reg<DMA_EXIT_SPEC>
0xb8 - AES-DMA exit config