NetBurner 3.5.8
PDF Version
Toggle main menu visibility
HiResDelay.h
1
/*NB_REVISION*/
2
3
/*NB_COPYRIGHT*/
4
13
143
144
#ifndef _NB_DELAY_TIMER_H
145
#define _NB_DELAY_TIMER_H
146
147
#include <constants.h>
148
#include <nbrtos.h>
149
215
class
DelayObject
216
{
217
private
:
222
OS_SEM
WakeObject;
223
228
int
TimerNumber;
229
234
void
*MiscHardwarePtr;
235
236
public
:
266
DelayObject
(
int
Timer = FIRST_UNUSED_TIMER);
267
277
~DelayObject
();
278
337
void
DelayUsec
(uint32_t usec);
338
385
bool
valid
() {
return
TimerNumber >= 0; }
386
399
inline
void
_wake
() { WakeObject.Post(); }
400
};
401
402
#endif
// _NB_DELAY_TIMER_H
403
// End of groupHighResDelayTimer
DelayObject::valid
bool valid()
Verify the delay object is valid and ready to use.
Definition
HiResDelay.h:385
DelayObject::DelayUsec
void DelayUsec(uint32_t usec)
Perform a blocking delay with microsecond precision.
DelayObject::DelayObject
DelayObject(int Timer=FIRST_UNUSED_TIMER)
Construct a high-resolution delay timer object.
DelayObject::_wake
void _wake()
Internal ISR callback to wake blocked task (internal use only).
Definition
HiResDelay.h:399
DelayObject::~DelayObject
~DelayObject()
Destructor - releases the allocated hardware timer.
OS_SEM
Semaphores are used to control access to shared resources or or to communicate between tasks in a mul...
Definition
nbrtos.h:407
nbrtos
include
HiResDelay.h
Generated by
1.18.0