![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
IXP425 Timers (IxTimersCodelet) APIIXP425 Timer component API.
More... |
Typedefs | |
typedef void(* | IxTimerIsr )(void *arg) |
Timer callback prototype. | |
Enumerations | |
enum | IxTimerId { IX_TIMER_1, IX_TIMER_2, IX_TIMER_WDOG, IX_TIMER_TS, IX_TIMER_PMU, IX_TIMER_MAX } |
Hardware timers. More... | |
Functions | |
PUBLIC IX_STATUS | ixTimerInit (BOOL recoverFromLostStatus) |
Initialise the Timer API. | |
PUBLIC IX_STATUS | ixTimerBind (IxTimerId timer, IxTimerIsr isr, void *arg) |
Initialise a Timer. | |
PUBLIC IX_STATUS | ixTimerEnable (IxTimerId timer, UINT32 downCounter, BOOL oneShot) |
Enable a Timer. | |
PUBLIC IX_STATUS | ixTimerDisable (IxTimerId timer) |
Disable a Timer. | |
PUBLIC IX_STATUS | ixTimerDownCounterGet (IxTimerId timer, UINT32 *downCounter) |
Get the remaining time of a timer. | |
PUBLIC IX_STATUS | ixTimerUnbind (IxTimerId timer) |
Unregister a Timer. | |
PUBLIC void | ixTimerShow (void) |
Show internal counters. | |
PUBLIC IX_STATUS | ixTimerMemMap (void) |
Maps the timer address space. | |
PUBLIC void | ixTimerMemUnmap (void) |
Unmaps the timer address space. |
These utilities provide support for enabling, triggering and disabling timers
|
Timer callback prototype.
Definition at line 105 of file IxTimersCodelet.h. |
|
Hardware timers.
Definition at line 88 of file IxTimersCodelet.h. |
|
Initialise a Timer. This function is called to initialise one of the timers
|
|
Disable a Timer. This function is called to disable a timer
|
|
Get the remaining time of a timer. This function is called to get the remaining time before the next interrupt triggers If this function is used after a timer expires, the result is a negative value. Its unsigned representation is a number close to 0xfffff.....
|
|
Enable a Timer. This function is called to enable a timer
|
|
Initialise the Timer API. This function must be called before and other IxTimer function. It sets up internal data structures.
|
|
Maps the timer address space. This function is called in order to map the physical address space for the timer to virtual adress space
|
|
Unmaps the timer address space. This function is called in order to unmap the physical address space for the timer
|
|
Show internal counters. This function is called to show the internal counters icremented when Lost Status workaround is needed.
|
|
Unregister a Timer. This function is called to unregister a timer
|