#include "aux_dac.h"Macros | |
| #define | SAMPLE_CLK_HOLD_PERIOD (0 << AUX_ANAIF_DACSMPLCFG1_HOLD_INTERVAL_S) |
| #define | SAMPLE_CLK_SETUP_COUNT (15 << AUX_ANAIF_DACSMPLCFG1_SETUP_CNT_S) |
| #define | SAMPLE_CLK_LOW_PERIOD (3 << AUX_ANAIF_DACSMPLCFG1_L_PER_S) |
| #define | SAMPLE_CLK_HIGH_PERIOD (1 << AUX_ANAIF_DACSMPLCFG1_H_PER_S) |
Functions | |
| void | AUXDACSetVref (uint8_t refSource) |
| Sets the voltage reference source. More... | |
| void | AUXDACEnablePreCharge (void) |
| Enables DAC precharge. More... | |
| void | AUXDACDisablePreCharge (void) |
| Disables DAC precharge. More... | |
| uint32_t | AUXDACCalcMax (void) |
| Calculates the upper limit voltage the DAC can output. More... | |
| uint32_t | AUXDACCalcMin (void) |
| Calculates the lower limit voltage the DAC can output. More... | |
| uint32_t | AUXDACCalcCode (uint32_t uVoltOut, uint32_t uVoltOutMin, uint32_t uVoltOutMax) |
| Calculates the appropriate DAC code for a specific voltage value. More... | |
| void | AUXDACSetSampleClock (uint8_t dacClkDiv) |
| Configures and sets the DAC sample clock. More... | |
| void | AUXDACSetCode (uint8_t dacCode) |
| Updates the current DAC code. More... | |
| void | AUXDACEnable (uint8_t dacPinId) |
| Enables the DAC. More... | |
| void | AUXDACDisable (void) |
| Disables the DAC. More... | |
| #define SAMPLE_CLK_HIGH_PERIOD (1 << AUX_ANAIF_DACSMPLCFG1_H_PER_S) |
Referenced by AUXDACSetSampleClock().
| #define SAMPLE_CLK_HOLD_PERIOD (0 << AUX_ANAIF_DACSMPLCFG1_HOLD_INTERVAL_S) |
Referenced by AUXDACSetSampleClock().
| #define SAMPLE_CLK_LOW_PERIOD (3 << AUX_ANAIF_DACSMPLCFG1_L_PER_S) |
Referenced by AUXDACSetSampleClock().
| #define SAMPLE_CLK_SETUP_COUNT (15 << AUX_ANAIF_DACSMPLCFG1_SETUP_CNT_S) |
Referenced by AUXDACSetSampleClock().