Struct stm32_metapac::rtc::regs::Calr
#[repr(transparent)]pub struct Calr(pub u32);
Expand description
Calibration register
Tuple Fields§
§0: u32
Implementations§
§impl Calr
impl Calr
pub const fn calm(&self) -> u16
pub const fn calm(&self) -> u16
Calibration minus. The frequency of the calendar is reduced by masking CALM out of 220 RTCCLK pulses (32 seconds if the input frequency is 32768 Hz). This decreases the frequency of the calendar with a resolution of 0.9537 ppm. To increase the frequency of the calendar, this feature should be used in conjunction with CALP.
pub fn set_calm(&mut self, val: u16)
pub fn set_calm(&mut self, val: u16)
Calibration minus. The frequency of the calendar is reduced by masking CALM out of 220 RTCCLK pulses (32 seconds if the input frequency is 32768 Hz). This decreases the frequency of the calendar with a resolution of 0.9537 ppm. To increase the frequency of the calendar, this feature should be used in conjunction with CALP.
pub const fn calw16(&self) -> Calw16
pub const fn calw16(&self) -> Calw16
Use a 16-second calibration cycle period. When CALW16 is set to 1, the 16-second calibration cycle period is selected. This bit must not be set to 1 if CALW8 = 1. Note: CALM[0] is stuck at 0 when CALW16 = 1.
pub fn set_calw16(&mut self, val: Calw16)
pub fn set_calw16(&mut self, val: Calw16)
Use a 16-second calibration cycle period. When CALW16 is set to 1, the 16-second calibration cycle period is selected. This bit must not be set to 1 if CALW8 = 1. Note: CALM[0] is stuck at 0 when CALW16 = 1.
pub const fn calw8(&self) -> Calw8
pub const fn calw8(&self) -> Calw8
Use an 8-second calibration cycle period. When CALW8 is set to 1, the 8-second calibration cycle period is selected. Note: CALM[1:0] are stuck at 00 when CALW8 = 1.
Trait Implementations§
impl Copy for Calr
impl Eq for Calr
impl StructuralPartialEq for Calr
Auto Trait Implementations§
impl Freeze for Calr
impl RefUnwindSafe for Calr
impl Send for Calr
impl Sync for Calr
impl Unpin for Calr
impl UnwindSafe for Calr
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)