ISIX-RTOS - small operating system for ARM microcontrollers 1.2
Public Member Functions | Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes

isix::virtual_timer Class Reference

C++ wrapper for the vtime. More...

#include <irqtimers.h>

Collaboration diagram for isix::virtual_timer:
Collaboration graph
[legend]

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_timeroperator= (const virtual_timer &)

Static Private Member Functions

static void vtimer_func (void *ptr)

Private Attributes

vtimer_ttimer

Detailed Description

C++ wrapper for the vtime.

Definition at line 82 of file isix/irqtimers.h.


Constructor & Destructor Documentation

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]

Member Function Documentation

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]

Check that object is valid.

Definition at line 96 of file isix/irqtimers.h.

References timer.

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().


Field Documentation

Definition at line 117 of file isix/irqtimers.h.

Referenced by is_valid(), start(), start_ms(), stop(), virtual_timer(), and ~virtual_timer().


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines