pub struct R(/* private fields */);
Expand description
Register losc_ctrl
reader
Implementations§
source§impl R
impl R
sourcepub fn losc_src_sel(&self) -> LOSC_SRC_SEL_R
pub fn losc_src_sel(&self) -> LOSC_SRC_SEL_R
Bit 0 - LOSC Clock Source Select
sourcepub fn rtc_src_sel(&self) -> RTC_SRC_SEL_R
pub fn rtc_src_sel(&self) -> RTC_SRC_SEL_R
Bit 1 - RTC_TIMER Clock Source Select
sourcepub fn ext_losc_gsm(&self) -> EXT_LOSC_GSM_R
pub fn ext_losc_gsm(&self) -> EXT_LOSC_GSM_R
Bits 2:3 - 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.
sourcepub fn ext_losc_en(&self) -> EXT_LOSC_EN_R
pub fn ext_losc_en(&self) -> EXT_LOSC_EN_R
Bit 4 - External 32.768 kHz Crystal Enable
sourcepub fn rtc_day_acce(&self) -> RTC_DAY_ACCE_R
pub fn rtc_day_acce(&self) -> RTC_DAY_ACCE_R
Bit 7 - RTC DAY access
After writing the RTC DAY register, this bit is set and it will be cleared until the real writing operation is finished. After writing the RTC DAY register, the DAY register will be refreshed for at most one second.
Note: Make sure that the bit is 0 for time configuration.
sourcepub fn rtc_hhmmss_acce(&self) -> RTC_HHMMSS_ACCE_R
pub fn rtc_hhmmss_acce(&self) -> RTC_HHMMSS_ACCE_R
Bit 8 - RTC Hour Minute Second access
After writing the RTC HH-MM-SS Register, this bit is set and it will be cleared until the real writing operation is finished. After writing the RTC HH-MM-SS Register, the RTC HH-MM-SS Register will be refreshed for at most one second.
Note: Make sure that the bit is 0 for time configuration.
sourcepub fn losc_auto_swt_32k_sel_en(&self) -> LOSC_AUTO_SWT_32K_SEL_EN_R
pub fn losc_auto_swt_32k_sel_en(&self) -> LOSC_AUTO_SWT_32K_SEL_EN_R
Bit 14 - LOSC auto switch 32K clk source select enable
sourcepub fn losc_auto_swt_function(&self) -> LOSC_AUTO_SWT_FUNCTION_R
pub fn losc_auto_swt_function(&self) -> LOSC_AUTO_SWT_FUNCTION_R
Bit 15 - LOSC auto switch function disable