163 #ifndef ti_drivers_DAC__include 164 #define ti_drivers_DAC__include 170 #include <ti/devices/DeviceFamily.h> 171 #include DeviceFamily_constructPath(driverlib/aux_dac.h) 180 #define DAC_STATUS_SUCCESS (0) 185 #define DAC_STATUS_ERROR (-1) 190 #define DAC_STATUS_INUSE (-2) 195 #define DAC_STATUS_INVALID (-3) 284 extern void DAC_close(DAC_Handle handle);
308 extern int_fast16_t
DAC_setVoltage(DAC_Handle handle, uint32_t uVoltOutput);
328 extern int_fast16_t
DAC_setCode(DAC_Handle handle, uint32_t code);
351 extern int_fast16_t
DAC_enable(DAC_Handle handle);
365 extern int_fast16_t
DAC_disable(DAC_Handle handle);
ADC_Params params
Definition: Driver_Init.h:11
void const * hwAttrs
Definition: DAC.h:212
int_fast16_t DAC_enable(DAC_Handle handle)
Function to enable the DAC's output.
DAC_Handle DAC_open(uint_least8_t index, DAC_Params *params)
Function to initialize a given DAC peripheral specified by the particular index value.
int_fast16_t DAC_disable(DAC_Handle handle)
Function to disable the DAC's output.
void * object
Definition: DAC.h:210
DAC_Config * DAC_Handle
A handle that is returned from a DAC_open() call.
Definition: DAC.h:218
DAC Global configuration.
Definition: DAC.h:207
void DAC_init(void)
Function to initialize the DAC module.
const DAC_Params DAC_defaultParams
Default DAC_Params structure.
Basic DAC Parameters.
Definition: DAC.h:228
uint32_t initCode
Definition: DAC.h:231
int_fast16_t DAC_setVoltage(DAC_Handle handle, uint32_t uVoltOutput)
Function to set the DAC voltage value in microvolts.
void DAC_Params_init(DAC_Params *params)
Function to initialize the DAC_Params struct to its defaults.
int_fast16_t DAC_setCode(DAC_Handle handle, uint32_t code)
Function to set the DAC voltage in terms of a DAC code.
void * custom
Definition: DAC.h:233
void DAC_close(DAC_Handle handle)
Function to close a given DAC peripheral specified by the DAC handle.