Type Alias esp32c3::aes::mode::W

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

Register MODE writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn mode(&mut self) -> MODE_W<'_, MODE_SPEC>

Bits 0:2 - This bits decides which one operation mode will be used. 3’d0: AES-EN-128, 3’d1: AES-EN-192, 3’d2: AES-EN-256, 3’d4: AES-DE-128, 3’d5: AES-DE-192, 3’d6: AES-DE-256.

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