pub struct W(_);
Expand description
Register CTL0
writer
Implementations
sourceimpl W
impl W
sourcepub fn ckdiv(
&mut self
) -> FieldWriterRaw<'_, u16, CTL0_SPEC, u8, CKDIV_A, Unsafe, 2_u8, 8_u8>
pub fn ckdiv(
&mut self
) -> FieldWriterRaw<'_, u16, CTL0_SPEC, u8, CKDIV_A, Unsafe, 2_u8, 8_u8>
Bits 8:9 - Clock division
sourcepub fn arse(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, ARSE_A, BitM, 7_u8>
pub fn arse(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, ARSE_A, BitM, 7_u8>
Bit 7 - Auto-reload shadow enable
sourcepub fn spm(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, SPM_A, BitM, 3_u8>
pub fn spm(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, SPM_A, BitM, 3_u8>
Bit 3 - Single pulse mode
sourcepub fn ups(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, UPS_A, BitM, 2_u8>
pub fn ups(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, UPS_A, BitM, 2_u8>
Bit 2 - Update source
sourcepub fn updis(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, UPDIS_A, BitM, 1_u8>
pub fn updis(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, UPDIS_A, BitM, 1_u8>
Bit 1 - Update disable
Methods from Deref<Target = W<CTL0_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
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