Struct esp32s3_hal::peripherals::SHA
source · pub struct SHA { /* private fields */ }
Implementations§
source§impl SHA
impl SHA
sourcepub unsafe fn steal() -> SHA
pub unsafe fn steal() -> SHA
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>§
pub fn mode(&self) -> &Reg<MODE_SPEC>
pub fn mode(&self) -> &Reg<MODE_SPEC>
0x00 - Initial configuration register.
pub fn t_string(&self) -> &Reg<T_STRING_SPEC>
pub fn t_string(&self) -> &Reg<T_STRING_SPEC>
0x04 - SHA 512/t configuration register 0.
pub fn t_length(&self) -> &Reg<T_LENGTH_SPEC>
pub fn t_length(&self) -> &Reg<T_LENGTH_SPEC>
0x08 - SHA 512/t configuration register 1.
pub fn dma_block_num(&self) -> &Reg<DMA_BLOCK_NUM_SPEC>
pub fn dma_block_num(&self) -> &Reg<DMA_BLOCK_NUM_SPEC>
0x0c - DMA configuration register 0.
pub fn start(&self) -> &Reg<START_SPEC>
pub fn start(&self) -> &Reg<START_SPEC>
0x10 - Typical SHA configuration register 0.
pub fn continue_(&self) -> &Reg<CONTINUE_SPEC>
pub fn continue_(&self) -> &Reg<CONTINUE_SPEC>
0x14 - Typical SHA configuration register 1.
pub fn busy(&self) -> &Reg<BUSY_SPEC>
pub fn busy(&self) -> &Reg<BUSY_SPEC>
0x18 - Busy register.
pub fn dma_start(&self) -> &Reg<DMA_START_SPEC>
pub fn dma_start(&self) -> &Reg<DMA_START_SPEC>
0x1c - DMA configuration register 1.
pub fn dma_continue(&self) -> &Reg<DMA_CONTINUE_SPEC>
pub fn dma_continue(&self) -> &Reg<DMA_CONTINUE_SPEC>
0x20 - DMA configuration register 2.
pub fn clear_irq(&self) -> &Reg<CLEAR_IRQ_SPEC>
pub fn clear_irq(&self) -> &Reg<CLEAR_IRQ_SPEC>
0x24 - Interrupt clear register.
pub fn irq_ena(&self) -> &Reg<IRQ_ENA_SPEC>
pub fn irq_ena(&self) -> &Reg<IRQ_ENA_SPEC>
0x28 - Interrupt enable register.
pub fn date(&self) -> &Reg<DATE_SPEC>
pub fn date(&self) -> &Reg<DATE_SPEC>
0x2c - Date register.
pub fn h_mem(&self, n: usize) -> &Reg<H_MEM_SPEC>
pub fn h_mem(&self, n: usize) -> &Reg<H_MEM_SPEC>
0x40..0x80 - Sha H memory which contains intermediate hash or finial hash.
pub 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: 0x40..0x80 - Sha H memory which contains intermediate hash or finial hash.
pub fn m_mem_iter(&self) -> impl Iterator<Item = &Reg<M_MEM_SPEC>>
pub fn m_mem_iter(&self) -> impl Iterator<Item = &Reg<M_MEM_SPEC>>
Iterator for array of: 0x80..0xc0 - Sha M memory which contains message.