ISIX-RTOS - small operating system for ARM microcontrollers 1.2
|
C++ wrapper for the vtime. More...
#include <irqtimers.h>
Public Member Functions | |
virtual_timer () | |
Create virtual timer object. | |
~virtual_timer () | |
Destroy the virtual timer object. | |
bool | is_valid () |
Check that object is valid. | |
int | start (tick_t timeout) |
Start the timer on selected period. | |
int | start_ms (tick_t timeout) |
Start the timer on selected period. | |
int | stop () |
Stop the timer. | |
Protected Member Functions | |
virtual void | handle_timer ()=0 |
Virtual function called on time. | |
Private Member Functions | |
virtual_timer (const virtual_timer &) | |
virtual_timer & | operator= (const virtual_timer &) |
Static Private Member Functions | |
static void | vtimer_func (void *ptr) |
Private Attributes | |
vtimer_t * | timer |
C++ wrapper for the vtime.
Definition at line 82 of file isix/irqtimers.h.
isix::virtual_timer::virtual_timer | ( | ) | [inline] |
Create virtual timer object.
Definition at line 86 of file isix/irqtimers.h.
References isix::isix_vtimer_create(), timer, and vtimer_func().
isix::virtual_timer::~virtual_timer | ( | ) | [inline] |
Destroy the virtual timer object.
Definition at line 91 of file isix/irqtimers.h.
References isix::isix_vtimer_destroy(), and timer.
isix::virtual_timer::virtual_timer | ( | const virtual_timer & | ) | [private] |
virtual void isix::virtual_timer::handle_timer | ( | ) | [protected, pure virtual] |
Virtual function called on time.
Referenced by vtimer_func().
bool isix::virtual_timer::is_valid | ( | ) | [inline] |
virtual_timer& isix::virtual_timer::operator= | ( | const virtual_timer & | ) | [private] |
int isix::virtual_timer::start | ( | tick_t | timeout | ) | [inline] |
Start the timer on selected period.
Definition at line 98 of file isix/irqtimers.h.
References isix::isix_vtimer_start(), and timer.
int isix::virtual_timer::start_ms | ( | tick_t | timeout | ) | [inline] |
Start the timer on selected period.
Definition at line 100 of file isix/irqtimers.h.
References isix::isix_vtimer_start(), and timer.
int isix::virtual_timer::stop | ( | ) | [inline] |
Stop the timer.
Definition at line 102 of file isix/irqtimers.h.
References isix::isix_vtimer_stop(), and timer.
static void isix::virtual_timer::vtimer_func | ( | void * | ptr | ) | [inline, static, private] |
Definition at line 108 of file isix/irqtimers.h.
References handle_timer().
Referenced by virtual_timer().
vtimer_t* isix::virtual_timer::timer [private] |
Definition at line 117 of file isix/irqtimers.h.
Referenced by is_valid(), start(), start_ms(), stop(), virtual_timer(), and ~virtual_timer().