CC26xx Driver Library
aux_dac.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include "../inc/hw_types.h"
#include "../inc/hw_memmap.h"
#include "../inc/hw_adi_4_aux.h"
#include "../inc/hw_aux_anaif.h"
#include "../inc/hw_aux_sysif.h"
#include "../inc/hw_fcfg1.h"

Macros

#define AUXDAC_COMPA_IN_NC   0x00
 
#define AUXDAC_COMPA_IN_AUXIO26   0x01
 
#define AUXDAC_COMPA_IN_AUXIO25   0x02
 
#define AUXDAC_COMPA_IN_AUXIO24   0x04
 
#define AUXDAC_COMPA_IN_AUXIO23   0x08
 
#define AUXDAC_COMPA_IN_AUXIO22   0x10
 
#define AUXDAC_COMPA_IN_AUXIO21   0x20
 
#define AUXDAC_COMPA_IN_AUXIO20   0x40
 
#define AUXDAC_COMPA_IN_AUXIO19   0x80
 
#define AUXDAC_COMPA_IN_AUXIO7   AUXDAC_COMPA_IN_AUXIO26
 
#define AUXDAC_COMPA_IN_AUXIO6   AUXDAC_COMPA_IN_AUXIO25
 
#define AUXDAC_COMPA_IN_AUXIO5   AUXDAC_COMPA_IN_AUXIO24
 
#define AUXDAC_COMPA_IN_AUXIO4   AUXDAC_COMPA_IN_AUXIO23
 
#define AUXDAC_COMPA_IN_AUXIO3   AUXDAC_COMPA_IN_AUXIO22
 
#define AUXDAC_COMPA_IN_AUXIO2   AUXDAC_COMPA_IN_AUXIO21
 
#define AUXDAC_COMPA_IN_AUXIO1   AUXDAC_COMPA_IN_AUXIO20
 
#define AUXDAC_COMPA_IN_AUXIO0   AUXDAC_COMPA_IN_AUXIO19
 
#define AUXDAC_VREF_SEL_VDDS   ADI_4_AUX_MUX2_DAC_VREF_SEL_VDDS
 
#define AUXDAC_VREF_SEL_ADCREF   ADI_4_AUX_MUX2_DAC_VREF_SEL_ADCREF
 
#define AUXDAC_VREF_SEL_DCOUPL   ADI_4_AUX_MUX2_DAC_VREF_SEL_DCOUPL
 
#define AUXDAC_VREF_SEL_NC   ADI_4_AUX_MUX2_DAC_VREF_SEL_NC
 

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...