pub struct R(_);
Expand description
Register CR
reader
Implementations
sourceimpl R
impl R
sourcepub fn wucksel(&self) -> WUCKSEL_R
pub fn wucksel(&self) -> WUCKSEL_R
Bits 0:2 - ck_wut wakeup clock selection 10x: ck_spre (usually 1Â Hz) clock is selected 11x: ck_spre (usually 1Â Hz) clock is selected and 216Â is added to the WUT counter value
sourcepub fn tsedge(&self) -> TSEDGE_R
pub fn tsedge(&self) -> TSEDGE_R
Bit 3 - Timestamp event active edge TSE must be reset when TSEDGE is changed to avoid unwanted TSF setting.
sourcepub fn refckon(&self) -> REFCKON_R
pub fn refckon(&self) -> REFCKON_R
Bit 4 - RTC_REFIN reference clock detection enable (50 or 60Â Hz) Note: PREDIV_S must be 0x00FF.
sourcepub fn bypshad(&self) -> BYPSHAD_R
pub fn bypshad(&self) -> BYPSHAD_R
Bit 5 - Bypass the shadow registers Note: If the frequency of the APB1 clock is less than seven times the frequency of RTCCLK, BYPSHAD must be set to 1.
sourcepub fn wute(&self) -> WUTE_R
pub fn wute(&self) -> WUTE_R
Bit 10 - Wakeup timer enable Note: When the wakeup timer is disabled, wait for WUTWF=1 before enabling it again.
sourcepub fn bkp(&self) -> BKP_R
pub fn bkp(&self) -> BKP_R
Bit 18 - Backup This bit can be written by the user to memorize whether the daylight saving time change has been performed or not.
sourcepub fn cosel(&self) -> COSEL_R
pub fn cosel(&self) -> COSEL_R
Bit 19 - Calibration output selection When COE = 1, this bit selects which signal is output on CALIB. These frequencies are valid for RTCCLK at 32.768Â kHz and prescalers at their default values (PREDIV_A = 127 and PREDIV_S = 255). Refer to .
sourcepub fn pol(&self) -> POL_R
pub fn pol(&self) -> POL_R
Bit 20 - Output polarity This bit is used to configure the polarity of TAMPALRM output.
sourcepub fn osel(&self) -> OSEL_R
pub fn osel(&self) -> OSEL_R
Bits 21:22 - Output selection These bits are used to select the flag to be routed to TAMPALRM output.
sourcepub fn coe(&self) -> COE_R
pub fn coe(&self) -> COE_R
Bit 23 - Calibration output enable This bit enables the CALIB output
sourcepub fn tampts(&self) -> TAMPTS_R
pub fn tampts(&self) -> TAMPTS_R
Bit 25 - Activate timestamp on tamper detection event TAMPTS is valid even if TSE = 0 in the RTC_CR register. Timestamp flag is set after the tamper flags, therefore if TAMPTS and TSIE are set, it is recommended to disable the tamper interrupts in order to avoid servicing 2 interrupts.
sourcepub fn tampalrm_pu(&self) -> TAMPALRM_PU_R
pub fn tampalrm_pu(&self) -> TAMPALRM_PU_R
Bit 29 - TAMPALRM pull-up enable
sourcepub fn tampalrm_type(&self) -> TAMPALRM_TYPE_R
pub fn tampalrm_type(&self) -> TAMPALRM_TYPE_R
Bit 30 - TAMPALRM output type
sourcepub fn out2en(&self) -> OUT2EN_R
pub fn out2en(&self) -> OUT2EN_R
Bit 31 - RTC_OUT2 output enable Setting this bit allows to remap the RTC outputs on RTC_OUT2 as follows: OUT2EN = 0: RTC output 2 disable If OSEL â 00 or TAMPOE = 1: TAMPALRM is output on RTC_OUT1 If OSEL = 00 and TAMPOE = 0 and COE = 1: CALIB is output on RTC_OUT1 OUT2EN = 1: RTC output 2 enable If (OSEL â 00 or TAMPOE = 1) and COE = 0: TAMPALRM is output on RTC_OUT2 If OSEL = 00 and TAMPOE = 0 and COE = 1: CALIB is output on RTC_OUT2 If (OSELâ 00 or TAMPOE = 1) and COE = 1: CALIB is output on RTC_OUT2 and TAMPALRM is output on RTC_OUT1.
Methods from Deref<Target = R<CR_SPEC>>
Trait Implementations
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more