kstars
PPort.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _PPort_hpp_
00021 #define _PPort_hpp_
00022
00023 class port_t;
00024
00027 class PPort {
00028 public:
00029 PPort();
00030 PPort(int ioPort);
00034 bool setPort(int ioPort);
00042 bool setBit(const void * ID,int bit,bool stat);
00049 bool registerBit(const void * ID,int bit);
00056 bool unregisterBit(const void * ID,int bit);
00057
00064 bool isRegisterBit(const void * ID,int bit) const;
00065
00068 bool commit();
00069 private:
00070 void reset();
00071 unsigned char bitArray;
00072 const void * assignedBit[8];
00073 port_t * currentPort;
00074 };
00075 #endif