Parent Directory | Revision Log | Patch
revision 76 by torben, Wed Jun 4 13:06:09 2008 UTC | revision 77 by torben, Wed Jun 4 13:08:30 2008 UTC | |
---|---|---|
# | Line 33 public: //public enumerations | Line 33 public: //public enumerations |
33 | Baud57600, | Baud57600, |
34 | Baud115200 | Baud115200 |
35 | }; | }; |
private: // member vars | ||
#ifdef _MSC_VER | ||
HANDLE mComport; | ||
DCB mDcbRestore; | ||
#else | ||
int mFiledescriptor; | ||
termios mOldtio; | ||
#endif | ||
char* mPortstr; | ||
Baudrate mBitrate; | ||
bool mIsopen; | ||
36 | ||
37 | public: //public methods | public: //public methods |
38 | CSerial(); | CSerial(); |
# | Line 84 protected: | Line 72 protected: |
72 | int readBytesLinux(unsigned char* buf, unsigned int maxLen); | int readBytesLinux(unsigned char* buf, unsigned int maxLen); |
73 | void writeBytesLinux(unsigned char* buf, unsigned int len); | void writeBytesLinux(unsigned char* buf, unsigned int len); |
74 | #endif | #endif |
75 | ||
76 | ||
77 | private: // member vars | |
78 | #ifdef _MSC_VER | |
79 | HANDLE mComport; | |
80 | DCB mDcbRestore; | |
81 | #else | |
82 | int mFiledescriptor; | |
83 | termios mOldtio; | |
84 | #endif | |
85 | ||
86 | char* mPortstr; | |
87 | Baudrate mBitrate; | |
88 | bool mIsopen; | |
89 | }; | }; |
|
ViewVC Help | |
Powered by ViewVC 1.1.20 |