ChibiOS/RT Architecture - Reference Manual - Guides |
#include <ch.hpp>
Public Member Functions | |
void | Set (systime_t time, vtfunc_t vtfunc, void *par) |
Starts the timer. | |
void | Reset () |
Resets the timer. | |
bool | IsArmed (void) |
Returns the timer status. | |
Data Fields | |
struct::VirtualTimer | timer |
Embedded VirtualTimer structure. |
Timer class.
Definition at line 81 of file ch.hpp.
Starts the timer.
time | the time in system ticks | |
vtfunc | the timer callback function | |
par | the parameter for the callback function |
Definition at line 62 of file ch.cpp.
References chVTSetI(), and timer.
void chibios_rt::Timer::Reset | ( | ) |
Resets the timer.
Definition at line 67 of file ch.cpp.
References chVTResetI(), and timer.
bool chibios_rt::Timer::IsArmed | ( | void | ) |
Returns the timer status.
TRUE | The timer is armed. | |
FALSE | The timer already fired its callback. |
Definition at line 72 of file ch.cpp.
References chVTIsArmedI, and timer.
struct ::VirtualTimer chibios_rt::Timer::timer |