pub struct W(_);
Expand description
Register MCR
writer
Implementations
sourceimpl W
impl W
sourcepub fn mode1(
&mut self
) -> FieldWriterRaw<'_, u32, MCR_SPEC, u8, u8, Unsafe, 3, 0>
pub fn mode1(
&mut self
) -> FieldWriterRaw<'_, u32, MCR_SPEC, u8, u8, Unsafe, 3, 0>
Bits 0:2 - DAC Channel 1 mode These bits can be written only when the DAC is disabled and not in the calibration mode (when bit EN1=0 and bit CEN1 =0 in the DAC_CR register). If EN1=1 or CEN1 =1 the write operation is ignored. They can be set and cleared by software to select the DAC Channel 1 mode: DAC Channel 1 in normal Mode DAC Channel 1 in sample & hold mode
sourcepub fn mode2(
&mut self
) -> FieldWriterRaw<'_, u32, MCR_SPEC, u8, u8, Unsafe, 3, 16>
pub fn mode2(
&mut self
) -> FieldWriterRaw<'_, u32, MCR_SPEC, u8, u8, Unsafe, 3, 16>
Bits 16:18 - DAC Channel 2 mode These bits can be written only when the DAC is disabled and not in the calibration mode (when bit EN2=0 and bit CEN2 =0 in the DAC_CR register). If EN2=1 or CEN2 =1 the write operation is ignored. They can be set and cleared by software to select the DAC Channel 2 mode: DAC Channel 2 in normal Mode DAC Channel 2 in sample & hold mode
Methods from Deref<Target = W<MCR_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.