Type Alias atsame54n::oscctrl::xoscctrl::W

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

Register XOSCCTRL[%s] writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

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

Bit 1 - Oscillator Enable

source

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

Bit 2 - Crystal Oscillator Enable

source

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

Bit 6 - Run in Standby

source

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

Bit 7 - On Demand Control

source

pub fn lowbufgain(&mut self) -> LOWBUFGAIN_W<'_, XOSCCTRL_SPEC, 8>

Bit 8 - Low Buffer Gain Enable

source

pub fn iptat(&mut self) -> IPTAT_W<'_, XOSCCTRL_SPEC, 9>

Bits 9:10 - Oscillator Current Reference

source

pub fn imult(&mut self) -> IMULT_W<'_, XOSCCTRL_SPEC, 11>

Bits 11:14 - Oscillator Current Multiplier

source

pub fn enalc(&mut self) -> ENALC_W<'_, XOSCCTRL_SPEC, 15>

Bit 15 - Automatic Loop Control Enable

source

pub fn cfden(&mut self) -> CFDEN_W<'_, XOSCCTRL_SPEC, 16>

Bit 16 - Clock Failure Detector Enable

source

pub fn swben(&mut self) -> SWBEN_W<'_, XOSCCTRL_SPEC, 17>

Bit 17 - Xosc Clock Switch Enable

source

pub fn startup(&mut self) -> STARTUP_W<'_, XOSCCTRL_SPEC, 20>

Bits 20:23 - Start-Up Time

source

pub fn cfdpresc(&mut self) -> CFDPRESC_W<'_, XOSCCTRL_SPEC, 24>

Bits 24:27 - Clock Failure Detector Prescaler

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