Type Alias atsame54n::nvmctrl::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 cmd(&mut self) -> CMD_W<'_, CTRLB_SPEC, 0>

Bits 0:6 - Command

source

pub fn cmdex(&mut self) -> CMDEX_W<'_, CTRLB_SPEC, 8>

Bits 8:15 - Command Execution

source

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

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual