179 #ifndef ti_drivers_Timer__include 180 #define ti_drivers_Timer__include 200 #define Timer_CMD_RESERVED (32) 213 #define Timer_STATUS_RESERVED (-32) 218 #define Timer_STATUS_SUCCESS (0) 223 #define Timer_STATUS_ERROR (-1) 232 #define Timer_STATUS_UNDEFINEDCMD (-2) 309 uint_fast16_t cmd,
void *arg);
429 extern int_fast16_t
Timer_control(Timer_Handle handle, uint_fast16_t cmd,
531 #define TIMER_CMD_RESERVED Timer_CMD_RESERVED 532 #define TIMER_STATUS_RESERVED Timer_STATUS_RESERVED 533 #define TIMER_STATUS_SUCCESS Timer_STATUS_SUCCESS 534 #define TIMER_STATUS_ERROR Timer_STATUS_ERROR 535 #define TIMER_STATUS_UNDEFINEDCMD Timer_STATUS_UNDEFINEDCMD 536 #define TIMER_ONESHOT_CB Timer_ONESHOT_CALLBACK 537 #define TIMER_ONESHOT_BLOCK Timer_ONESHOT_BLOCKING 538 #define TIMER_CONTINUOUS_CB Timer_CONTINUOUS_CALLBACK 539 #define TIMER_MODE_FREE_RUNNING Timer_FREE_RUNNING 540 #define TIMER_PERIOD_US Timer_PERIOD_US 541 #define TIMER_PERIOD_HZ Timer_PERIOD_HZ 542 #define TIMER_PERIOD_COUNTS Timer_PERIOD_COUNTS 543 #define Timer_Period_Units Timer_PeriodUnits Timer_Mode timerMode
Definition: Timer.h:291
Timer_FxnTable const * fxnTablePtr
Definition: Timer.h:389
Timer_Handle(* Timer_OpenFxn)(Timer_Handle handle, Timer_Params *params)
A function pointer to a driver specific implementation of Timer_open().
Definition: Timer.h:333
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:289
The definition of a timer function table that contains the required set of functions to control a spe...
Definition: Timer.h:353
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...
Timer_Mode_
Timer mode settings.
Definition: Timer.h:244
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:395
void Timer_Params_init(Timer_Params *params)
Function to initialize the Timer_Params struct to its defaults.
Timer Global configuration.
Definition: Timer.h:387
Timer_OpenFxn openFxn
Definition: Timer.h:367
uint32_t(* Timer_GetCountFxn)(Timer_Handle handle)
A function pointer to a driver specific implementation of Timer_getCount().
Definition: Timer.h:321
enum Timer_Mode_ Timer_Mode
Timer mode settings.
Timer_CloseFxn closeFxn
Definition: Timer.h:355
Timer_PeriodUnits_
Timer period unit enum.
Definition: Timer.h:263
uint32_t period
Definition: Timer.h:301
Timer_PeriodUnits periodUnits
Definition: Timer.h:294
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:340
enum Timer_PeriodUnits_ Timer_PeriodUnits
Timer period unit enum.
Timer_StartFxn startFxn
Definition: Timer.h:370
Timer_GetCountFxn getCountFxn
Definition: Timer.h:361
void(* Timer_CloseFxn)(Timer_Handle handle)
A function pointer to a driver specific implementation of Timer_close().
Definition: Timer.h:315
void * object
Definition: Timer.h:392
void(* Timer_StopFxn)(Timer_Handle handle)
A function pointer to a driver specific implementation of Timer_stop().
Definition: Timer.h:346
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_ControlFxn controlFxn
Definition: Timer.h:358
void Timer_stop(Timer_Handle handle)
Function to stop timer. If the timer is already stopped, this function has no effect.
Timer_StopFxn stopFxn
Definition: Timer.h:373
struct Timer_Params_ Timer_Params
Timer Parameters.
Timer_InitFxn initFxn
Definition: Timer.h:364
Timer_CallBackFxn timerCallback
Definition: Timer.h:298
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:308
void(* Timer_CallBackFxn)(Timer_Handle handle)
Timer callback function.
Definition: Timer.h:280
void(* Timer_InitFxn)(Timer_Handle handle)
A function pointer to a driver specific implementation of Timer_init().
Definition: Timer.h:327
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:237