X-Git-Url: http://git.smho.de/gw/?p=owTools.git;a=blobdiff_plain;f=src%2FowARDUINOInterface.h;fp=src%2FowARDUINOInterface.h;h=14024c10f396bb1804e8ccf533934072c3fc6b0a;hp=9dc72cb9fb821381005c13dfd5861963d4f68e02;hb=1a6465a924428af072a8eb5e75ee547c394f4d8e;hpb=039b202e5c68834801d23e22eecc7cae2879ea83 diff --git a/src/owARDUINOInterface.h b/src/owARDUINOInterface.h index 9dc72cb..14024c1 100644 --- a/src/owARDUINOInterface.h +++ b/src/owARDUINOInterface.h @@ -38,7 +38,12 @@ 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(); + };