pub struct W(/* private fields */);
Expand description
Register CR
writer
Implementations§
Source§impl W
impl W
Sourcepub fn coe(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, COE_A, BitM, 23>
pub fn coe(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, COE_A, BitM, 23>
Bit 23 - Calibration output enable
Sourcepub fn osel(
&mut self,
) -> FieldWriterRaw<'_, u32, CR_SPEC, u8, OSEL_A, Safe, 2, 21>
pub fn osel( &mut self, ) -> FieldWriterRaw<'_, u32, CR_SPEC, u8, OSEL_A, Safe, 2, 21>
Bits 21:22 - Output selection
Sourcepub fn pol(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, POL_A, BitM, 20>
pub fn pol(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, POL_A, BitM, 20>
Bit 20 - Output polarity
Sourcepub fn sub1h(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, SUB1H_A, BitM, 17>
pub fn sub1h(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, SUB1H_A, BitM, 17>
Bit 17 - Subtract 1 hour (winter time change)
Sourcepub fn add1h(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, ADD1H_A, BitM, 16>
pub fn add1h(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, ADD1H_A, BitM, 16>
Bit 16 - Add 1 hour (summer time change)
Sourcepub fn tsie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, TSIE_A, BitM, 15>
pub fn tsie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, TSIE_A, BitM, 15>
Bit 15 - Time-stamp interrupt enable
Sourcepub fn wutie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, WUTIE_A, BitM, 14>
pub fn wutie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, WUTIE_A, BitM, 14>
Bit 14 - Wakeup timer interrupt enable
Sourcepub fn alrbie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, ALRBIE_A, BitM, 13>
pub fn alrbie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, ALRBIE_A, BitM, 13>
Bit 13 - Alarm B interrupt enable
Sourcepub fn alraie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, ALRAIE_A, BitM, 12>
pub fn alraie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, ALRAIE_A, BitM, 12>
Bit 12 - Alarm A interrupt enable
Sourcepub fn tse(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, TSE_A, BitM, 11>
pub fn tse(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, TSE_A, BitM, 11>
Bit 11 - Time stamp enable
Sourcepub fn wute(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, WUTE_A, BitM, 10>
pub fn wute(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, WUTE_A, BitM, 10>
Bit 10 - Wakeup timer enable
Sourcepub fn alrbe(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, ALRBE_A, BitM, 9>
pub fn alrbe(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, ALRBE_A, BitM, 9>
Bit 9 - Alarm B enable
Sourcepub fn alrae(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, ALRAE_A, BitM, 8>
pub fn alrae(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, ALRAE_A, BitM, 8>
Bit 8 - Alarm A enable
Sourcepub fn dce(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 7>
pub fn dce(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 7>
Bit 7 - Coarse digital calibration enable
Sourcepub fn refckon(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, REFCKON_A, BitM, 4>
pub fn refckon(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, REFCKON_A, BitM, 4>
Bit 4 - Reference clock detection enable (50 or 60 Hz)
Sourcepub fn tsedge(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, TSEDGE_A, BitM, 3>
pub fn tsedge(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, TSEDGE_A, BitM, 3>
Bit 3 - Time-stamp event active edge
Sourcepub fn wucksel(
&mut self,
) -> FieldWriterRaw<'_, u32, CR_SPEC, u8, WUCKSEL_A, Unsafe, 3, 0>
pub fn wucksel( &mut self, ) -> FieldWriterRaw<'_, u32, CR_SPEC, u8, WUCKSEL_A, Unsafe, 3, 0>
Bits 0:2 - Wakeup clock selection
Sourcepub fn bypshad(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, BYPSHAD_A, BitM, 5>
pub fn bypshad(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, BYPSHAD_A, BitM, 5>
Bit 5 - Bypass the shadow registers
Methods from Deref<Target = W<CR_SPEC>>§
Sourcepub 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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for W
impl RefUnwindSafe for W
impl Send for W
impl Sync for W
impl Unpin for W
impl UnwindSafe for W
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
Mutably borrows from an owned value. Read more