NetBurner 3.5.6
PDF Version
IntervalTimer.h
Go to the documentation of this file.
1/*NB_REVISION*/
2
3/*NB_COPYRIGHT*/
4
42#ifndef _NB_INTERVAL_TIMER_H
43#define _NB_INTERVAL_TIMER_H
44#include <constants.h>
45#include <nbrtos.h>
46
56int IntervalOSSem(OS_SEM *p_toSem, int num_per_sec, int timer = FIRST_UNUSED_TIMER);
57
68int IntervalOSFlag(OS_FLAGS *p_toFlag, uint32_t flag_value, int num_per_sec, int timer = FIRST_UNUSED_TIMER);
69
81int IntervalInterruptCallback(void (*p_toCallbackFunc)(), int num_per_sec, int timer = FIRST_UNUSED_TIMER);
82
89void IntervalStop(int timer_number);
90
91#endif
92
NetBurner System Constants.
#define FIRST_UNUSED_TIMER
Definition constants.h:580
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 tim...
void IntervalStop(int timer_number)
Stops an existing Interval Timer and frees the resource.
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 IntervalOSSem(OS_SEM *p_toSem, int num_per_sec, int timer=FIRST_UNUSED_TIMER)
Posts to a semaphore at the requested interval.
NetBurner Real-Time Operating System (NBRTOS) API.
OSFlags enables a function or task to pend on multiple flags or events.
Definition nbrtos.h:1289
Semaphores are used to control access to shared resources or or to communicate between tasks in a mul...
Definition nbrtos.h:411