108 #ifndef ti_drivers_ADC__include
109 #define ti_drivers_ADC__include
130 #define ADC_CMD_RESERVED (32)
144 #define ADC_STATUS_RESERVED (-32)
152 #define ADC_STATUS_SUCCESS (0)
160 #define ADC_STATUS_ERROR (-1)
169 #define ADC_STATUS_UNDEFINEDCMD (-2)
215 uint16_t rawAdcValue);
293 extern void ADC_close(ADC_Handle handle);
314 extern int_fast16_t
ADC_control(ADC_Handle handle, uint_fast16_t cmd,
void *arg);
333 int_fast16_t
ADC_convert(ADC_Handle handle, uint16_t *value);
void * object
Definition: ADC.h:272
ADC_OpenFxn openFxn
Definition: ADC.h:252
ADC_ConvertFxn convertFxn
Definition: ADC.h:243
int_fast16_t ADC_convert(ADC_Handle handle, uint16_t *value)
Function to perform ADC conversion.
uint32_t ADC_convertRawToMicroVolts(ADC_Handle handle, uint16_t rawAdcValue)
Function performs conversion from raw ADC result to actual value in microvolts.
ADC Parameters.
Definition: ADC.h:185
ADC_ControlFxn controlFxn
Definition: ADC.h:240
void ADC_init(void)
Function to initializes the ADC driver.
void ADC_Params_init(ADC_Params *params)
Function to initialize the ADC_Params struct to its defaults.
ADC_FxnTable const * fxnTablePtr
Definition: ADC.h:269
ADC_Handle(* ADC_OpenFxn)(ADC_Handle handle, ADC_Params *params)
A function pointer to a driver specific implementation of ADC_open().
Definition: ADC.h:227
void(* ADC_CloseFxn)(ADC_Handle handle)
A function pointer to a driver specific implementation of ADC_close().
Definition: ADC.h:194
int_fast16_t ADC_control(ADC_Handle handle, uint_fast16_t cmd, void *arg)
Function performs implementation specific features on a given ADC_Handle.
void const * hwAttrs
Definition: ADC.h:275
ADC_Handle ADC_open(uint_fast16_t index, ADC_Params *params)
Function to initialize the ADC peripheral.
ADC Global configuration.
Definition: ADC.h:267
ADC_InitFxn initFxn
Definition: ADC.h:249
int_fast16_t(* ADC_ConvertFxn)(ADC_Handle handle, uint16_t *value)
A function pointer to a driver specific implementation of ADC_ConvertFxn().
Definition: ADC.h:208
The definition of a ADC function table that contains the required set of functions to control a speci...
Definition: ADC.h:235
ADC_CloseFxn closeFxn
Definition: ADC.h:237
struct ADC_Config ADC_Config
ADC Global configuration.
ADC_ConvertRawToMicroVolts convertRawToMicroVolts
Definition: ADC.h:246
struct ADC_Config * ADC_Handle
A handle that is returned from a ADC_open() call.
Definition: ADC.h:174
void(* ADC_InitFxn)(ADC_Handle handle)
A function pointer to a driver specific implementation of ADC_init().
Definition: ADC.h:221
int_fast16_t(* ADC_ControlFxn)(ADC_Handle handle, uint_fast16_t cmd, void *arg)
A function pointer to a driver specific implementation of ADC_control().
Definition: ADC.h:200
struct ADC_Params ADC_Params
ADC Parameters.
void ADC_close(ADC_Handle handle)
Function to close a ADC driver.
struct ADC_FxnTable ADC_FxnTable
The definition of a ADC function table that contains the required set of functions to control a speci...
uint32_t(* ADC_ConvertRawToMicroVolts)(ADC_Handle handle, uint16_t rawAdcValue)
A function pointer to a driver specific implementation of ADC_convertRawToMicroVolts().
Definition: ADC.h:214
void * custom
Definition: ADC.h:186