Struct stm32mp1::stm32mp157::cryp1::cryp_csgcmccm1r::CRYP_CSGCMCCM1R_SPEC
source · [−]pub struct CRYP_CSGCMCCM1R_SPEC;
Expand description
These registers contain the complete internal register states of the CRYP processor when the GCM/GMAC or CCM algorithm is selected. They are useful when a context swap has to be performed because a high-priority task needs the cryptographic processor while it is already in use by another task. When such an event occurs, the CRYP_CSGCMCCM0..7R and CRYP_CSGCM0..7R (in GCM/GMAC mode) or CRYP_CSGCMCCM0..7R (in CCM mode) registers have to be read and the values retrieved have to be saved in the system memory space. The cryptographic processor can then be used by the preemptive task. Then when the cryptographic computation is complete, the saved context can be read from memory and written back into the corresponding context swap registers.
This register you can read
, write_with_zero
, reset
, write
, modify
. See API.
For information about available fields see cryp_csgcmccm1r module
Trait Implementations
sourceimpl Readable for CRYP_CSGCMCCM1R_SPEC
impl Readable for CRYP_CSGCMCCM1R_SPEC
read()
method returns cryp_csgcmccm1r::R reader structure
sourceimpl RegisterSpec for CRYP_CSGCMCCM1R_SPEC
impl RegisterSpec for CRYP_CSGCMCCM1R_SPEC
sourceimpl Resettable for CRYP_CSGCMCCM1R_SPEC
impl Resettable for CRYP_CSGCMCCM1R_SPEC
reset()
method sets CRYP_CSGCMCCM1R to value 0
sourcefn reset_value() -> Self::Ux
fn reset_value() -> Self::Ux
Reset value of the register.
sourceimpl Writable for CRYP_CSGCMCCM1R_SPEC
impl Writable for CRYP_CSGCMCCM1R_SPEC
write(|w| ..)
method takes cryp_csgcmccm1r::W writer structure
Auto Trait Implementations
impl RefUnwindSafe for CRYP_CSGCMCCM1R_SPEC
impl Send for CRYP_CSGCMCCM1R_SPEC
impl Sync for CRYP_CSGCMCCM1R_SPEC
impl Unpin for CRYP_CSGCMCCM1R_SPEC
impl UnwindSafe for CRYP_CSGCMCCM1R_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