Type Alias atsame54n::osc32kctrl::osculp32k::W

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

Register OSCULP32K writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn en32k(&mut self) -> EN32K_W<'_, OSCULP32K_SPEC, 1>

Bit 1 - Enable Out 32k

source

pub fn en1k(&mut self) -> EN1K_W<'_, OSCULP32K_SPEC, 2>

Bit 2 - Enable Out 1k

source

pub fn calib(&mut self) -> CALIB_W<'_, OSCULP32K_SPEC, 8>

Bits 8:13 - Oscillator Calibration

source

pub fn wrtlock(&mut self) -> WRTLOCK_W<'_, OSCULP32K_SPEC, 15>

Bit 15 - 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