Type Alias atsamd51j::osc32kctrl::xosc32k::W

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

Register XOSC32K writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn enable(&mut self) -> ENABLE_W<'_, XOSC32K_SPEC, 1>

Bit 1 - Oscillator Enable

source

pub fn xtalen(&mut self) -> XTALEN_W<'_, XOSC32K_SPEC, 2>

Bit 2 - Crystal Oscillator Enable

source

pub fn en32k(&mut self) -> EN32K_W<'_, XOSC32K_SPEC, 3>

Bit 3 - 32kHz Output Enable

source

pub fn en1k(&mut self) -> EN1K_W<'_, XOSC32K_SPEC, 4>

Bit 4 - 1kHz Output Enable

source

pub fn runstdby(&mut self) -> RUNSTDBY_W<'_, XOSC32K_SPEC, 6>

Bit 6 - Run in Standby

source

pub fn ondemand(&mut self) -> ONDEMAND_W<'_, XOSC32K_SPEC, 7>

Bit 7 - On Demand Control

source

pub fn startup(&mut self) -> STARTUP_W<'_, XOSC32K_SPEC, 8>

Bits 8:10 - Oscillator Start-Up Time

source

pub fn wrtlock(&mut self) -> WRTLOCK_W<'_, XOSC32K_SPEC, 12>

Bit 12 - Write Lock

source

pub fn cgm(&mut self) -> CGM_W<'_, XOSC32K_SPEC, 13>

Bits 13:14 - Control Gain Mode

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