Type Alias atsamd51p::gclk::pchctrl::W

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

Register PCHCTRL[%s] writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn gen(&mut self) -> GEN_W<'_, PCHCTRL_SPEC, 0>

Bits 0:3 - Generic Clock Generator

source

pub fn chen(&mut self) -> CHEN_W<'_, PCHCTRL_SPEC, 6>

Bit 6 - Channel Enable

source

pub fn wrtlock(&mut self) -> WRTLOCK_W<'_, PCHCTRL_SPEC, 7>

Bit 7 - Write Lock

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