pub struct W(_);
Expand description
Register CR
writer
Implementations
sourceimpl W
impl W
sourcepub fn en(&mut self) -> EN_W<'_, 0>
pub fn en(&mut self) -> EN_W<'_, 0>
Bit 0 - AES enable This bit enables/disables the AES peripheral: At any moment, clearing then setting the bit re-initializes the AES peripheral. This bit is automatically cleared by hardware upon the completion of the key preparation (Mode 2) and upon the completion of GCM/GMAC/CCM initial phase.
sourcepub fn datatype(&mut self) -> DATATYPE_W<'_, 1>
pub fn datatype(&mut self) -> DATATYPE_W<'_, 1>
Bits 1:2 - Data type selection This bitfield defines the format of data written in the AES_DINR register or read from the AES_DOUTR register, through selecting the mode of data swapping: For more details, refer to . Attempts to write the bitfield are ignored when the EN bit of the AES_CR register is set before the write access and it is not cleared by that write access.
sourcepub fn mode(&mut self) -> MODE_W<'_, 3>
pub fn mode(&mut self) -> MODE_W<'_, 3>
Bits 3:4 - AES operating mode This bitfield selects the AES operating mode: Attempts to write the bitfield are ignored when the EN bit of the AES_CR register is set before the write access and it is not cleared by that write access. Any attempt to selecting Mode 4 while either ECB or CBC chaining mode is not selected, defaults to effective selection of Mode 3. It is not possible to select a Mode 3 following a Mode 4.
sourcepub fn chmod1(&mut self) -> CHMOD1_W<'_, 5>
pub fn chmod1(&mut self) -> CHMOD1_W<'_, 5>
Bits 5:6 - Chaining mode selection, bit [2] Refer to the bits [5:6] of the register for the description of the CHMOD[2:0] bitfield CHMOD[1:0]: Chaining mode selection, bits [1:0] This bitfield, together with the bit CHMOD[2] forming CHMOD[2:0], selects the AES chaining mode: others: Reserved Attempts to write the bitfield are ignored when the EN bit of the AES_CR register is set before the write access and it is not cleared by that write access.
sourcepub fn ccfc(&mut self) -> CCFC_W<'_, 7>
pub fn ccfc(&mut self) -> CCFC_W<'_, 7>
Bit 7 - Computation complete flag clear Upon written to 1, this bit clears the computation complete flag (CCF) in the AES_SR register: Reading the flag always returns zero.
sourcepub fn errc(&mut self) -> ERRC_W<'_, 8>
pub fn errc(&mut self) -> ERRC_W<'_, 8>
Bit 8 - Error flag clear Upon written to 1, this bit clears the RDERR and WRERR error flags in the AES_SR register: Reading the flag always returns zero.
sourcepub fn ccfie(&mut self) -> CCFIE_W<'_, 9>
pub fn ccfie(&mut self) -> CCFIE_W<'_, 9>
Bit 9 - CCF interrupt enable This bit enables or disables (masks) the AES interrupt generation when CCF (computation complete flag) is set:
sourcepub fn errie(&mut self) -> ERRIE_W<'_, 10>
pub fn errie(&mut self) -> ERRIE_W<'_, 10>
Bit 10 - Error interrupt enable This bit enables or disables (masks) the AES interrupt generation when RDERR and/or WRERR is set:
sourcepub fn dmainen(&mut self) -> DMAINEN_W<'_, 11>
pub fn dmainen(&mut self) -> DMAINEN_W<'_, 11>
Bit 11 - DMA input enable This bit enables/disables data transferring with DMA, in the input phase: When the bit is set, DMA requests are automatically generated by AES during the input data phase. This feature is only effective when Mode 1 or Mode 3 is selected through the MODE[1:0] bitfield. It is not effective for Mode 2 (key derivation). Usage of DMA with Mode 4 (single decryption) is not recommended.
sourcepub fn dmaouten(&mut self) -> DMAOUTEN_W<'_, 12>
pub fn dmaouten(&mut self) -> DMAOUTEN_W<'_, 12>
Bit 12 - DMA output enable This bit enables/disables data transferring with DMA, in the output phase: When the bit is set, DMA requests are automatically generated by AES during the output data phase. This feature is only effective when Mode 1 or Mode 3 is selected through the MODE[1:0] bitfield. It is not effective for Mode 2 (key derivation). Usage of DMA with Mode 4 (single decryption) is not recommended.
sourcepub fn gcmph(&mut self) -> GCMPH_W<'_, 13>
pub fn gcmph(&mut self) -> GCMPH_W<'_, 13>
Bits 13:14 - GCM or CCM phase selection This bitfield selects the phase of GCM, GMAC or CCM algorithm: The bitfield has no effect if other than GCM, GMAC or CCM algorithms are selected (through the ALGOMODE bitfield).
sourcepub fn chmod2(&mut self) -> CHMOD2_W<'_, 16>
pub fn chmod2(&mut self) -> CHMOD2_W<'_, 16>
Bit 16 - Chaining mode selection, bit [2] Refer to the bits [5:6] of the register for the description of the CHMOD[2:0] bitfield CHMOD[1:0]: Chaining mode selection, bits [1:0] This bitfield, together with the bit CHMOD[2] forming CHMOD[2:0], selects the AES chaining mode: others: Reserved Attempts to write the bitfield are ignored when the EN bit of the AES_CR register is set before the write access and it is not cleared by that write access.
sourcepub fn keysize(&mut self) -> KEYSIZE_W<'_, 18>
pub fn keysize(&mut self) -> KEYSIZE_W<'_, 18>
Bit 18 - Key size selection This bitfield defines the length of the key used in the AES cryptographic core, in bits: Attempts to write the bit are ignored when the EN bit of the AES_CR register is set before the write access and it is not cleared by that write access.
Methods from Deref<Target = W<CR_SPEC>>
Trait Implementations
Auto Trait Implementations
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