Skip to main content

R

Type Alias R 

Source
pub type R = R<u16, XOSCCTRL>;
Expand description

Reader of register XOSCCTRL

Aliased Type§

pub struct R { /* private fields */ }

Implementations§

Source§

impl R

Source

pub fn enable(&self) -> ENABLE_R

Bit 1 - Oscillator Enable

Source

pub fn xtalen(&self) -> XTALEN_R

Bit 2 - Crystal Oscillator Enable

Source

pub fn cfden(&self) -> CFDEN_R

Bit 3 - Clock Failure Detector Enable

Source

pub fn swben(&self) -> SWBEN_R

Bit 4 - Xosc Clock Switch Enable

Source

pub fn runstdby(&self) -> RUNSTDBY_R

Bit 6 - Run in Standby

Source

pub fn ondemand(&self) -> ONDEMAND_R

Bit 7 - On Demand Control

Source

pub fn gain(&self) -> GAIN_R

Bits 8:10 - Oscillator Gain

Source

pub fn ampgc(&self) -> AMPGC_R

Bit 11 - Automatic Amplitude Gain Control

Source

pub fn startup(&self) -> STARTUP_R

Bits 12:15 - Start-Up Time