Type Alias atsame54n::aes::ctrla::W

source ·
pub type W = W<CTRLA_SPEC>;
Expand description

Register CTRLA writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn swrst(&mut self) -> SWRST_W<'_, CTRLA_SPEC, 0>

Bit 0 - Software Reset

source

pub fn enable(&mut self) -> ENABLE_W<'_, CTRLA_SPEC, 1>

Bit 1 - Enable

source

pub fn aesmode(&mut self) -> AESMODE_W<'_, CTRLA_SPEC, 2>

Bits 2:4 - AES Modes of operation

source

pub fn cfbs(&mut self) -> CFBS_W<'_, CTRLA_SPEC, 5>

Bits 5:7 - Cipher Feedback Block Size

source

pub fn keysize(&mut self) -> KEYSIZE_W<'_, CTRLA_SPEC, 8>

Bits 8:9 - Encryption Key Size

source

pub fn cipher(&mut self) -> CIPHER_W<'_, CTRLA_SPEC, 10>

Bit 10 - Cipher Mode

source

pub fn startmode(&mut self) -> STARTMODE_W<'_, CTRLA_SPEC, 11>

Bit 11 - Start Mode Select

source

pub fn lod(&mut self) -> LOD_W<'_, CTRLA_SPEC, 12>

Bit 12 - Last Output Data Mode

source

pub fn keygen(&mut self) -> KEYGEN_W<'_, CTRLA_SPEC, 13>

Bit 13 - Last Key Generation

source

pub fn xorkey(&mut self) -> XORKEY_W<'_, CTRLA_SPEC, 14>

Bit 14 - XOR Key Operation

source

pub fn ctype(&mut self) -> CTYPE_W<'_, CTRLA_SPEC, 16>

Bits 16:19 - Counter Measure Type

source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual