114 #ifndef ti_drivers_Timer__include
115 #define ti_drivers_Timer__include
140 #define TIMER_CMD_RESERVED (32)
154 #define TIMER_STATUS_RESERVED (-32)
162 #define TIMER_STATUS_SUCCESS (0)
170 #define TIMER_STATUS_ERROR (-1)
179 #define TIMER_STATUS_UNDEFINEDCMD (-2)
332 extern int_fast16_t
Timer_control(Timer_Handle handle, uint_fast16_t cmd,
Timer_Mode timerMode
Definition: Timer.h:233
Timer_FxnTable const * fxnTablePtr
Definition: Timer.h:308
Timer_Handle(* Timer_OpenFxn)(Timer_Handle handle, Timer_Params *params)
A function pointer to a driver specific implementation of Timer_open().
Definition: Timer.h:268
struct Timer_FxnTable_ Timer_FxnTable
The definition of a Timer function table that contains the required set of functions to control a spe...
Timer Parameters.
Definition: Timer.h:231
The definition of a Timer function table that contains the required set of functions to control a spe...
Definition: Timer.h:288
void(* Timer_StartFxn)(Timer_Handle handle)
A function pointer to a driver specific implementation of Timer_start().
Definition: Timer.h:275
Timer_Handle Timer_open(uint_least8_t index, Timer_Params *params)
Function to initialize a given Timer peripheral specified by the particular index value...
Timer_Mode_
Timer mode enum.
Definition: Timer.h:188
void Timer_init(void)
Function to initialize a timer module. This function will go through all available hardware resources...
struct Timer_Config_ Timer_Config
void const * hwAttrs
Definition: Timer.h:310
void Timer_Params_init(Timer_Params *params)
Function to initialize the Timer_Params struct to its defaults.
Timer_OpenFxn openFxn
Definition: Timer.h:299
uint32_t(* Timer_GetCountFxn)(Timer_Handle handle)
A function pointer to a driver specific implementation of Timer_getCount().
Definition: Timer.h:256
enum Timer_Mode_ Timer_Mode
Timer mode enum.
Timer_CloseFxn closeFxn
Definition: Timer.h:291
uint32_t period
Definition: Timer.h:236
void Timer_close(Timer_Handle handle)
Function to close a Timer peripheral specified by the Timer handle.
Timer_StartFxn startFxn
Definition: Timer.h:301
Timer_GetCountFxn getCountFxn
Definition: Timer.h:295
enum Timer_Period_Units_ Timer_Period_Units
Timer period unit enum.
void Timer_start(Timer_Handle handle)
Function to start Timer with the given period. The timer running mode and interval period unit are sp...
void(* Timer_CloseFxn)(Timer_Handle handle)
A function pointer to a driver specific implementation of Timer_close().
Definition: Timer.h:250
Timer_Period_Units periodUnits
Definition: Timer.h:234
void * object
Definition: Timer.h:309
void(* Timer_StopFxn)(Timer_Handle handle)
A function pointer to a driver specific implementation of Timer_stop().
Definition: Timer.h:281
int_fast16_t Timer_control(Timer_Handle handle, uint_fast16_t cmd, void *arg)
Function performs implementation specific features on a given Timer_Handle.
uint32_t Timer_getCount(Timer_Handle handle)
Function to get the current count of a started timer.
Timer_ControlFxn controlFxn
Definition: Timer.h:293
void Timer_stop(Timer_Handle handle)
Function to stop timer after Timer_start() is called with success.
Timer_StopFxn stopFxn
Definition: Timer.h:303
struct Timer_Params_ Timer_Params
Timer Parameters.
Timer_InitFxn initFxn
Definition: Timer.h:297
Timer_CallBackFxn timerCallback
Definition: Timer.h:235
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:243
void(* Timer_CallBackFxn)(Timer_Handle handle)
Timer callback function.
Definition: Timer.h:222
void(* Timer_InitFxn)(Timer_Handle handle)
A function pointer to a driver specific implementation of Timer_init().
Definition: Timer.h:262
Timer_Period_Units_
Timer period unit enum.
Definition: Timer.h:206
struct Timer_Config_ * Timer_Handle
A handle that is returned from a Timer_open() call.
Definition: Timer.h:127