pub struct W(_);
Expand description
Register CTL1
writer
Implementations
sourceimpl W
impl W
sourcepub fn vbaten(
&mut self
) -> BitWriterRaw<'_, u32, CTL1_SPEC, VBATEN_A, BitM, 24_u8>
pub fn vbaten(
&mut self
) -> BitWriterRaw<'_, u32, CTL1_SPEC, VBATEN_A, BitM, 24_u8>
Bit 24 - enable/disable the VBAT channel
sourcepub fn tsvren(
&mut self
) -> BitWriterRaw<'_, u32, CTL1_SPEC, TSVREN_A, BitM, 23_u8>
pub fn tsvren(
&mut self
) -> BitWriterRaw<'_, u32, CTL1_SPEC, TSVREN_A, BitM, 23_u8>
Bit 23 - Channel 16 and 17 enable of ADC
sourcepub fn swrcst(
&mut self
) -> BitWriterRaw<'_, u32, CTL1_SPEC, SWRCST_AW, BitM, 22_u8>
pub fn swrcst(
&mut self
) -> BitWriterRaw<'_, u32, CTL1_SPEC, SWRCST_AW, BitM, 22_u8>
Bit 22 - Start on regular channel
sourcepub fn swicst(
&mut self
) -> BitWriterRaw<'_, u32, CTL1_SPEC, SWICST_AW, BitM, 21_u8>
pub fn swicst(
&mut self
) -> BitWriterRaw<'_, u32, CTL1_SPEC, SWICST_AW, BitM, 21_u8>
Bit 21 - Start on inserted channel
sourcepub fn eterc(
&mut self
) -> BitWriterRaw<'_, u32, CTL1_SPEC, ETERC_A, BitM, 20_u8>
pub fn eterc(
&mut self
) -> BitWriterRaw<'_, u32, CTL1_SPEC, ETERC_A, BitM, 20_u8>
Bit 20 - External trigger enable for regular channel
sourcepub fn etsrc(
&mut self
) -> FieldWriterRaw<'_, u32, CTL1_SPEC, u8, ETSRC_A, Safe, 3_u8, 17_u8>
pub fn etsrc(
&mut self
) -> FieldWriterRaw<'_, u32, CTL1_SPEC, u8, ETSRC_A, Safe, 3_u8, 17_u8>
Bits 17:19 - External trigger select for regular channel
sourcepub fn eteic(
&mut self
) -> BitWriterRaw<'_, u32, CTL1_SPEC, ETEIC_A, BitM, 15_u8>
pub fn eteic(
&mut self
) -> BitWriterRaw<'_, u32, CTL1_SPEC, ETEIC_A, BitM, 15_u8>
Bit 15 - External trigger enable for inserted channel
sourcepub fn etsic(
&mut self
) -> FieldWriterRaw<'_, u32, CTL1_SPEC, u8, ETSIC_A, Safe, 3_u8, 12_u8>
pub fn etsic(
&mut self
) -> FieldWriterRaw<'_, u32, CTL1_SPEC, u8, ETSIC_A, Safe, 3_u8, 12_u8>
Bits 12:14 - External trigger select for inserted channel
sourcepub fn dal(&mut self) -> BitWriterRaw<'_, u32, CTL1_SPEC, DAL_A, BitM, 11_u8>
pub fn dal(&mut self) -> BitWriterRaw<'_, u32, CTL1_SPEC, DAL_A, BitM, 11_u8>
Bit 11 - Data alignment
sourcepub fn dma(&mut self) -> BitWriterRaw<'_, u32, CTL1_SPEC, DMA_A, BitM, 8_u8>
pub fn dma(&mut self) -> BitWriterRaw<'_, u32, CTL1_SPEC, DMA_A, BitM, 8_u8>
Bit 8 - DMA request enable
sourcepub fn rstclb(
&mut self
) -> BitWriterRaw<'_, u32, CTL1_SPEC, RSTCLB_AW, BitM, 3_u8>
pub fn rstclb(
&mut self
) -> BitWriterRaw<'_, u32, CTL1_SPEC, RSTCLB_AW, BitM, 3_u8>
Bit 3 - Reset calibration
sourcepub fn clb(&mut self) -> BitWriterRaw<'_, u32, CTL1_SPEC, CLB_AW, BitM, 2_u8>
pub fn clb(&mut self) -> BitWriterRaw<'_, u32, CTL1_SPEC, CLB_AW, BitM, 2_u8>
Bit 2 - ADC calibration
sourcepub fn ctn(&mut self) -> BitWriterRaw<'_, u32, CTL1_SPEC, CTN_A, BitM, 1_u8>
pub fn ctn(&mut self) -> BitWriterRaw<'_, u32, CTL1_SPEC, CTN_A, BitM, 1_u8>
Bit 1 - Continuous mode
Methods from Deref<Target = W<CTL1_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