Type Alias atsame54n::aes::ctrlb::W

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

Register CTRLB writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn start(&mut self) -> START_W<'_, CTRLB_SPEC, 0>

Bit 0 - Start Encryption/Decryption

source

pub fn newmsg(&mut self) -> NEWMSG_W<'_, CTRLB_SPEC, 1>

Bit 1 - New message

source

pub fn eom(&mut self) -> EOM_W<'_, CTRLB_SPEC, 2>

Bit 2 - End of message

source

pub fn gfmul(&mut self) -> GFMUL_W<'_, CTRLB_SPEC, 3>

Bit 3 - GF Multiplication

source

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

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual