/[H7]/branches/linux-serial/Serial.h
ViewVC logotype

Diff of /branches/linux-serial/Serial.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 44 by torben, Sun Feb 4 21:22:44 2007 UTC revision 46 by torben, Sun Feb 4 23:11:02 2007 UTC
# Line 11  typedef std::vector<unsigned char> UCVec Line 11  typedef std::vector<unsigned char> UCVec
11    
12  #ifndef _WINDOWS //  #ifndef _WINDOWS //
13  inline void Sleep(int x) { usleep(x*1000);}  inline void Sleep(int x) { usleep(x*1000);}
14    #include <termios.h>
15  #endif  #endif
16    
17    
# Line 21  class CSerial Line 22  class CSerial
22          DCB mDcbRestore;          DCB mDcbRestore;
23  #else  #else
24          int mFiledescriptor;          int mFiledescriptor;
25            termios mOldtio;
26  #endif  #endif
27                    
28          char* mPortstr;          char* mPortstr;
29          int mBitrate;          int mBitrate;
30          bool mIsopen;          bool mIsopen;
31    
         //void printByte(char* description, unsigned char byte);  
32  public:  public:
33          CSerial();          CSerial();
34          CSerial(char* port, int bitrate);          CSerial(char* port, int bitrate);
# Line 53  public: Line 54  public:
54          //UCVector readBytes(int maxcount);          //UCVector readBytes(int maxcount);
55  protected:  protected:
56                    
57            void printByte(char* description, unsigned char byte);
58  #ifdef _WINDOWS  #ifdef _WINDOWS
59          void openWindows();          void openWindows();
60  #else  #else

Legend:
Removed from v.44  
changed lines
  Added in v.46

  ViewVC Help
Powered by ViewVC 1.1.20