ChibiOS  21.6.0
chvt.h File Reference

Time and Virtual Timers module macros and structures. More...

Go to the source code of this file.

Functions

void chVTDoSetI (virtual_timer_t *vtp, sysinterval_t delay, vtfunc_t vtfunc, void *par)
 Enables a one-shot virtual timer. More...
 
void chVTDoSetContinuousI (virtual_timer_t *vtp, sysinterval_t delay, vtfunc_t vtfunc, void *par)
 Enables a continuous virtual timer. More...
 
void chVTDoResetI (virtual_timer_t *vtp)
 Disables a Virtual Timer. More...
 
sysinterval_t chVTGetRemainingIntervalI (virtual_timer_t *vtp)
 Returns the remaining time interval before next timer trigger. More...
 
void chVTDoTickI (void)
 Virtual timers ticker. More...
 
systimestamp_t chVTGetTimeStampI (void)
 Generates a monotonic time stamp. More...
 
void chVTResetTimeStampI (void)
 Resets and re-synchronizes the time stamps monotonic counter. More...
 
static void chVTObjectInit (virtual_timer_t *vtp)
 Initializes a virtual_timer_t object. More...
 
static systime_t chVTGetSystemTimeX (void)
 Current system time. More...
 
static systime_t chVTGetSystemTime (void)
 Current system time. More...
 
static sysinterval_t chVTTimeElapsedSinceX (systime_t start)
 Returns the elapsed time since the specified start time. More...
 
static bool chVTIsSystemTimeWithinX (systime_t start, systime_t end)
 Checks if the current system time is within the specified time window. More...
 
static bool chVTIsSystemTimeWithin (systime_t start, systime_t end)
 Checks if the current system time is within the specified time window. More...
 
static bool chVTGetTimersStateI (sysinterval_t *timep)
 Returns the time interval until the next timer event. More...
 
static bool chVTIsArmedI (const virtual_timer_t *vtp)
 Returns true if the specified timer is armed. More...
 
static bool chVTIsArmed (const virtual_timer_t *vtp)
 Returns true if the specified timer is armed. More...
 
static void chVTResetI (virtual_timer_t *vtp)
 Disables a Virtual Timer. More...
 
static void chVTReset (virtual_timer_t *vtp)
 Disables a Virtual Timer. More...
 
static void chVTSetI (virtual_timer_t *vtp, sysinterval_t delay, vtfunc_t vtfunc, void *par)
 Enables a one-shot virtual timer. More...
 
static void chVTSet (virtual_timer_t *vtp, sysinterval_t delay, vtfunc_t vtfunc, void *par)
 Enables a one-shot virtual timer. More...
 
static void chVTSetContinuousI (virtual_timer_t *vtp, sysinterval_t delay, vtfunc_t vtfunc, void *par)
 Enables a continuous virtual timer. More...
 
static void chVTSetContinuous (virtual_timer_t *vtp, sysinterval_t delay, vtfunc_t vtfunc, void *par)
 Enables a continuous virtual timer. More...
 
static sysinterval_t chVTGetReloadIntervalX (virtual_timer_t *vtp)
 Returns the current reload value. More...
 
static void chVTSetReloadIntervalX (virtual_timer_t *vtp, sysinterval_t reload)
 Changes a timer reload time interval. More...
 
static systimestamp_t chVTGetTimeStamp (void)
 Generates a monotonic time stamp. More...
 
static void chVTResetTimeStamp (void)
 Resets and re-synchronizes the time stamps monotonic counter. More...
 
static void __vt_object_init (virtual_timers_list_t *vtlp)
 Virtual Timers instance initialization. More...
 

Detailed Description

Time and Virtual Timers module macros and structures.

Definition in file chvt.h.