Type Alias d1_pac::rtc::losc_ctrl::EXT_LOSC_GSM_W

source ·
pub type EXT_LOSC_GSM_W<'a, const O: u8> = FieldWriter<'a, u32, LOSC_CTRL_SPEC, u8, EXT_LOSC_GSM_A, 2, O>;
Expand description

Field ext_losc_gsm writer - 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_W<'a, const O: u8> { /* private fields */ }

Implementations§

source§

impl<'a, const O: u8> EXT_LOSC_GSM_W<'a, O>

source

pub fn low(self) -> &'a mut W

Low

source

pub fn high(self) -> &'a mut W

High