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

kstars

PPort.h

Go to the documentation of this file.
00001 /*
00002     Copyright (C) 2004 by Jasem Mutlaq
00003 
00004     This library is free software; you can redistribute it and/or
00005     modify it under the terms of the GNU Lesser General Public
00006     License as published by the Free Software Foundation; either
00007     version 2.1 of the License, or (at your option) any later version.
00008 
00009     This library is distributed in the hope that it will be useful,
00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012     Lesser General Public License for more details.
00013 
00014     You should have received a copy of the GNU Lesser General Public
00015     License along with this library; if not, write to the Free Software
00016     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
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

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