• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kstars

PPort Class Reference

To access and share the parallel port between severa objects. More...

#include <PPort.h>

List of all members.


Public Member Functions

bool commit ()
bool isRegisterBit (const void *ID, int bit) const
 PPort (int ioPort)
 PPort ()
bool registerBit (const void *ID, int bit)
bool setBit (const void *ID, int bit, bool stat)
bool setPort (int ioPort)
bool unregisterBit (const void *ID, int bit)

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 (  ) 

Definition at line 31 of file PPort.cpp.

PPort::PPort ( int  ioPort  ) 

Definition at line 35 of file PPort.cpp.


Member Function Documentation

bool PPort::commit (  ) 

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:
  • PPort.h
  • PPort.cpp

kstars

Skip menu "kstars"
  • Main Page
  • Modules
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • keduca
  • kstars
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal