PPort Class Reference
To access and share the parallel port between severa objects.
More...
#include <PPort.h>
List of all members.
Detailed Description
To access and share the parallel port between severa objects.
Definition at line 27 of file PPort.h.
Constructor & Destructor Documentation
| PPort::PPort |
( |
int |
ioPort |
) |
|
Member Function Documentation
set the bits off the // port according to previous call to setBit().
Definition at line 62 of file PPort.cpp.
| bool PPort::isRegisterBit |
( |
const void * |
ID, |
|
|
int |
bit | |
|
) |
| | const |
test if a bit is registerd.
- Parameters:
-
| ID | the identifier used to register the bit |
| bit | the bit to test. |
- Returns:
- false if the bit was not registered by ID or if the if the // port is not initialised.
Definition at line 104 of file PPort.cpp.
| bool PPort::registerBit |
( |
const void * |
ID, |
|
|
int |
bit | |
|
) |
| | |
register a bit for object ID.
- Parameters:
-
| ID | the identifier used to register the bit it should be the 'this' pointer. |
| bit | the bit of the // port to register |
- Returns:
- false if the bit is allready register with an other ID, or if the // port is not initialised.
Definition at line 86 of file PPort.cpp.
| bool PPort::setBit |
( |
const void * |
ID, |
|
|
int |
bit, |
|
|
bool |
stat | |
|
) |
| | |
set a data bit of the // port.
- Returns:
- false if IO port not set, or bit not registered by ID.
- Parameters:
-
| ID | the identifier used to register the bit |
| stat | the stat wanted for the given bit |
| bit | the bit to set. They are numbered from 0 to 7. |
Definition at line 72 of file PPort.cpp.
| bool PPort::setPort |
( |
int |
ioPort |
) |
|
set the ioport associated to the // port.
- Returns:
- true if the binding was possible
Definition at line 48 of file PPort.cpp.
| bool PPort::unregisterBit |
( |
const void * |
ID, |
|
|
int |
bit | |
|
) |
| | |
release a bit.
- Parameters:
-
| ID | the identifier used to register the bit |
| bit | the bit to register. |
- Returns:
- false if the bit was not registered by ID or if the if the // port is not initialised.
Definition at line 95 of file PPort.cpp.
The documentation for this class was generated from the following files: