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:
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:
- outbyte : Transmit a single character of data on comm. channel.
- inbyte : Receive a single byte of data from comm. channel.
- havebyte : Whether a byte is ready to be received from communications buffer.
- 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 |
( |
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] |
|
Field Documentation
boolfoo _havebyte_callback [protected]
|
|
charfoo _inbyte_callback [protected]
|
|
foochar _outbyte_callback [protected]
|
|
Generated on Mon Oct 8 19:32:24 2007 for OOMRM Mapping API by
1.3