111 #ifndef ti_drivers_ADC__include 112 #define ti_drivers_ADC__include 139 #define ADC_CMD_RESERVED (32) 153 #define ADC_STATUS_RESERVED (-32) 163 #define ADC_STATUS_SUCCESS (0) 171 #define ADC_STATUS_ERROR (-1) 180 #define ADC_STATUS_UNDEFINEDCMD (-2) 247 uint16_t rawAdcValue);
317 extern void ADC_close(ADC_Handle handle);
338 extern int_fast16_t
ADC_control(ADC_Handle handle, uint_fast16_t cmd,
358 extern int_fast16_t
ADC_convert(ADC_Handle handle, uint16_t *value);
375 uint16_t rawAdcValue);
bool isProtected
Definition: ADC.h:214
ADC Global configuration.
Definition: ADC.h:297
ADC_ConvertFxn convertFxn
Definition: ADC.h:274
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_ControlFxn controlFxn
Definition: ADC.h:271
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.
void ADC_Params_init(ADC_Params *params)
Function to initialize the ADC_Params struct to its defaults.
ADC_OpenFxn openFxn
Definition: ADC.h:283
ADC_Handle(* ADC_OpenFxn)(ADC_Handle handle, ADC_Params *params)
A function pointer to a driver specific implementation of ADC_open().
Definition: ADC.h:259
ADC_FxnTable const * fxnTablePtr
Definition: ADC.h:299
ADC Parameters.
Definition: ADC.h:211
void(* ADC_CloseFxn)(ADC_Handle handle)
A function pointer to a driver specific implementation of ADC_close().
Definition: ADC.h:227
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:305
void * custom
Definition: ADC.h:212
The definition of a ADC function table that contains the required set of functions to control a speci...
Definition: ADC.h:266
ADC_CloseFxn closeFxn
Definition: ADC.h:268
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:240
struct ADC_Config_ ADC_Config
ADC Global configuration.
ADC_ConvertRawToMicroVolts convertRawToMicroVolts
Definition: ADC.h:277
void * object
Definition: ADC.h:302
ADC_InitFxn initFxn
Definition: ADC.h:280
struct ADC_Config_ * ADC_Handle
A handle that is returned from a ADC_open() call.
Definition: ADC.h:200
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:253
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:233
void ADC_close(ADC_Handle handle)
Function to close a ADC driver.
uint32_t(* ADC_ConvertRawToMicroVolts)(ADC_Handle handle, uint16_t rawAdcValue)
A function pointer to a driver specific implementation of ADC_convertRawToMicroVolts().
Definition: ADC.h:246