Type Alias atsame51g::pcc::wpmr::W

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

Register WPMR writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn wpen(&mut self) -> WPEN_W<'_, WPMR_SPEC, 0>

Bit 0 - Write Protection Enable

source

pub fn wpkey(&mut self) -> WPKEY_W<'_, WPMR_SPEC, 8>

Bits 8:31 - Write Protection 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