152 #ifndef ti_drivers_ADC__include 153 #define ti_drivers_ADC__include 166 #define ADC_convertRawToMicroVolts ADC_convertToMicroVolts 186 #define ADC_CMD_RESERVED (32) 201 #define ADC_STATUS_RESERVED (-32) 211 #define ADC_STATUS_SUCCESS (0) 219 #define ADC_STATUS_ERROR (-1) 228 #define ADC_STATUS_UNDEFINEDCMD (-2) 275 typedef void (*ADC_CloseFxn) (ADC_Handle handle);
282 typedef int_fast16_t (*ADC_ControlFxn) (ADC_Handle handle, uint_fast16_t cmd,
290 typedef int_fast16_t (*ADC_ConvertFxn) (ADC_Handle handle, uint16_t *value);
297 typedef uint32_t (*ADC_ConvertToMicroVoltsFxn) (ADC_Handle handle,
305 typedef void (*ADC_InitFxn) (ADC_Handle handle);
321 ADC_CloseFxn closeFxn;
324 ADC_ControlFxn controlFxn;
327 ADC_ConvertFxn convertFxn;
330 ADC_ConvertToMicroVoltsFxn convertToMicroVolts;
366 extern void ADC_close(ADC_Handle handle);
389 extern int_fast16_t
ADC_control(ADC_Handle handle, uint_fast16_t cmd,
409 extern int_fast16_t
ADC_convert(ADC_Handle handle, uint16_t *value);
ADC driver's custom configuration structure.
Definition: ADC.h:346
int_fast16_t ADC_convert(ADC_Handle handle, uint16_t *value)
Function to perform an ADC conversion.
ADC Parameters used with ADC_open().
Definition: ADC.h:258
void ADC_init(void)
Function to initialize the ADC driver.
uint32_t ADC_convertToMicroVolts(ADC_Handle handle, uint16_t adcValue)
Function to convert a raw ADC sample into microvolts.
void ADC_Params_init(ADC_Params *params)
Initialize an ADC_Params structure to its default values.
ADC_FxnTable const * fxnTablePtr
Definition: ADC.h:349
int_fast16_t ADC_control(ADC_Handle handle, uint_fast16_t cmd, void *arg)
Function performs implementation specific features on a driver instance.
ADC_Handle ADC_open(uint_least8_t index, ADC_Params *params)
Function to initialize the ADC peripheral.
void const * hwAttrs
Definition: ADC.h:356
struct ADC_Config_ ADC_Config
ADC driver's custom configuration structure.
The definition of an ADC function table that contains the required set of functions to control a spec...
Definition: ADC.h:319
void * object
Definition: ADC.h:352
struct ADC_Config_ * ADC_Handle
A handle that is returned from an ADC_open() call.
Definition: ADC.h:248
bool isProtected
Definition: ADC.h:261
void ADC_close(ADC_Handle handle)
Function to close an ADC driver instance.
void * custom
Definition: ADC.h:259