169 #ifndef ti_drivers_Timer__include 170 #define ti_drivers_Timer__include 190 #define Timer_CMD_RESERVED (32) 203 #define Timer_STATUS_RESERVED (-32) 208 #define Timer_STATUS_SUCCESS (0) 213 #define Timer_STATUS_ERROR (-1) 222 #define Timer_STATUS_UNDEFINEDCMD (-2) 328 uint_fast16_t cmd,
void *arg);
360 Timer_PeriodUnits periodUnits, uint32_t period);
458 extern int_fast16_t
Timer_control(Timer_Handle handle, uint_fast16_t cmd,
538 extern int32_t
Timer_setPeriod(Timer_Handle handle, Timer_PeriodUnits periodUnits, uint32_t period);
Timer_FxnTable const * fxnTablePtr
Definition: Timer.h:418
Timer_Handle(* Timer_OpenFxn)(Timer_Handle handle, Timer_Params *params)
A function pointer to a driver specific implementation of Timer_open().
Definition: Timer.h:352
Timer_CallBackFxn timerCallback
Definition: Timer.h:317
Timer_PeriodUnits
Timer period unit enum.
Definition: Timer.h:282
Timer_InitFxn initFxn
Definition: Timer.h:390
Timer_CloseFxn closeFxn
Definition: Timer.h:381
Timer_PeriodUnits periodUnits
Definition: Timer.h:313
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:424
void Timer_Params_init(Timer_Params *params)
Function to initialize the Timer_Params struct to its defaults.
Timer Global configuration.
Definition: Timer.h:416
uint32_t(* Timer_GetCountFxn)(Timer_Handle handle)
A function pointer to a driver specific implementation of Timer_getCount().
Definition: Timer.h:340
Timer_StopFxn stopFxn
Definition: Timer.h:402
int32_t Timer_setPeriod(Timer_Handle handle, Timer_PeriodUnits periodUnits, uint32_t period)
Function to set the period of the timer module after it has been opened.
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:366
int32_t(* Timer_SetPeriodFxn)(Timer_Handle handle, Timer_PeriodUnits periodUnits, uint32_t period)
A function pointer to a driver specific implementation of Timer_setPeriod().
Definition: Timer.h:359
void(* Timer_CloseFxn)(Timer_Handle handle)
A function pointer to a driver specific implementation of Timer_close().
Definition: Timer.h:334
void * object
Definition: Timer.h:421
Timer_SetPeriodFxn setPeriodFxn
Definition: Timer.h:396
void(* Timer_StopFxn)(Timer_Handle handle)
A function pointer to a driver specific implementation of Timer_stop().
Definition: Timer.h:372
Timer_GetCountFxn getCountFxn
Definition: Timer.h:387
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:393
Timer_ControlFxn controlFxn
Definition: Timer.h:384
Timer Parameters.
Definition: Timer.h:308
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:239
The definition of a timer function table that contains the required set of functions to control a spe...
Definition: Timer.h:379
uint32_t period
Definition: Timer.h:320
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:327
Timer_StartFxn startFxn
Definition: Timer.h:399
void(* Timer_CallBackFxn)(Timer_Handle handle)
Timer callback function.
Definition: Timer.h:299
void(* Timer_InitFxn)(Timer_Handle handle)
A function pointer to a driver specific implementation of Timer_init().
Definition: Timer.h:346
Timer_Mode timerMode
Definition: Timer.h:310
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:227