DAC initialization structure, common for both channels.

Public Attributes#

Refresh interval.

Reference voltage to use.

uint8_t

Prescaler used to get DAC clock.

bool

Enable/disable use of low pass filter on output.

bool

Enable/disable reset of prescaler on ch0 start.

bool

Enable/disable output enable control by CH1 PRS signal.

bool

Enable/disable sine mode.

bool

Select if single ended or differential mode.

Public Attribute Documentation#

refresh#

DAC_Refresh_TypeDef DAC_Init_TypeDef::refresh

Refresh interval.

Only used if REFREN bit set for a DAC channel.


Definition at line 130 of file platform/emlib/inc/em_dac.h

reference#

DAC_Ref_TypeDef DAC_Init_TypeDef::reference

Reference voltage to use.


Definition at line 133 of file platform/emlib/inc/em_dac.h

outMode#

DAC_Output_TypeDef DAC_Init_TypeDef::outMode

Output mode.


Definition at line 136 of file platform/emlib/inc/em_dac.h

convMode#

DAC_ConvMode_TypeDef DAC_Init_TypeDef::convMode

Conversion mode.


Definition at line 139 of file platform/emlib/inc/em_dac.h

prescale#

uint8_t DAC_Init_TypeDef::prescale

Prescaler used to get DAC clock.

Derived as follows: DACclk=HFPERclk/(2^prescale). The DAC clock should be <= 1MHz.


Definition at line 145 of file platform/emlib/inc/em_dac.h

lpEnable#

bool DAC_Init_TypeDef::lpEnable

Enable/disable use of low pass filter on output.


Definition at line 148 of file platform/emlib/inc/em_dac.h

ch0ResetPre#

bool DAC_Init_TypeDef::ch0ResetPre

Enable/disable reset of prescaler on ch0 start.


Definition at line 151 of file platform/emlib/inc/em_dac.h

outEnablePRS#

bool DAC_Init_TypeDef::outEnablePRS

Enable/disable output enable control by CH1 PRS signal.


Definition at line 154 of file platform/emlib/inc/em_dac.h

sineEnable#

bool DAC_Init_TypeDef::sineEnable

Enable/disable sine mode.


Definition at line 157 of file platform/emlib/inc/em_dac.h

diff#

bool DAC_Init_TypeDef::diff

Select if single ended or differential mode.


Definition at line 160 of file platform/emlib/inc/em_dac.h