Type Alias CHMOD1_W

Source
pub type CHMOD1_W<'a, REG> = FieldWriter<'a, REG, 2, CHMOD1, Safe>;
Expand description

Field CHMOD1 writer - 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.

Aliased Type§

struct CHMOD1_W<'a, REG> { /* private fields */ }

Implementations§

Source§

impl<'a, REG> CHMOD1_W<'a, REG>
where REG: Writable + RegisterSpec, REG::Ux: From<u8>,

Source

pub fn ecb(self) -> &'a mut W<REG>

Electronic codebook (ECB) / Counter with CBC-MAC (CCM) if CHMOD2 is 1

Source

pub fn cbc(self) -> &'a mut W<REG>

Cipher-block chaining (CBC)

Source

pub fn ctr(self) -> &'a mut W<REG>

Counter mode (CTR)

Source

pub fn gcm(self) -> &'a mut W<REG>

Galois counter mode (GCM) and Galois message authentication code (GMAC)