NetBurner 3.5.0
PDF Version |
|
Microsecond Delay Class. More...
#include <HiResDelay.h>
Public Member Functions | |
DelayObject (int Timer=FIRST_UNUSED_TIMER) | |
Microsecond Delay Timer Constructor. | |
void | DelayUsec (uint32_t usec) |
Microsecond Delay Timer. | |
bool | valid () |
Verify a valid delay object was constructed. | |
Microsecond Delay Class.
Creates a high resolution microsecond timer object by allocating one a free processor system timer. Once the delay has expired, the system timer is releaed back to the free pool.
Example Usage:
DelayObject::DelayObject | ( | int | Timer = FIRST_UNUSED_TIMER | ) |
Microsecond Delay Timer Constructor.
Timer | Optional parameter to select a specific time. Recommend use is the to not specify a timer so the first free timer will be used. |
void DelayObject::DelayUsec | ( | uint32_t | usec | ) |
Microsecond Delay Timer.
usec | The number of microseconds to delay |
|
inline |
Verify a valid delay object was constructed.
True | - A timer was correctly allocated and initialized |
False | - No free timers were available |