Works now with Windows Visual Studio C++ too
[owTools.git] / src / owARDUINOInterface.h
index 9dc72cb..14024c1 100644 (file)
 
 class owARDUINOInterface:public owInterface{
 protected: 
+#ifdef LINUX
        int fd;
+#endif
+#ifdef WIN
+       HANDLE fd;
+#endif
        int com_init;
 public:
        owARDUINOInterface():owInterface() {
@@ -61,16 +66,22 @@ protected:
        uint8_t UMode;  // current DS2480B command or data mode state
        uint8_t USpeed; // current DS2480B 1-Wire Net communication speed
        uint8_t UVersion; // current DS2480B version 
+#ifdef LINUX
        struct termios origterm;
-
-
+#endif
+#ifdef LINUX
        int OpenCOM(uint8_t comnr);
+#endif
+#ifdef WIN
+       HANDLE OpenCOM(uint8_t comnr);
+#endif
+
        void CloseCOM();
        void FlushCOM();
        int  WriteCOM(int outlen, uint8_t *outbuf);
        int ReadCOM(int inlen, uint8_t *inbuf);
-       void BreakCOM();
-       void SetBaudCOM(uint8_t new_baud);
+//     void BreakCOM();
+
        
 };