pub struct W(_);
Expand description
Register CR2
writer
Implementations§
source§impl W
impl W
sourcepub fn tsvrefe(
&mut self
) -> BitWriterRaw<'_, u32, CR2_SPEC, TSVREFE_A, BitM, 23>
pub fn tsvrefe(
&mut self
) -> BitWriterRaw<'_, u32, CR2_SPEC, TSVREFE_A, BitM, 23>
Bit 23 - Temperature sensor and VREFINT enable
sourcepub fn swstart(
&mut self
) -> BitWriterRaw<'_, u32, CR2_SPEC, SWSTART_AW, BitM, 22>
pub fn swstart(
&mut self
) -> BitWriterRaw<'_, u32, CR2_SPEC, SWSTART_AW, BitM, 22>
Bit 22 - Start conversion of regular channels
sourcepub fn jswstart(
&mut self
) -> BitWriterRaw<'_, u32, CR2_SPEC, JSWSTART_AW, BitM, 21>
pub fn jswstart(
&mut self
) -> BitWriterRaw<'_, u32, CR2_SPEC, JSWSTART_AW, BitM, 21>
Bit 21 - Start conversion of injected channels
sourcepub fn exttrig(
&mut self
) -> BitWriterRaw<'_, u32, CR2_SPEC, EXTTRIG_A, BitM, 20>
pub fn exttrig(
&mut self
) -> BitWriterRaw<'_, u32, CR2_SPEC, EXTTRIG_A, BitM, 20>
Bit 20 - External trigger conversion mode for regular channels
sourcepub fn extsel(
&mut self
) -> FieldWriterRaw<'_, u32, CR2_SPEC, u8, EXTSEL_A, Safe, 3, 17>
pub fn extsel(
&mut self
) -> FieldWriterRaw<'_, u32, CR2_SPEC, u8, EXTSEL_A, Safe, 3, 17>
Bits 17:19 - External event select for regular group
sourcepub fn jexttrig(
&mut self
) -> BitWriterRaw<'_, u32, CR2_SPEC, JEXTTRIG_A, BitM, 15>
pub fn jexttrig(
&mut self
) -> BitWriterRaw<'_, u32, CR2_SPEC, JEXTTRIG_A, BitM, 15>
Bit 15 - External trigger conversion mode for injected channels
sourcepub fn jextsel(
&mut self
) -> FieldWriterRaw<'_, u32, CR2_SPEC, u8, JEXTSEL_A, Safe, 3, 12>
pub fn jextsel(
&mut self
) -> FieldWriterRaw<'_, u32, CR2_SPEC, u8, JEXTSEL_A, Safe, 3, 12>
Bits 12:14 - External event select for injected group
sourcepub fn align(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, ALIGN_A, BitM, 11>
pub fn align(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, ALIGN_A, BitM, 11>
Bit 11 - Data alignment
sourcepub fn dma(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, bool, BitM, 8>
pub fn dma(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, bool, BitM, 8>
Bit 8 - Direct memory access mode
sourcepub fn rstcal(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, RSTCAL_AW, BitM, 3>
pub fn rstcal(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, RSTCAL_AW, BitM, 3>
Bit 3 - Reset calibration
sourcepub fn cal(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, CAL_AW, BitM, 2>
pub fn cal(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, CAL_AW, BitM, 2>
Bit 2 - A/D calibration
sourcepub fn cont(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, CONT_A, BitM, 1>
pub fn cont(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, CONT_A, BitM, 1>
Bit 1 - Continuous conversion
Methods from Deref<Target = W<CR2_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.