Main Page   Hardware Class Hierarchy   Hardware API     Mapping Class Hierarchy  Mapping API 

CommunicationDevice Class Reference

A Class representing a generic I/O device. Enables writing generic code for I/O of JAUS Messages. More...

#include <commdevice.h>

Inheritance diagram for CommunicationDevice:

EB500_CommunicationDevice RS232_CommunicationDevice

Public Member Functions

 CommunicationDevice (OOMRM_COMMUNICATION_TYPE cd)
void outbyte (char c)
char inbyte (void)
bool havebyte (void)
OOMRM_COMMUNICATION_TYPE type (void)

Protected Member Functions

void outbyte_callback (foochar)
void inbyte_callback (charfoo)
void havebyte_callback (boolfoo)
 CommunicationDevice (void)

Protected Attributes

foochar _outbyte_callback
charfoo _inbyte_callback
boolfoo _havebyte_callback
enum OOMRM_COMMUNICATION_TYPE _type

Detailed Description

A Class representing a generic I/O device. Enables writing generic code for I/O of JAUS Messages.

A generic device must implement three methods:

As usual, the only way to implement without including all device is via callbacks functions to the
respective low level device methods.


Constructor & Destructor Documentation

CommunicationDevice OOMRM_COMMUNICATION_TYPE  cd  )  [inline]
 

CommunicationDevice void   )  [protected]
 


Member Function Documentation

bool havebyte void   )  [inline]
 

void havebyte_callback boolfoo   )  [protected]
 

char inbyte void   )  [inline]
 

void inbyte_callback charfoo   )  [protected]
 

void outbyte char  c  )  [inline]
 

void outbyte_callback foochar   )  [protected]
 

OOMRM_COMMUNICATION_TYPE type void   )  [inline]
 


Field Documentation

boolfoo _havebyte_callback [protected]
 

charfoo _inbyte_callback [protected]
 

foochar _outbyte_callback [protected]
 

enum OOMRM_COMMUNICATION_TYPE _type [protected]
 


Generated on Mon Oct 8 19:32:24 2007 for OOMRM Mapping API by doxygen1.3