166 #ifndef ti_drivers_Capture__include 167 #define ti_drivers_Capture__include 187 #define Capture_CMD_RESERVED (32) 200 #define Capture_STATUS_RESERVED (-32) 205 #define Capture_STATUS_SUCCESS (0) 210 #define Capture_STATUS_ERROR (-1) 219 #define Capture_STATUS_UNDEFINEDCMD (-2) 298 uint_fast16_t cmd,
void *arg);
404 extern int_fast16_t
Capture_control(Capture_Handle handle, uint_fast16_t cmd,
484 #define CAPTURE_CMD_RESERVED Capture_CMD_RESERVED 485 #define CAPTURE_STATUS_RESERVED Capture_STATUS_RESERVED 486 #define CAPTURE_STATUS_SUCCESS Capture_STATUS_SUCCESS 487 #define CAPTURE_STATUS_ERROR Capture_STATUS_ERROR 488 #define CAPTURE_STATUS_UNDEFINEDCMD Capture_STATUS_UNDEFINEDCMD 489 #define CAPTURE_MODE_RISING_RISING Capture_RISING_EDGE 490 #define CAPTURE_MODE_FALLING_FALLING Capture_FALLING_EDGE 491 #define CAPTURE_MODE_ANY_EDGE Capture_ANY_EDGE 492 #define CAPTURE_PERIOD_US Capture_PERIOD_US 493 #define CAPTURE_PERIOD_HZ Capture_PERIOD_HZ 494 #define CAPTURE_PERIOD_COUNTS Capture_PERIOD_COUNTS 495 #define Capture_Period_Unit Capture_PeriodUnits struct Capture_FxnTable_ Capture_FxnTable
The definition of a capture function table that contains the required set of functions to control a s...
void Capture_stop(Capture_Handle handle)
Function to stop a capture instance. If the capture instance is already stopped, this function has no...
Capture_OpenFxn openFxn
Definition: Capture.h:341
Capture Global configuration.
Definition: Capture.h:361
Definition: Capture.h:236
Capture_Handle(* Capture_OpenFxn)(Capture_Handle handle, Capture_Params *params)
A function pointer to a driver specific implementation of Capture_open().
Definition: Capture.h:310
void(* Capture_CloseFxn)(Capture_Handle handle)
A function pointer to a driver specific implementation of Capture_close().
Definition: Capture.h:291
Capture Parameters.
Definition: Capture.h:276
Capture_Mode_
Capture mode settings.
Definition: Capture.h:233
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...
enum Capture_Mode_ Capture_Mode
Capture mode settings.
enum Capture_PeriodUnits_ Capture_PeriodUnits
Capture period unit enum.
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:367
Capture_CallBackFxn callbackFxn
Definition: Capture.h:281
Capture_StartFxn startFxn
Definition: Capture.h:344
Definition: Capture.h:234
void Capture_Params_init(Capture_Params *params)
Function to initialize the Capture_Params struct to its defaults.
Capture_PeriodUnits periodUnit
Definition: Capture.h:284
struct Capture_Params_ Capture_Params
Capture Parameters.
Capture_CloseFxn closeFxn
Definition: Capture.h:332
void const * hwAttrs
Definition: Capture.h:370
int_fast16_t Capture_control(Capture_Handle handle, uint_fast16_t cmd, void *arg)
Function performs implementation specific features on a given Capture_Handle.
Capture_ControlFxn controlFxn
Definition: Capture.h:335
struct Capture_Config_ * Capture_Handle
A handle that is returned from a Capture_open() call.
Definition: Capture.h:224
Definition: Capture.h:250
void(* Capture_InitFxn)(Capture_Handle handle)
A function pointer to a driver specific implementation of Capture_init().
Definition: Capture.h:304
Definition: Capture.h:248
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:297
void(* Capture_CallBackFxn)(Capture_Handle handle, uint32_t interval)
Capture callback function.
Definition: Capture.h:267
Capture_PeriodUnits_
Capture period unit enum.
Definition: Capture.h:246
The definition of a capture function table that contains the required set of functions to control a s...
Definition: Capture.h:330
Capture_FxnTable const * fxnTablePtr
Definition: Capture.h:364
Capture_Mode mode
Definition: Capture.h:278
Capture_StopFxn stopFxn
Definition: Capture.h:347
Capture_InitFxn initFxn
Definition: Capture.h:338
void(* Capture_StopFxn)(Capture_Handle handle)
A function pointer to a driver specific implementation of Capture_stop().
Definition: Capture.h:323
Definition: Capture.h:247
Definition: Capture.h:235
int32_t(* Capture_StartFxn)(Capture_Handle handle)
A function pointer to a driver specific implementation of Capture_start().
Definition: Capture.h:317
void Capture_close(Capture_Handle handle)
Function to close a capture driver instance. The corresponding timer peripheral to Capture_handle bec...