ChibiOS/RT Architecture - Reference Manual - Guides |
Time macros and structures. More...
Go to the source code of this file.
Data Structures | |
struct | VirtualTimer |
Virtual Timer descriptor structure. More... | |
struct | VTList |
Virtual timers list header. More... | |
Defines | |
#define | S2ST(sec) ((systime_t)((sec) * CH_FREQUENCY)) |
Time conversion utility. | |
#define | MS2ST(msec) ((systime_t)(((((msec) - 1L) * CH_FREQUENCY) / 1000L) + 1L)) |
Time conversion utility. | |
#define | US2ST(usec) ((systime_t)(((((usec) - 1L) * CH_FREQUENCY) / 1000000L) + 1L)) |
Time conversion utility. | |
#define | chVTDoTickI() |
Virtual timers ticker. | |
#define | chVTIsArmedI(vtp) ((vtp)->vt_func != NULL) |
Returns TRUE if the speciified timer is armed. | |
#define | chTimeNow() (vtlist.vt_systime) |
Current system time. | |
Typedefs | |
typedef void(* | vtfunc_t )(void *) |
Virtual Timer callback function. | |
typedef struct VirtualTimer | VirtualTimer |
Virtual Timer structure type. | |
Functions | |
void | vt_init (void) |
Virtual Timers initialization. | |
void | chVTSetI (VirtualTimer *vtp, systime_t time, vtfunc_t vtfunc, void *par) |
Enables a virtual timer. | |
void | chVTResetI (VirtualTimer *vtp) |
Disables a Virtual Timer. | |
bool_t | chTimeIsWithin (systime_t start, systime_t end) |
Checks if the current system time is within the specified time window. | |
Variables | |
VTList | vtlist |
Virtual timers delta list header. |
Time macros and structures.
Definition in file chvt.h.