libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
dac_common.c File Reference
Include dependency graph for dac_common.c:

Go to the source code of this file.

Functions

void dac_set_refresh_cycle (uint32_t dac, uint32_t refrsel)
 Set DAC refresh cycle. More...
 
void dac_set_clock_prescaler (uint32_t dac, uint32_t presc)
 Set DAC clock prescaler. More...
 
void dac_set_reference (uint32_t dac, uint32_t refsel)
 Set DAC reference. More...
 
void dac_set_out_mode (uint32_t dac, uint32_t outmode)
 Set DAC output mode. More...
 
void dac_set_conversion_mode (uint32_t dac, uint32_t convmode)
 Set conversion mode. More...
 
void dac_enable_sine (uint32_t dac)
 Enable Sine wave on output. More...
 
void dac_disable_sine (uint32_t dac)
 Disable Sine wave on output. More...
 
void dac_set_prs_trigger (uint32_t dac, enum dac_ch dac_chan, enum prs_ch prs_chan)
 Set PRS trigger source on DAC channel. More...
 
void dac_enable_prs_trigger (uint32_t dac, enum dac_ch ch)
 Enable PRS triggerring. More...
 
void dac_disable_prs_trigger (uint32_t dac, enum dac_ch ch)
 Disable PRS triggerring. More...
 
void dac_enable_auto_refresh (uint32_t dac, enum dac_ch ch)
 Enable auto refresh. More...
 
void dac_disable_auto_refresh (uint32_t dac, enum dac_ch ch)
 Disable auto refresh. More...
 
void dac_enable_channel (uint32_t dac, enum dac_ch ch)
 Enable channel. More...
 
void dac_disable_channel (uint32_t dac, enum dac_ch ch)
 Disable channel. More...