132 #ifndef ti_drivers_Capture__include 133 #define ti_drivers_Capture__include 153 #define Capture_CMD_RESERVED (32) 166 #define Capture_STATUS_RESERVED (-32) 171 #define Capture_STATUS_SUCCESS (0) 176 #define Capture_STATUS_ERROR (-1) 185 #define Capture_STATUS_UNDEFINEDCMD (-2) 274 uint_fast16_t cmd,
void *arg);
380 extern int_fast16_t
Capture_control(Capture_Handle handle, uint_fast16_t cmd,
Definition: Capture.h:210
Definition: Capture.h:227
void Capture_stop(Capture_Handle handle)
Function to stop a capture instance. If the capture instance is already stopped, this function has no...
Capture_Mode
Capture mode settings.
Definition: Capture.h:202
Capture Global configuration.
Definition: Capture.h:337
Capture_StopFxn stopFxn
Definition: Capture.h:323
Capture_Handle(* Capture_OpenFxn)(Capture_Handle handle, Capture_Params *params)
A function pointer to a driver specific implementation of Capture_open().
Definition: Capture.h:286
void(* Capture_CloseFxn)(Capture_Handle handle)
A function pointer to a driver specific implementation of Capture_close().
Definition: Capture.h:267
Definition: Capture.h:207
Capture_Handle Capture_open(uint_least8_t index, Capture_Params *params)
Function to open a given capture instance specified by the index argument. The Capture_Params specifi...
struct Capture_Config_ Capture_Config
Capture Global configuration.
int32_t Capture_start(Capture_Handle handle)
Function to start the capture instance.
void Capture_init(void)
Function to initialize the capture driver. This function will go through all available hardware resou...
void * object
Definition: Capture.h:343
Capture_OpenFxn openFxn
Definition: Capture.h:317
void Capture_Params_init(Capture_Params *params)
Function to initialize the Capture_Params struct to its defaults.
Capture_CallBackFxn callbackFxn
Definition: Capture.h:257
Capture_PeriodUnits
Capture period unit enum.
Definition: Capture.h:221
Definition: Capture.h:203
void const * hwAttrs
Definition: Capture.h:346
int_fast16_t Capture_control(Capture_Handle handle, uint_fast16_t cmd, void *arg)
Function performs implementation specific features on a given Capture_Handle.
Definition: Capture.h:222
struct Capture_Config_ * Capture_Handle
A handle that is returned from a Capture_open() call.
Definition: Capture.h:190
Definition: Capture.h:223
Definition: Capture.h:205
void(* Capture_InitFxn)(Capture_Handle handle)
A function pointer to a driver specific implementation of Capture_init().
Definition: Capture.h:280
Definition: Capture.h:204
Capture_Mode mode
Definition: Capture.h:254
int_fast16_t(* Capture_ControlFxn)(Capture_Handle handle, uint_fast16_t cmd, void *arg)
A function pointer to a driver specific implementation of Capture_control().
Definition: Capture.h:273
void(* Capture_CallBackFxn)(Capture_Handle handle, uint32_t interval)
Capture callback function.
Definition: Capture.h:243
Capture_PeriodUnits periodUnit
Definition: Capture.h:260
Capture_FxnTable const * fxnTablePtr
Definition: Capture.h:340
Capture_StartFxn startFxn
Definition: Capture.h:320
void(* Capture_StopFxn)(Capture_Handle handle)
A function pointer to a driver specific implementation of Capture_stop().
Definition: Capture.h:299
The definition of a capture function table that contains the required set of functions to control a s...
Definition: Capture.h:306
Capture_CloseFxn closeFxn
Definition: Capture.h:308
Capture_ControlFxn controlFxn
Definition: Capture.h:311
Capture_InitFxn initFxn
Definition: Capture.h:314
int32_t(* Capture_StartFxn)(Capture_Handle handle)
A function pointer to a driver specific implementation of Capture_start().
Definition: Capture.h:293
Definition: Capture.h:225
Capture Parameters.
Definition: Capture.h:252
void Capture_close(Capture_Handle handle)
Function to close a capture driver instance. The corresponding timer peripheral to Capture_handle bec...