pub struct W(/* private fields */);
Expand description
Register CR
writer
Implementations§
§impl W
impl W
pub fn syncokie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 0>
pub fn syncokie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 0>
Bit 0 - SYNC event OK interrupt enable
pub fn syncwarnie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 1>
pub fn syncwarnie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 1>
Bit 1 - SYNC warning interrupt enable
pub fn errie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 2>
pub fn errie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 2>
Bit 2 - Synchronization or trimming error interrupt enable
pub fn esyncie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 3>
pub fn esyncie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 3>
Bit 3 - Expected SYNC interrupt enable
pub fn cen(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 5>
pub fn cen(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 5>
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.
pub fn autotrimen(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 6>
pub fn autotrimen(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 6>
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.
pub fn trim(&mut self) -> FieldWriterRaw<'_, u32, CR_SPEC, u8, u8, Unsafe, 6, 8>
pub fn trim(&mut self) -> FieldWriterRaw<'_, u32, CR_SPEC, u8, u8, Unsafe, 6, 8>
Bits 8:13 - 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 = W<CR_SPEC>>§
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
Writes raw bits to the register.