serialport.h

Go to the documentation of this file.
00001 //======================================================================
00002 // File:        serialport.h
00003 // Author:      Matthias Toussaint
00004 // Created:     Sat Nov 25 13:49:23 CET 2006
00005 // Project:     QtDMM
00006 // Description: Encapsulation of serial port
00007 //----------------------------------------------------------------------
00008 // This file  may  be used under  the terms of  the GNU  General Public
00009 // License  version 2.0 as published   by the Free Software  Foundation
00010 // and appearing  in the file LICENSE.GPL included  in the packaging of
00011 // this file.
00012 // 
00013 // This file is provided AS IS with  NO WARRANTY OF ANY KIND, INCLUDING 
00014 // THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR 
00015 // PURPOSE.
00016 //----------------------------------------------------------------------
00017 // Copyright 2006 Matthias Toussaint
00018 //======================================================================
00019 
00020 #ifndef SERIALPORT_HH
00021 #define SERIALPORT_HH
00022 
00023 #include <port.h>
00024 #include <fcntl.h>
00025 #include <sys/termios.h>
00026 #include <sys/ioctl.h>
00027 
00033 class SerialPort : public Port
00034 {
00035 public:
00036   SerialPort();
00037   virtual ~SerialPort();
00038        
00057   virtual Port::Error open( const std::string & config );
00058   virtual Port::Error close();
00059   
00060 protected:
00061   struct termios m_oldSettings;
00062   
00063 };
00064 
00065 #endif // SERIALPORT_HH

Generated on Mon Jan 22 23:24:18 2007 for cdmm by  doxygen 1.4.6