NetBurner 3.5.6
PDF Version
IntervalTimer.h File Reference

NetBurner Interval Timer API for periodic callbacks and RTOS synchronization. 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)
 Create a periodic timer that posts to an RTOS semaphore.
 
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.
 
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.
 
void IntervalStop (int timer_number)
 Stop and release an interval timer.
 

Detailed Description

NetBurner Interval Timer API for periodic callbacks and RTOS synchronization.

This file provides the Interval Timer API for creating periodic hardware timer interrupts that can trigger callbacks, post to semaphores, or set OS flags at precise intervals. These timers are essential for real-time control, periodic sampling, and time-critical task synchronization.