#include <PPort.hpp>
Public Member Functions | |
| bool | setBit (const void *ID, int bit, bool stat) |
| set a data bit of the // port. | |
| bool | registerBit (const void *ID, int bit) |
| register a bit for object ID. | |
| bool | unregisterBit (const void *ID, int bit) |
| release a bit. | |
| bool | isRegisterBit (const void *ID, int bit) const |
| test if a bit is registerd. | |
| bool | commit () |
| set the bits off the // port according to previous call to setBit(). | |
Static Public Member Functions | |
| static PPort * | getPPort (int ioPort) |
| return the PPort object associated to the given IO port. | |
| PPort * PPort::getPPort | ( | int | ioPort | ) | [static] |
| bool PPort::setBit | ( | const void * | ID, | |
| int | bit, | |||
| bool | stat | |||
| ) |
set a data bit of the // port.
| 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. |
| bool PPort::registerBit | ( | const void * | ID, | |
| int | bit | |||
| ) |
register a bit for object ID.
| ID | the identifier used to register the bit it should be the 'this' pointer. | |
| bit | the bit of the // port to register |
| bool PPort::unregisterBit | ( | const void * | ID, | |
| int | bit | |||
| ) |
release a bit.
| ID | the identifier used to register the bit | |
| bit | the bit to register. |
| bool PPort::isRegisterBit | ( | const void * | ID, | |
| int | bit | |||
| ) | const |
test if a bit is registerd.
| ID | the identifier used to register the bit | |
| bit | the bit to test. |
1.5.1