DAC_Init_TypeDef Struct Reference

DAC initialization structure, common for both channels.

#include <em_dac.h>

Data Fields

DAC_Refresh_TypeDef refresh
Refresh interval.
DAC_Ref_TypeDef reference
Reference voltage to use.
DAC_Output_TypeDef outMode
Output mode.
DAC_ConvMode_TypeDef convMode
Conversion mode.
uint8_t prescale
Prescaler used to get DAC clock.
bool lpEnable
Enable/disable use of low pass filter on output.
bool ch0ResetPre
Enable/disable reset of prescaler on ch0 start.
bool outEnablePRS
Enable/disable output enable control by CH1 PRS signal.
bool sineEnable
Enable/disable sine mode.
bool diff
Select if single ended or differential mode.

DAC initialization structure, common for both channels.

Field Documentation

refresh

DAC_Refresh_TypeDef DAC_Init_TypeDef::refresh

Refresh interval.

Only used if REFREN bit set for a DAC channel.

reference

DAC_Ref_TypeDef DAC_Init_TypeDef::reference

Reference voltage to use.

outMode

DAC_Output_TypeDef DAC_Init_TypeDef::outMode

Output mode.

convMode

DAC_ConvMode_TypeDef DAC_Init_TypeDef::convMode

Conversion mode.

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.

lpEnable

bool DAC_Init_TypeDef::lpEnable

Enable/disable use of low pass filter on output.

ch0ResetPre

bool DAC_Init_TypeDef::ch0ResetPre

Enable/disable reset of prescaler on ch0 start.

outEnablePRS

bool DAC_Init_TypeDef::outEnablePRS

Enable/disable output enable control by CH1 PRS signal.

sineEnable

bool DAC_Init_TypeDef::sineEnable

Enable/disable sine mode.

diff

bool DAC_Init_TypeDef::diff

Select if single ended or differential mode.