57 #ifndef ti_osal_TimerP__include 58 #define ti_osal_TimerP__include 71 #define TimerP_ANY (~(uint32_t)0u) 76 #define TimerP_MAX_PERIOD ((uint32_t)0xffffffffu) 81 #define TimerP_USE_DEFAULT (-(int32_t)1) 86 typedef struct TimerP_FreqHz_s {
94 typedef enum TimerP_Status_e {
106 typedef enum TimerP_PeriodType_e {
114 typedef enum TimerP_RunMode_e {
122 typedef enum TimerP_StartMode_e {
131 typedef enum TimerP_Timer64Mode_e {
141 typedef enum TimerP_Timer64Half_e {
170 typedef struct TimerP_Params_s {
191 #if defined (_TMS320C6X) uint32_t hi
Definition: TimerP.h:87
uint64_t TimerP_getTimeInUsecs(void)
Function to return current time in units of micro-secs.
void TimerP_Params_init(TimerP_Params *timerParams)
Initialize params structure to default values.
char * name
Definition: TimerP.h:171
int32_t intNum
Definition: TimerP.h:190
int32_t intfreqLo
Definition: TimerP.h:180
TimerP_Status
Status codes for TimerP APIs.
Definition: TimerP.h:94
uint32_t lo
Definition: TimerP.h:88
TimerP_Timer64Mode timerMode
Definition: TimerP.h:187
TimerP_Timer64Mode
Timer mode for 64 bit timers (KeyStone devices)
Definition: TimerP.h:131
void * TimerP_Handle
Opaque client reference to an instance of a TimerP.
Definition: TimerP.h:154
TimerP_Timer64Half
Timer half when 64 bit timer is split into two 32 bit timer (Keystone devices)
Definition: TimerP.h:141
uint32_t runMode
Definition: TimerP.h:185
int32_t extfreqLo
Definition: TimerP.h:176
void(* TimerP_Fxn)(uintptr_t arg)
Prototype for a TimerP function.
Definition: TimerP.h:159
void * arg
Definition: TimerP.h:194
int32_t intfreqHi
Definition: TimerP.h:182
TimerP_StartMode
Timer start modes for TimerP APIs.
Definition: TimerP.h:122
TimerP_Status TimerP_start(TimerP_Handle timerHandle)
Function to start a timer.
TimerP_Status TimerP_delete(TimerP_Handle timerHandle)
Function to delete a timer.
TimerP_Handle TimerP_create(int32_t id, TimerP_Fxn tickFxn, const TimerP_Params *timerParams)
Function to create a timer object.
TimerP_RunMode
Timer runtime modes for TimerP APIs.
Definition: TimerP.h:114
TimerP_Status TimerP_ClearInterrupt(TimerP_Handle timerHandle)
Function to clear the interrupt of the timer.
uint32_t startMode
Definition: TimerP.h:184
TimerP_Status TimerP_stop(TimerP_Handle timerHandle)
Function to stop a timer.
Frequency-in-hertz struct.
Definition: TimerP.h:86
Basic TimerP Parameters.
Definition: TimerP.h:170
int32_t extfreqHi
Definition: TimerP.h:178
TimerP_PeriodType
Timer period units for TimerP APIs.
Definition: TimerP.h:106
TimerP_Timer64Half timerHalf
Definition: TimerP.h:188
uint32_t periodType
Definition: TimerP.h:175
TimerP_Status TimerP_setPeriodMicroSecs(TimerP_Handle timerHandle, uint32_t microsecs)
Function to set timer period specified in micro seconds A best-effort method will be used to set the ...
uint32_t period
Definition: TimerP.h:186