Struct stm32_hal2::pac::adc12_common::ccr::W
source · [−]pub struct W(_);Expand description
Register CCR writer
Implementations
sourceimpl W
impl W
sourcepub fn dual(
&mut self
) -> FieldWriterRaw<'_, u32, CCR_SPEC, u8, DUAL_A, Unsafe, 5, 0>
pub fn dual(
&mut self
) -> FieldWriterRaw<'_, u32, CCR_SPEC, u8, DUAL_A, Unsafe, 5, 0>
Bits 0:4 - Dual ADC mode selection
sourcepub fn delay(&mut self) -> FieldWriterRaw<'_, u32, CCR_SPEC, u8, u8, Safe, 4, 8>
pub fn delay(&mut self) -> FieldWriterRaw<'_, u32, CCR_SPEC, u8, u8, Safe, 4, 8>
Bits 8:11 - Delay between 2 sampling phases
sourcepub fn damdf(
&mut self
) -> FieldWriterRaw<'_, u32, CCR_SPEC, u8, DAMDF_A, Unsafe, 2, 14>
pub fn damdf(
&mut self
) -> FieldWriterRaw<'_, u32, CCR_SPEC, u8, DAMDF_A, Unsafe, 2, 14>
Bits 14:15 - Dual ADC Mode Data Format
sourcepub fn ckmode(
&mut self
) -> FieldWriterRaw<'_, u32, CCR_SPEC, u8, CKMODE_A, Safe, 2, 16>
pub fn ckmode(
&mut self
) -> FieldWriterRaw<'_, u32, CCR_SPEC, u8, CKMODE_A, Safe, 2, 16>
Bits 16:17 - ADC clock mode
sourcepub fn presc(
&mut self
) -> FieldWriterRaw<'_, u32, CCR_SPEC, u8, PRESC_A, Unsafe, 4, 18>
pub fn presc(
&mut self
) -> FieldWriterRaw<'_, u32, CCR_SPEC, u8, PRESC_A, Unsafe, 4, 18>
Bits 18:21 - ADC prescaler
sourcepub fn vrefen(&mut self) -> BitWriterRaw<'_, u32, CCR_SPEC, VREFEN_A, BitM, 22>
pub fn vrefen(&mut self) -> BitWriterRaw<'_, u32, CCR_SPEC, VREFEN_A, BitM, 22>
Bit 22 - VREFINT enable
sourcepub fn vsenseen(
&mut self
) -> BitWriterRaw<'_, u32, CCR_SPEC, VSENSEEN_A, BitM, 23>
pub fn vsenseen(
&mut self
) -> BitWriterRaw<'_, u32, CCR_SPEC, VSENSEEN_A, BitM, 23>
Bit 23 - Temperature sensor enable
Methods from Deref<Target = W<CCR_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 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