Struct stm32mp1::stm32mp157::hash2::hash_csr0::HASH_CSR0_SPEC
source · [−]pub struct HASH_CSR0_SPEC;
Expand description
These registers contain the complete internal register states of the hash processor. They are useful when a context swap has to be done because a high-priority task needs to use the hash processor while it is already used by another task. When such an event occurs, the HASH_CSRx registers have to be read and the read values have to be saved in the system memory space. Then the hash processor can be used by the preemptive task, and when the hash computation is complete, the saved context can be read from memory and written back into the HASH_CSRx registers.
This register you can read
, write_with_zero
, reset
, write
, modify
. See API.
For information about available fields see hash_csr0 module
Trait Implementations
sourceimpl Readable for HASH_CSR0_SPEC
impl Readable for HASH_CSR0_SPEC
read()
method returns hash_csr0::R reader structure
sourceimpl RegisterSpec for HASH_CSR0_SPEC
impl RegisterSpec for HASH_CSR0_SPEC
sourceimpl Resettable for HASH_CSR0_SPEC
impl Resettable for HASH_CSR0_SPEC
reset()
method sets HASH_CSR0 to value 0x02
sourcefn reset_value() -> Self::Ux
fn reset_value() -> Self::Ux
Reset value of the register.
sourceimpl Writable for HASH_CSR0_SPEC
impl Writable for HASH_CSR0_SPEC
write(|w| ..)
method takes hash_csr0::W writer structure
Auto Trait Implementations
impl RefUnwindSafe for HASH_CSR0_SPEC
impl Send for HASH_CSR0_SPEC
impl Sync for HASH_CSR0_SPEC
impl Unpin for HASH_CSR0_SPEC
impl UnwindSafe for HASH_CSR0_SPEC
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more