NetBurner 3.5.8
PDF Version
Toggle main menu visibility
IntervalTimer.h
1
/*NB_REVISION*/
2
3
/*NB_COPYRIGHT*/
4
13
215
216
#ifndef _NB_INTERVAL_TIMER_H
217
#define _NB_INTERVAL_TIMER_H
218
#include <constants.h>
219
#include <nbrtos.h>
220
401
int
IntervalOSSem
(
OS_SEM
*p_toSem,
int
num_per_sec,
int
timer = FIRST_UNUSED_TIMER);
402
627
int
IntervalOSFlag
(
OS_FLAGS
*p_toFlag, uint32_t flag_value,
int
num_per_sec,
int
timer = FIRST_UNUSED_TIMER);
628
854
int
IntervalInterruptCallback
(
void
(*p_toCallbackFunc)(),
int
num_per_sec,
int
timer = FIRST_UNUSED_TIMER);
855
1092
void
IntervalStop
(
int
timer_number);
1093
1094
#endif
1095
IntervalInterruptCallback
int IntervalInterruptCallback(void(*p_toCallbackFunc)(), int num_per_sec, int timer=FIRST_UNUSED_TIMER)
Create a periodic timer that calls a function from interrupt context.
IntervalStop
void IntervalStop(int timer_number)
Stop and release an interval timer.
IntervalOSFlag
int IntervalOSFlag(OS_FLAGS *p_toFlag, uint32_t flag_value, int num_per_sec, int timer=FIRST_UNUSED_TIMER)
Create a periodic timer that sets RTOS flags.
IntervalOSSem
int IntervalOSSem(OS_SEM *p_toSem, int num_per_sec, int timer=FIRST_UNUSED_TIMER)
Create a periodic timer that posts to an RTOS semaphore.
OS_FLAGS
OSFlags enables a function or task to pend on multiple flags or events.
Definition
nbrtos.h:1285
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
IntervalTimer.h
Generated by
1.18.0