|
Page date Wed Feb 16 12:47:57 2011 . | Improve this page |
OSTimer
Description
Initialize the internal members with the given array.
Parameters
:* *pArray - input, the array of timeouts which are going to be used
:* size - input, the size of pArray
==OSEventWaitReturn_t sleep(OSTimerTicks_t ticks, OSEvent_t event = 0)== Description
Put a task to sleep for the given number of ticks. If the given event is not null, when the timeout expires, it is notified. Else the task is resumed.
Parameters
:* ticks - input, the number of ticks while the current task is put to sleep
:* event - input, the event which should be notified when the sleep expires, if present and not null
Return value
:* OSEventWaitReturn::OS_VOID - if normal execution
:* OSEventWaitReturn::OS_IMMEDIATELY - if no sleep is required (ticks input parameter is null)
Description
Schedule the timer to notify the event after the number of ticks. If the event is OSEvent::OS_CUSTOM_TIMER, the ret value is the address of the custom timer.
Parameters
:* ticks - input, the number of ticks after which the event is notified
:* event - input, the event which is notified when the ticks expires
:* ret - input, it is the address of the custom timer; used only if the event is OSEvent::OS_CUSTOM_TIMER
Return value
:* none
Description
Remove the scheduled timer notifications associated with the given event.
Parameters
:* event - input, the event which is associated with the scheduled timer notifications
Return value
:* n - the number of removed scheduled timer notifications
Description
Return the current number of ticks.
Parameters
:* none
Return value
:* n - the current number of ticks
Description
Return the number of scheduled timers.
Parameters
:* none
Return value
:* n - the current number of scheduled timers
Description
Update and notify the scheduled time events. It is called from the interrupt routine.
Parameters
:* none.
Return value
:* none
Description
Update the current ticks number. This function is called from the interrupt routine.
Parameters
:* none
Return value
:* none