172 #ifndef ti_drivers_Timer__include 173 #define ti_drivers_Timer__include 193 #define Timer_CMD_RESERVED (32) 206 #define Timer_STATUS_RESERVED (-32) 211 #define Timer_STATUS_SUCCESS (0) 216 #define Timer_STATUS_ERROR (-1) 225 #define Timer_STATUS_UNDEFINEDCMD (-2) 331 uint_fast16_t cmd,
void *arg);
451 extern int_fast16_t
Timer_control(Timer_Handle handle, uint_fast16_t cmd,
Timer_FxnTable const * fxnTablePtr
Definition: Timer.h:411
Timer_Handle(* Timer_OpenFxn)(Timer_Handle handle, Timer_Params *params)
A function pointer to a driver specific implementation of Timer_open().
Definition: Timer.h:355
Timer_CallBackFxn timerCallback
Definition: Timer.h:320
Timer_PeriodUnits
Timer period unit enum.
Definition: Timer.h:285
Timer_InitFxn initFxn
Definition: Timer.h:386
Timer_CloseFxn closeFxn
Definition: Timer.h:377
Timer_PeriodUnits periodUnits
Definition: Timer.h:316
Timer_Handle Timer_open(uint_least8_t index, Timer_Params *params)
Function to initialize a given timer peripheral specified by the index argument. The Timer_Params spe...
void Timer_init(void)
Function to initialize a timer module. This function will go through all available hardware resources...
struct Timer_Config_ Timer_Config
Timer Global configuration.
void const * hwAttrs
Definition: Timer.h:417
void Timer_Params_init(Timer_Params *params)
Function to initialize the Timer_Params struct to its defaults.
Timer Global configuration.
Definition: Timer.h:409
uint32_t(* Timer_GetCountFxn)(Timer_Handle handle)
A function pointer to a driver specific implementation of Timer_getCount().
Definition: Timer.h:343
Timer_StopFxn stopFxn
Definition: Timer.h:395
void Timer_close(Timer_Handle handle)
Function to close a timer. The corresponding timer to the Timer_Handle becomes an available timer res...
int32_t(* Timer_StartFxn)(Timer_Handle handle)
A function pointer to a driver specific implementation of Timer_start().
Definition: Timer.h:362
void(* Timer_CloseFxn)(Timer_Handle handle)
A function pointer to a driver specific implementation of Timer_close().
Definition: Timer.h:337
void * object
Definition: Timer.h:414
void(* Timer_StopFxn)(Timer_Handle handle)
A function pointer to a driver specific implementation of Timer_stop().
Definition: Timer.h:368
Timer_GetCountFxn getCountFxn
Definition: Timer.h:383
int_fast16_t Timer_control(Timer_Handle handle, uint_fast16_t cmd, void *arg)
Function performs device specific features on a given Timer_Handle.
uint32_t Timer_getCount(Timer_Handle handle)
Function to get the current count of a timer. The value returned represents timer counts...
Timer_OpenFxn openFxn
Definition: Timer.h:389
Timer_ControlFxn controlFxn
Definition: Timer.h:380
Timer Parameters.
Definition: Timer.h:311
void Timer_stop(Timer_Handle handle)
Function to stop timer. If the timer is already stopped, this function has no effect.
Timer_Mode
Timer mode settings.
Definition: Timer.h:242
The definition of a timer function table that contains the required set of functions to control a spe...
Definition: Timer.h:375
uint32_t period
Definition: Timer.h:323
int_fast16_t(* Timer_ControlFxn)(Timer_Handle handle, uint_fast16_t cmd, void *arg)
A function pointer to a driver specific implementation of Timer_control().
Definition: Timer.h:330
Timer_StartFxn startFxn
Definition: Timer.h:392
void(* Timer_CallBackFxn)(Timer_Handle handle)
Timer callback function.
Definition: Timer.h:302
void(* Timer_InitFxn)(Timer_Handle handle)
A function pointer to a driver specific implementation of Timer_init().
Definition: Timer.h:349
Timer_Mode timerMode
Definition: Timer.h:313
int32_t Timer_start(Timer_Handle handle)
Function to start the timer.
struct Timer_Config_ * Timer_Handle
A handle that is returned from a Timer_open() call.
Definition: Timer.h:230