Bike-X  0.8
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Passive Class Referenceabstract

#include "Passive.h"

Inheritance diagram for Passive:
Inheritance graph
Collaboration diagram for Passive:
Collaboration graph

Public Member Functions

virtual int getData (unsigned char &data)=0
 

Static Public Member Functions

static int flush ()
 
- Static Public Member Functions inherited from Device
static void init ()
 
static void destroy ()
 

Additional Inherited Members

- Static Public Attributes inherited from Device
static int pythonPid
 
- Static Protected Attributes inherited from Device
static unsigned char buffer [BUFFER_SIZE]
 

Detailed Description

Represents all devices which will be serving as data sources

Definition at line 11 of file Passive.h.

Member Function Documentation

int Passive::flush ( )
static

Flush the old data and get the new one

Definition at line 9 of file Passive.cpp.

virtual int Passive::getData ( unsigned char &  data)
pure virtual

Reads specific char at from a device and returns 0 in case of success or != 0 otherwise

Implemented in Battery, Direction, Oximetry, and Speed.


The documentation for this class was generated from the following files: