169 #ifndef ti_drivers_Timer__include 170 #define ti_drivers_Timer__include 174 #include <ti/drivers/dpl/HwiP.h> 175 #include <ti/drivers/dpl/SemaphoreP.h> 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) 330 #define TIMER_BASE_OBJECT \ 333 Timer_CallBackFxn callBack; \ 334 Power_NotifyObj notifyObj; \ 337 uint32_t prescaler; \ 340 HwiP_Handle hwiHandle; \ 341 SemaphoreP_Struct semStruct; \ 342 SemaphoreP_Handle semHandle; \ 359 #define TIMER_BASE_HWATTRS \ 361 uint32_t baseAddress; \ 365 uint32_t intPriority; 436 extern int_fast16_t
Timer_control(Timer_Handle handle, uint_fast16_t cmd,
void *arg);
513 extern int32_t
Timer_setPeriod(Timer_Handle handle, Timer_PeriodUnits periodUnits, uint32_t period);
ADC_Params params
Definition: Driver_Init.h:11
Timer_CallBackFxn timerCallback
Definition: Timer.h:323
Timer_PeriodUnits
Timer period unit enum.
Definition: Timer.h:286
Timer_PeriodUnits periodUnits
Definition: Timer.h:319
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. This function will go through all available hardware resources and ma...
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:389
void(* Timer_CallBackFxn)(Timer_Handle handle, int_fast16_t status)
Timer callback function.
Definition: Timer.h:304
int32_t Timer_setPeriod(Timer_Handle handle, Timer_PeriodUnits periodUnits, uint32_t period)
Function to set the period of a timer after it has been opened.
void Timer_close(Timer_Handle handle)
Function to close a timer. The corresponding timer becomes an available timer resource.
void * object
Definition: Timer.h:392
int_fast16_t Timer_control(Timer_Handle handle, uint_fast16_t cmd, void *arg)
Function performs device-specific features on a given timer.
uint32_t Timer_getCount(Timer_Handle handle)
Function to get the current count of a timer. The value returned represents timer counts...
Timer Parameters.
Definition: Timer.h:313
void Timer_stop(Timer_Handle handle)
Function to stop a timer. If the timer is already stopped this function has no effect.
Timer_Mode
Timer mode settings.
Definition: Timer.h:242
uint32_t period
Definition: Timer.h:326
Timer_Mode timerMode
Definition: Timer.h:316
int32_t Timer_start(Timer_Handle handle)
Function to start a timer.
struct Timer_Config_ * Timer_Handle
A handle that is returned from a Timer_open() call.
Definition: Timer.h:230