EZR32 Leopard Gecko Software Documentation  ezr32lg-doc-5.1.2
DAC_Init_TypeDef Struct Reference

Detailed Description

DAC init structure, common for both channels.

Definition at line 145 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 169 of file em_dac.h.

Referenced by DAC_Init().

DAC_ConvMode_TypeDef DAC_Init_TypeDef::convMode

Conversion mode.

Definition at line 157 of file em_dac.h.

Referenced by DAC_Init().

bool DAC_Init_TypeDef::diff

Select if single ended or differential mode.

Definition at line 178 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 166 of file em_dac.h.

bool DAC_Init_TypeDef::outEnablePRS

Enable/disable output enable control by CH1 PRS signal.

Definition at line 172 of file em_dac.h.

Referenced by DAC_Init().

DAC_Output_TypeDef DAC_Init_TypeDef::outMode

Output mode

Definition at line 154 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 163 of file em_dac.h.

Referenced by DAC_Init().

DAC_Ref_TypeDef DAC_Init_TypeDef::reference

Reference voltage to use.

Definition at line 151 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 148 of file em_dac.h.

Referenced by DAC_Init().

bool DAC_Init_TypeDef::sineEnable

Enable/disable sine mode.

Definition at line 175 of file em_dac.h.

Referenced by DAC_Init().


The documentation for this struct was generated from the following file: