Type Definition stm32g4::stm32g484::dac1::dac_mcr::R[][src]

type R = R<u32, DAC_MCR>;

Reader of register DAC_MCR

Implementations

impl R[src]

pub fn mode1(&self) -> MODE1_R[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(&self) -> DMADOUBLE1_R[src]

Bit 8 - DAC Channel1 DMA double data mode

pub fn sinformat1(&self) -> SINFORMAT1_R[src]

Bit 9 - Enable signed format for DAC channel1

pub fn hfsel(&self) -> HFSEL_R[src]

Bits 14:15 - High frequency interface mode selection

pub fn mode2(&self) -> MODE2_R[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(&self) -> DMADOUBLE2_R[src]

Bit 24 - DAC Channel2 DMA double data mode

pub fn sinformat2(&self) -> SINFORMAT2_R[src]

Bit 25 - Enable signed format for DAC channel2