197 #ifndef ti_drivers_Comparator__include 198 #define ti_drivers_Comparator__include 223 #define Comparator_STATUS_RESERVED (-32) 229 #define Comparator_STATUS_SUCCESS (0) 235 #define Comparator_STATUS_ERROR (-1) Comparator_OpenFxn openFxn
Definition: Comparator.h:406
void Comparator_init(void)
Function to initialize the Comparator driver.
ADC_Params params
Definition: Driver_Init.h:11
The definition of a comparator function table that contains the required set of functions to control ...
Definition: Comparator.h:391
Comparator_Trigger
Comparator interrupt trigger.
Definition: Comparator.h:272
struct Comparator_Config * Comparator_Handle
A handle that is returned from a Comparator_open() call.
Definition: Comparator.h:241
Comparator_CloseFxn closeFxn
Definition: Comparator.h:394
void(* Comparator_CloseFxn)(Comparator_Handle handle)
A function pointer to a driver specific implementation of Comparator_close().
Definition: Comparator.h:342
Comparator driver's custom configuration structure.
Definition: Comparator.h:424
Definition: Comparator.h:255
Definition: Comparator.h:251
Comparator_OutputLevel
Comparator output level.
Definition: Comparator.h:249
void(* Comparator_StopFxn)(Comparator_Handle handle)
A function pointer to a driver specific implementation of Comparator_stop().
Definition: Comparator.h:384
Comparator_InitFxn initFxn
Definition: Comparator.h:403
Comparator_OutputLevel(* Comparator_GetLevelFxn)(Comparator_Handle handle)
A function pointer to a driver specific implementation of Comparator_getLevel().
Definition: Comparator.h:348
Comparator_Trigger Comparator_getTrigger(Comparator_Handle handle)
Function to get the interrupt trigger of the comparator instance.
void Comparator_close(Comparator_Handle handle)
Function to close a Comparator driver instance.
Comparator_Handle(* Comparator_OpenFxn)(Comparator_Handle handle, Comparator_Params *params)
A function pointer to a driver specific implementation of Comparator_open().
Definition: Comparator.h:366
Comparator_GetLevelFxn getLevelFxn
Definition: Comparator.h:397
int_fast16_t Comparator_start(Comparator_Handle handle)
Function to start the comparator instance.
Comparator_setTriggerFxn setTriggerFxn
Definition: Comparator.h:409
Definition: Comparator.h:259
Comparator_Trigger(* Comparator_getTriggerFxn)(Comparator_Handle handle)
A function pointer to a driver specific implementation of Comparator_getLevel().
Definition: Comparator.h:354
Comparator_getTriggerFxn getTriggerFxn
Definition: Comparator.h:400
Comparator_FxnTable const * fxnTablePtr
Definition: Comparator.h:428
struct Comparator_Config Comparator_Config
Comparator driver's custom configuration structure.
Definition: Comparator.h:274
void Comparator_stop(Comparator_Handle handle)
Function to stop a comparator instance. If the comparator instance is already stopped this function h...
const Comparator_Config Comparator_config[]
void Comparator_Params_init(Comparator_Params *params)
Initialize an Comparator_Params structure to its default values.
int_fast16_t(* Comparator_setTriggerFxn)(Comparator_Handle handle, Comparator_Trigger trigger)
A function pointer to a driver specific implementation of Comparator_open().
Definition: Comparator.h:372
Definition: Comparator.h:277
void const * hwAttrs
Definition: Comparator.h:435
Comparator_OutputLevel Comparator_getLevel(Comparator_Handle handle)
Function which returns the level of the comparator output.
Comparator_Handle Comparator_open(uint32_t index, Comparator_Params *params)
Function to initialize the Comparator peripheral.
void(* Comparator_CallBackFxn)(Comparator_Handle handle, int_fast16_t returnValue, Comparator_Trigger trigger)
Comparator callback function.
Definition: Comparator.h:320
Comparator_StartFxn startFxn
Definition: Comparator.h:412
int_fast16_t(* Comparator_StartFxn)(Comparator_Handle handle)
A function pointer to a driver specific implementation of Comparator_start().
Definition: Comparator.h:378
Definition: Comparator.h:280
Comparator parameters.
Definition: Comparator.h:329
void(* Comparator_InitFxn)(Comparator_Handle handle)
A function pointer to a driver specific implementation of Comparator_init().
Definition: Comparator.h:360
void * object
Definition: Comparator.h:431
Comparator_StopFxn stopFxn
Definition: Comparator.h:415
Comparator_CallBackFxn callbackFxn
Definition: Comparator.h:332
Comparator_Trigger trigger
Definition: Comparator.h:335
int_fast16_t Comparator_setTrigger(Comparator_Handle handle, Comparator_Trigger trigger)
Function to set at run-time the interrupt trigger.