NetBurner 3.1
IntervalTimer.h
Go to the documentation of this file.
1 /*NB_REVISION*/
2 
3 /*NB_COPYRIGHT*/
4 
15 #ifndef _NB_INTERVAL_TIMER_H
16 #define _NB_INTERVAL_TIMER_H
17 
18 const int IFIRST_UNUSED_TIMER = -1;
19 
29 int IntervalOSSem(OS_SEM *p_toSem, int num_per_sec, int timer = IFIRST_UNUSED_TIMER);
30 
41 int IntervalOSFlag(OS_FLAGS *p_toFlag, uint32_t flag_value, int num_per_sec, int timer = IFIRST_UNUSED_TIMER);
42 
54 int IntervalInterruptCallback(void (*p_toCallbackFunc)(), int num_per_sec, int timer = IFIRST_UNUSED_TIMER);
55 
62 void IntervalStop(int timer_number);
63 
64 #endif
65 
int IntervalOSFlag(OS_FLAGS *p_toFlag, uint32_t flag_value, int num_per_sec, int timer=IFIRST_UNUSED_TIMER)
Sets a flag at requested interval.
Semaphores are used to control access to shared resource critical section, or to communicate between ...
Definition: nbrtos.h:318
int IntervalInterruptCallback(void(*p_toCallbackFunc)(), int num_per_sec, int timer=IFIRST_UNUSED_TIMER)
Calls a function at requested interval. Note that the callback function is called from within the tim...
void IntervalStop(int timer_number)
Stops an existing Interval Timer and frees the resource.
An OS_FLAGS object is used to set, clear, and pend on a set of flags that is held and maintained by t...
Definition: nbrtos.h:1009
int IntervalOSSem(OS_SEM *p_toSem, int num_per_sec, int timer=IFIRST_UNUSED_TIMER)
Posts to a semaphore at the requested interval.