Type Alias d1_pac::rtc::losc_ctrl::EXT_LOSC_GSM_R

source ·
pub type EXT_LOSC_GSM_R = FieldReader<u8, EXT_LOSC_GSM_A>;
Expand description

Field ext_losc_gsm reader - External 32.768 kHz Crystal GSM

When GSM is changed, the 32K oscillation circuit will arise transient instability. If the autoswitch function (bit 15) is enabled, 32K changes to RC16M with certain probability. The GSM can influence the time of 32K starting oscillation, the more the GSM, the shorter the time of starting oscillation. So modifying GSM is not recommended.

If you need to modify the GSM, firstly disable the auto switch function (bit 15), with a delay of 50 us, then change the GSM, the 32K clock source is changed to external clock.

Aliased Type§

struct EXT_LOSC_GSM_R { /* private fields */ }

Implementations§

source§

impl EXT_LOSC_GSM_R

source

pub fn variant(&self) -> Option<EXT_LOSC_GSM_A>

Get enumerated values variant

source

pub fn is_low(&self) -> bool

Checks if the value of the field is LOW

source

pub fn is_high(&self) -> bool

Checks if the value of the field is HIGH