112 #ifndef ti_drivers_ADC__include   113 #define ti_drivers_ADC__include   127 #define ADC_convertRawToMicroVolts ADC_convertToMicroVolts   146 #define ADC_CMD_RESERVED           (32)   160 #define ADC_STATUS_RESERVED        (-32)   170 #define ADC_STATUS_SUCCESS         (0)   178 #define ADC_STATUS_ERROR           (-1)   187 #define ADC_STATUS_UNDEFINEDCMD    (-2)   324 extern void ADC_close(ADC_Handle handle);
   345 extern int_fast16_t 
ADC_control(ADC_Handle handle, uint_fast16_t cmd,
   365 extern int_fast16_t 
ADC_convert(ADC_Handle handle, uint16_t *value);
 bool isProtected
Definition: ADC.h:221
ADC Global configuration. 
Definition: ADC.h:304
ADC_ConvertFxn convertFxn
Definition: ADC.h:281
int_fast16_t ADC_convert(ADC_Handle handle, uint16_t *value)
Function to perform ADC conversion. 
ADC_ControlFxn controlFxn
Definition: ADC.h:278
struct ADC_FxnTable_ ADC_FxnTable
The definition of a ADC function table that contains the required set of functions to control a speci...
void ADC_init(void)
Function to initializes the ADC driver. 
uint32_t ADC_convertToMicroVolts(ADC_Handle handle, uint16_t adcValue)
Function performs conversion from ADC result to actual value in microvolts. 
void ADC_Params_init(ADC_Params *params)
Function to initialize the ADC_Params struct to its defaults. 
ADC_OpenFxn openFxn
Definition: ADC.h:290
ADC_Handle(* ADC_OpenFxn)(ADC_Handle handle, ADC_Params *params)
A function pointer to a driver specific implementation of ADC_open(). 
Definition: ADC.h:266
ADC_FxnTable const  * fxnTablePtr
Definition: ADC.h:306
ADC Parameters. 
Definition: ADC.h:218
void(* ADC_CloseFxn)(ADC_Handle handle)
A function pointer to a driver specific implementation of ADC_close(). 
Definition: ADC.h:234
int_fast16_t ADC_control(ADC_Handle handle, uint_fast16_t cmd, void *arg)
Function performs implementation specific features on a given ADC_Handle. 
ADC_Handle ADC_open(uint_least8_t index, ADC_Params *params)
Function to initialize the ADC peripheral. 
void const  * hwAttrs
Definition: ADC.h:312
void * custom
Definition: ADC.h:219
The definition of a ADC function table that contains the required set of functions to control a speci...
Definition: ADC.h:273
ADC_CloseFxn closeFxn
Definition: ADC.h:275
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:247
struct ADC_Config_ ADC_Config
ADC Global configuration. 
uint32_t(* ADC_ConvertToMicroVoltsFxn)(ADC_Handle handle, uint16_t adcValue)
A function pointer to a driver specific implementation of ADC_convertToMicroVolts(). 
Definition: ADC.h:253
ADC_ConvertToMicroVoltsFxn convertToMicroVolts
Definition: ADC.h:284
void * object
Definition: ADC.h:309
ADC_InitFxn initFxn
Definition: ADC.h:287
struct ADC_Config_ * ADC_Handle
A handle that is returned from a ADC_open() call. 
Definition: ADC.h:207
struct ADC_Params_ ADC_Params
ADC Parameters. 
void(* ADC_InitFxn)(ADC_Handle handle)
A function pointer to a driver specific implementation of ADC_init(). 
Definition: ADC.h:260
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:240
void ADC_close(ADC_Handle handle)
Function to close a ADC driver.