pub struct R(_);
Expand description
Register CR
reader
Implementations
sourceimpl R
impl R
sourcepub fn syncokie(&self) -> SYNCOKIE_R
pub fn syncokie(&self) -> SYNCOKIE_R
Bit 0 - SYNC event OK interrupt enable
sourcepub fn syncwarnie(&self) -> SYNCWARNIE_R
pub fn syncwarnie(&self) -> SYNCWARNIE_R
Bit 1 - SYNC warning interrupt enable
sourcepub fn cen(&self) -> CEN_R
pub fn cen(&self) -> CEN_R
Bit 5 - Frequency error counter enable This bit enables the oscillator clock for the frequency error counter. When this bit is set, the CRS_CFGR register is write-protected and cannot be modified.
sourcepub fn autotrimen(&self) -> AUTOTRIMEN_R
pub fn autotrimen(&self) -> AUTOTRIMEN_R
Bit 6 - Automatic trimming enable This bit enables the automatic hardware adjustment of TRIM bits according to the measured frequency error between two SYNC events. If this bit is set, the TRIM bits are read-only. The TRIM value can be adjusted by hardware by one or two steps at a time, depending on the measured frequency error value. Refer to Section7.3.4: Frequency error evaluation and automatic trimming for more details.
sourcepub fn swsync(&self) -> SWSYNC_R
pub fn swsync(&self) -> SWSYNC_R
Bit 7 - Generate software SYNC event This bit is set by software in order to generate a software SYNC event. It is automatically cleared by hardware.
sourcepub fn trim(&self) -> TRIM_R
pub fn trim(&self) -> TRIM_R
Bits 8:14 - HSI48 oscillator smooth trimming These bits provide a user-programmable trimming value to the HSI48 oscillator. They can be programmed to adjust to variations in voltage and temperature that influence the frequency of the HSI48. The default value is 32, which corresponds to the middle of the trimming interval. The trimming step is around 67 kHz between two consecutive TRIM steps. A higher TRIM value corresponds to a higher output frequency. When the AUTOTRIMEN bit is set, this field is controlled by hardware and is read-only.
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