libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
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... | |
void dac_disable_auto_refresh | ( | uint32_t | dac, |
enum dac_ch | ch | ||
) |
Disable auto refresh.
[in] | dac | DAC (use DACx) |
[in] | ch | DAC Channel (use DAC_CHx) |
Definition at line 150 of file dac_common.c.
References DAC_CHx_CTRL.
void dac_disable_channel | ( | uint32_t | dac, |
enum dac_ch | ch | ||
) |
Disable channel.
[in] | dac | DAC (use DACx) |
[in] | ch | DAC Channel (use DAC_CHx) |
Definition at line 170 of file dac_common.c.
References DAC_CHx_CTRL.
void dac_disable_prs_trigger | ( | uint32_t | dac, |
enum dac_ch | ch | ||
) |
Disable PRS triggerring.
[in] | dac | DAC (use DACx) |
[in] | ch | DAC Channel (use DAC_CHx) |
Definition at line 130 of file dac_common.c.
References DAC_CHx_CTRL.
void dac_disable_sine | ( | uint32_t | dac | ) |
Disable Sine wave on output.
[in] | dac | DAC (use DACx) |
Definition at line 95 of file dac_common.c.
References DAC_CTRL.
void dac_enable_auto_refresh | ( | uint32_t | dac, |
enum dac_ch | ch | ||
) |
Enable auto refresh.
[in] | dac | DAC (use DACx) |
[in] | ch | DAC Channel (use DAC_CHx) |
Definition at line 140 of file dac_common.c.
References DAC_CH_CTRL_REFREN, and DAC_CHx_CTRL.
void dac_enable_channel | ( | uint32_t | dac, |
enum dac_ch | ch | ||
) |
Enable channel.
[in] | dac | DAC (use DACx) |
[in] | ch | DAC Channel (use DAC_CHx) |
Definition at line 160 of file dac_common.c.
References DAC_CH_CTRL_EN, and DAC_CHx_CTRL.
void dac_enable_prs_trigger | ( | uint32_t | dac, |
enum dac_ch | ch | ||
) |
Enable PRS triggerring.
[in] | dac | DAC (use DACx) |
[in] | ch | DAC Channel (use DAC_CHx) |
Definition at line 120 of file dac_common.c.
References DAC_CH_CTRL_PRSEN, and DAC_CHx_CTRL.
void dac_enable_sine | ( | uint32_t | dac | ) |
Enable Sine wave on output.
[in] | dac | DAC (use DACx) |
Definition at line 86 of file dac_common.c.
References DAC_CTRL, and DAC_CTRL_SINMODE.
void dac_set_clock_prescaler | ( | uint32_t | dac, |
uint32_t | presc | ||
) |
Set DAC clock prescaler.
[in] | dac | DAC (use DACx) |
[in] | presc | Prescaler (use DAC_CTRL_PRESC_*) |
Definition at line 47 of file dac_common.c.
References DAC_CTRL.
void dac_set_conversion_mode | ( | uint32_t | dac, |
uint32_t | convmode | ||
) |
Set conversion mode.
[in] | dac | DAC (use DACx) |
[in] | convmode | Conversion mode (use DAC_CTRL_CONVMODE_*) |
Definition at line 77 of file dac_common.c.
References DAC_CTRL.
void dac_set_out_mode | ( | uint32_t | dac, |
uint32_t | outmode | ||
) |
Set DAC output mode.
[in] | dac | DAC (use DACx) |
[in] | outmode | Output mode (DAC_CTRL_OUTMODE_*) |
Definition at line 67 of file dac_common.c.
References DAC_CTRL.
Set PRS trigger source on DAC channel.
[in] | dac | DAC (use DACx) |
[in] | dac_chan | DAC Channel (use DAC_CHx) |
[in] | prs_chan | PRS Channel (use PRS_CHx) |
Definition at line 106 of file dac_common.c.
References DAC_CH_CTRL_PRSSEL, DAC_CH_CTRL_PRSSEL_MASK, and DAC_CHx_CTRL.
void dac_set_reference | ( | uint32_t | dac, |
uint32_t | refsel | ||
) |
Set DAC reference.
[in] | dac | DAC (use DACx) |
[in] | refsel | Reference (DAC_CTRL_REFSEL_*) |
Definition at line 57 of file dac_common.c.
References DAC_CTRL.
void dac_set_refresh_cycle | ( | uint32_t | dac, |
uint32_t | refrsel | ||
) |
Set DAC refresh cycle.
[in] | dac | DAC (use DACx) |
[in] | refrsel | (use DAC_CTRL_REFRSEL_*CYCLES) |
Definition at line 37 of file dac_common.c.
References DAC_CTRL.