DAC_Init_TypeDef Struct Reference

DAC initialization structure, common for both channels.

Definition at line 133 of file em_dac.h .

#include < em_dac.h >

Data Fields

bool ch0ResetPre
DAC_ConvMode_TypeDef convMode
bool diff
bool lpEnable
bool outEnablePRS
DAC_Output_TypeDef outMode
uint8_t prescale
DAC_Ref_TypeDef reference
DAC_Refresh_TypeDef refresh
bool sineEnable

Field Documentation

bool DAC_Init_TypeDef::ch0ResetPre

Enable/disable reset of prescaler on ch0 start.

Definition at line 156 of file em_dac.h .

Referenced by DAC_Init() .

DAC_ConvMode_TypeDef DAC_Init_TypeDef::convMode

Conversion mode.

Definition at line 144 of file em_dac.h .

Referenced by DAC_Init() .

bool DAC_Init_TypeDef::diff

Select if single ended or differential mode.

Definition at line 165 of file em_dac.h .

Referenced by DAC_Init() .

bool DAC_Init_TypeDef::lpEnable

Enable/disable use of low pass filter on output.

Definition at line 153 of file em_dac.h .

bool DAC_Init_TypeDef::outEnablePRS

Enable/disable output enable control by CH1 PRS signal.

Definition at line 159 of file em_dac.h .

Referenced by DAC_Init() .

DAC_Output_TypeDef DAC_Init_TypeDef::outMode

Output mode.

Definition at line 141 of file em_dac.h .

Referenced by DAC_Init() .

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 150 of file em_dac.h .

Referenced by DAC_Init() .

DAC_Ref_TypeDef DAC_Init_TypeDef::reference

Reference voltage to use.

Definition at line 138 of file em_dac.h .

Referenced by DAC_Init() .

DAC_Refresh_TypeDef DAC_Init_TypeDef::refresh

Refresh interval. Only used if REFREN bit set for a DAC channel.

Definition at line 135 of file em_dac.h .

Referenced by DAC_Init() .

bool DAC_Init_TypeDef::sineEnable

Enable/disable sine mode.

Definition at line 162 of file em_dac.h .

Referenced by DAC_Init() .


The documentation for this struct was generated from the following file:
  • C:/HandsOn/super/platform/emlib/inc/ em_dac.h