112 #ifndef ti_drivers_ADC__include 113 #define ti_drivers_ADC__include 128 #define ADC_convertRawToMicroVolts ADC_convertToMicroVolts 147 #define ADC_CMD_RESERVED (32) 161 #define ADC_STATUS_RESERVED (-32) 171 #define ADC_STATUS_SUCCESS (0) 179 #define ADC_STATUS_ERROR (-1) 188 #define ADC_STATUS_UNDEFINEDCMD (-2) 325 extern void ADC_close(ADC_Handle handle);
346 extern int_fast16_t
ADC_control(ADC_Handle handle, uint_fast16_t cmd,
366 extern int_fast16_t
ADC_convert(ADC_Handle handle, uint16_t *value);
bool isProtected
Definition: ADC.h:222
ADC Global configuration.
Definition: ADC.h:305
ADC_ConvertFxn convertFxn
Definition: ADC.h:282
int_fast16_t ADC_convert(ADC_Handle handle, uint16_t *value)
Function to perform ADC conversion.
ADC_ControlFxn controlFxn
Definition: ADC.h:279
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:291
ADC_Handle(* ADC_OpenFxn)(ADC_Handle handle, ADC_Params *params)
A function pointer to a driver specific implementation of ADC_open().
Definition: ADC.h:267
ADC_FxnTable const * fxnTablePtr
Definition: ADC.h:307
ADC Parameters.
Definition: ADC.h:219
void(* ADC_CloseFxn)(ADC_Handle handle)
A function pointer to a driver specific implementation of ADC_close().
Definition: ADC.h:235
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:313
void * custom
Definition: ADC.h:220
The definition of a ADC function table that contains the required set of functions to control a speci...
Definition: ADC.h:274
ADC_CloseFxn closeFxn
Definition: ADC.h:276
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:248
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:254
ADC_ConvertToMicroVoltsFxn convertToMicroVolts
Definition: ADC.h:285
void * object
Definition: ADC.h:310
ADC_InitFxn initFxn
Definition: ADC.h:288
struct ADC_Config_ * ADC_Handle
A handle that is returned from a ADC_open() call.
Definition: ADC.h:208
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:261
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:241
void ADC_close(ADC_Handle handle)
Function to close a ADC driver.