Eaagles::DeviceIO::ThreadedDevice Class Reference

Inherits Eaagles::DeviceIO::IODevice.

Inherited by Eaagles::DeviceIO::BGDevice, Eaagles::DeviceIO::JoystickDevice, Eaagles::DeviceIO::JoystickDevice, and Eaagles::DeviceIO::KeithleyDevice.

Inheritance diagram for Eaagles::DeviceIO::ThreadedDevice:

Inheritance graph
[legend]
Collaboration diagram for Eaagles::DeviceIO::ThreadedDevice:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ThreadedDevice (void)
bool runAsync (int f)
void stopAsync (void)
bool IsAsync (void)

Private Member Functions

void setTimeCritical (void)
double getSystemTime (void)
void mySleep (int sleepTime)
void receiveThread (void)

Static Private Member Functions

static void * threadStarter (void *)

Private Attributes

int freq
bool threading

Constructor & Destructor Documentation

Eaagles::DeviceIO::ThreadedDevice::ThreadedDevice ( void   ) 

constructor


Member Function Documentation

bool Eaagles::DeviceIO::ThreadedDevice::runAsync ( int  f  ) 

starts up a thread for automatic device query (Load the data file) the result is "hands free" async button and axe event generation

void Eaagles::DeviceIO::ThreadedDevice::stopAsync ( void   ) 

stop receiving thread

bool Eaagles::DeviceIO::ThreadedDevice::IsAsync ( void   )  [inline]

return status of threading

void * Eaagles::DeviceIO::ThreadedDevice::threadStarter ( void *   )  [static, private]

threading function

void Eaagles::DeviceIO::ThreadedDevice::setTimeCritical ( void   )  [private]

make thread time critical - high priority

double Eaagles::DeviceIO::ThreadedDevice::getSystemTime ( void   )  [private]

return the system time in seconds

void Eaagles::DeviceIO::ThreadedDevice::mySleep ( int  sleepTime  )  [private]

sleep for a number of microseconds

void Eaagles::DeviceIO::ThreadedDevice::receiveThread ( void   )  [private]

receive thread


Member Data Documentation

int Eaagles::DeviceIO::ThreadedDevice::freq [private]

set the desired frequency

bool Eaagles::DeviceIO::ThreadedDevice::threading [private]

set the status of threading


Generated on Tue Dec 19 16:26:59 2006 for Eaagles by  doxygen 1.5.0