pub struct CcDin { /* private fields */ }
Expand description
CRYPTOCELL Data IN interface
Implementations§
Source§impl CcDin
impl CcDin
pub const unsafe fn from_ptr(ptr: *mut ()) -> Self
pub const fn as_ptr(&self) -> *mut ()
Sourcepub const fn din_buffer(self) -> Reg<u32, W>
pub const fn din_buffer(self) -> Reg<u32, W>
Used by CPU to write data directly to the DIN buffer, which is then sent to the cryptographic engines for processing.
Sourcepub const fn din_dma_mem_busy(self) -> Reg<DinDmaMemBusy, R>
pub const fn din_dma_mem_busy(self) -> Reg<DinDmaMemBusy, R>
Status register for DIN DMA engine activity when accessing memory.
Sourcepub const fn src_mem_addr(self) -> Reg<u32, W>
pub const fn src_mem_addr(self) -> Reg<u32, W>
Data source address in memory.
Sourcepub const fn src_mem_size(self) -> Reg<SrcMemSize, W>
pub const fn src_mem_size(self) -> Reg<SrcMemSize, W>
The number of bytes to be read from memory. Writing to this register triggers the DMA operation.
Sourcepub const fn src_sram_addr(self) -> Reg<u32, RW>
pub const fn src_sram_addr(self) -> Reg<u32, RW>
Data source address in RNG SRAM.
Sourcepub const fn src_sram_size(self) -> Reg<u32, W>
pub const fn src_sram_size(self) -> Reg<u32, W>
The number of bytes to be read from RNG SRAM. Writing to this register triggers the DMA operation.
Sourcepub const fn din_dma_sram_busy(self) -> Reg<DinDmaSramBusy, R>
pub const fn din_dma_sram_busy(self) -> Reg<DinDmaSramBusy, R>
Status register for DIN DMA engine activity when accessing RNG SRAM.
Sourcepub const fn din_dma_sram_endianness(self) -> Reg<DinDmaSramEndianness, RW>
pub const fn din_dma_sram_endianness(self) -> Reg<DinDmaSramEndianness, RW>
Configure the endianness of DIN DMA transactions towards RNG SRAM.
Sourcepub const fn din_sw_reset(self) -> Reg<DinSwReset, W>
pub const fn din_sw_reset(self) -> Reg<DinSwReset, W>
Reset the DIN DMA engine.
Sourcepub const fn din_cpu_data(self) -> Reg<DinCpuData, W>
pub const fn din_cpu_data(self) -> Reg<DinCpuData, W>
Specifies the number of bytes the CPU will write to the DIN_BUFFER, ensuring the cryptographic engine processes the correct amount of data.
Sourcepub const fn din_write_align(self) -> Reg<DinWriteAlign, W>
pub const fn din_write_align(self) -> Reg<DinWriteAlign, W>
Indicates that the next CPU write to the DIN_BUFFER is the last in the sequence. This is needed only when the data size is NOT modulo 4 (e.g. HASH padding).
Sourcepub const fn din_fifo_empty(self) -> Reg<DinFifoEmpty, R>
pub const fn din_fifo_empty(self) -> Reg<DinFifoEmpty, R>
Register indicating if DIN FIFO is empty and if more data can be accepted.
Sourcepub const fn din_fifo_reset(self) -> Reg<DinFifoReset, W>
pub const fn din_fifo_reset(self) -> Reg<DinFifoReset, W>
Reset the DIN FIFO, effectively clearing the FIFO for new data.
Trait Implementations§
impl Copy for CcDin
impl Eq for CcDin
impl Send for CcDin
impl StructuralPartialEq for CcDin
impl Sync for CcDin
Auto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)