NetBurner 3.5.0
PDF Version
 
IntervalTimer.h File Reference

NetBurner Interval Timer API. More...

#include <constants.h>
#include <nbrtos.h>

Go to the source code of this file.

Functions

int IntervalOSSem (OS_SEM *p_toSem, int num_per_sec, int timer=FIRST_UNUSED_TIMER)
 Posts to a semaphore at the requested interval.
 
int IntervalOSFlag (OS_FLAGS *p_toFlag, uint32_t flag_value, int num_per_sec, int timer=FIRST_UNUSED_TIMER)
 Sets a flag at requested interval.
 
int IntervalInterruptCallback (void(*p_toCallbackFunc)(), int num_per_sec, int timer=FIRST_UNUSED_TIMER)
 Calls a function at requested interval. Note that the callback function is called from within the timer's interrupt handler so you should treat your callback function as an interrupt.
 
void IntervalStop (int timer_number)
 Stops an existing Interval Timer and frees the resource.
 

Detailed Description

NetBurner Interval Timer API.