Type Alias atsame54n::pac::wrctrl::W

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

Register WRCTRL writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn perid(&mut self) -> PERID_W<'_, WRCTRL_SPEC, 0>

Bits 0:15 - Peripheral identifier

source

pub fn key(&mut self) -> KEY_W<'_, WRCTRL_SPEC, 16>

Bits 16:23 - Peripheral access control key

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