pub struct W(_);
Expand description
Register CFGR2
writer
Implementations
sourceimpl W
impl W
sourcepub fn rovse(&mut self) -> BitWriterRaw<'_, u32, CFGR2_SPEC, ROVSE_A, BitM, 0>
pub fn rovse(&mut self) -> BitWriterRaw<'_, u32, CFGR2_SPEC, ROVSE_A, BitM, 0>
Bit 0 - ADC oversampler enable on scope ADC group regular
sourcepub fn jovse(&mut self) -> BitWriterRaw<'_, u32, CFGR2_SPEC, JOVSE_A, BitM, 1>
pub fn jovse(&mut self) -> BitWriterRaw<'_, u32, CFGR2_SPEC, JOVSE_A, BitM, 1>
Bit 1 - ADC oversampler enable on scope ADC group injected
sourcepub fn ovss(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR2_SPEC, u8, u8, Unsafe, 4, 5>
pub fn ovss(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR2_SPEC, u8, u8, Unsafe, 4, 5>
Bits 5:8 - ADC oversampling shift
sourcepub fn trovs(&mut self) -> BitWriterRaw<'_, u32, CFGR2_SPEC, TROVS_A, BitM, 9>
pub fn trovs(&mut self) -> BitWriterRaw<'_, u32, CFGR2_SPEC, TROVS_A, BitM, 9>
Bit 9 - ADC oversampling discontinuous mode (triggered mode) for ADC group regular
sourcepub fn rovsm(&mut self) -> BitWriterRaw<'_, u32, CFGR2_SPEC, ROVSM_A, BitM, 10>
pub fn rovsm(&mut self) -> BitWriterRaw<'_, u32, CFGR2_SPEC, ROVSM_A, BitM, 10>
Bit 10 - Regular Oversampling mode
sourcepub fn rshift1(
&mut self
) -> BitWriterRaw<'_, u32, CFGR2_SPEC, RSHIFT1_A, BitM, 11>
pub fn rshift1(
&mut self
) -> BitWriterRaw<'_, u32, CFGR2_SPEC, RSHIFT1_A, BitM, 11>
Bit 11 - Right-shift data after Offset 1 correction
sourcepub fn rshift2(
&mut self
) -> BitWriterRaw<'_, u32, CFGR2_SPEC, RSHIFT1_A, BitM, 12>
pub fn rshift2(
&mut self
) -> BitWriterRaw<'_, u32, CFGR2_SPEC, RSHIFT1_A, BitM, 12>
Bit 12 - Right-shift data after Offset 2 correction
sourcepub fn rshift3(
&mut self
) -> BitWriterRaw<'_, u32, CFGR2_SPEC, RSHIFT1_A, BitM, 13>
pub fn rshift3(
&mut self
) -> BitWriterRaw<'_, u32, CFGR2_SPEC, RSHIFT1_A, BitM, 13>
Bit 13 - Right-shift data after Offset 3 correction
sourcepub fn rshift4(
&mut self
) -> BitWriterRaw<'_, u32, CFGR2_SPEC, RSHIFT1_A, BitM, 14>
pub fn rshift4(
&mut self
) -> BitWriterRaw<'_, u32, CFGR2_SPEC, RSHIFT1_A, BitM, 14>
Bit 14 - Right-shift data after Offset 4 correction
sourcepub fn osvr(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR2_SPEC, u16, u16, Safe, 10, 16>
pub fn osvr(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR2_SPEC, u16, u16, Safe, 10, 16>
Bits 16:25 - Oversampling ratio
Methods from Deref<Target = W<CFGR2_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
sourceimpl From<W<CFGR2_SPEC>> for W
impl From<W<CFGR2_SPEC>> for W
sourcefn from(writer: W<CFGR2_SPEC>) -> W
fn from(writer: W<CFGR2_SPEC>) -> W
Converts to this type from the input type.
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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