Type Definition stm32g4::stm32g474::dac1::dac_mcr::W[][src]

type W = W<u32, DAC_MCR>;

Writer for register DAC_MCR

Implementations

impl W[src]

pub fn mode1(&mut self) -> MODE1_W<'_>[src]

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

pub fn dmadouble1(&mut self) -> DMADOUBLE1_W<'_>[src]

Bit 8 - DAC Channel1 DMA double data mode

pub fn sinformat1(&mut self) -> SINFORMAT1_W<'_>[src]

Bit 9 - Enable signed format for DAC channel1

pub fn hfsel(&mut self) -> HFSEL_W<'_>[src]

Bits 14:15 - High frequency interface mode selection

pub fn mode2(&mut self) -> MODE2_W<'_>[src]

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

pub fn dmadouble2(&mut self) -> DMADOUBLE2_W<'_>[src]

Bit 24 - DAC Channel2 DMA double data mode

pub fn sinformat2(&mut self) -> SINFORMAT2_W<'_>[src]

Bit 25 - Enable signed format for DAC channel2