X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=ftdipp%2Fftdi.hpp;h=a5ede3c4d296dd2380071ec335c9f256a4fcc95b;hp=4e3511d37c023430e8a340cc2d24ab5134c357b3;hb=ed46f09c1ccd1351e003a200ba50e3e4778ac478;hpb=fb56d9cf14f34dda2d7b154f16a0c08ad8b639f9 diff --git a/ftdipp/ftdi.hpp b/ftdipp/ftdi.hpp index 4e3511d..a5ede3c 100644 --- a/ftdipp/ftdi.hpp +++ b/ftdipp/ftdi.hpp @@ -55,16 +55,16 @@ public: */ enum Direction { - Input, - Output + Input = 0x2, + Output = 0x1, }; /*! \brief Modem control flags. */ enum ModemCtl { - Dtr, - Rts + Dtr = 0x2, + Rts = 0x1, }; /* Constructor, Destructor */ @@ -85,7 +85,8 @@ public: int open(const std::string& description); int close(); int reset(); - int flush(int mask = Input|Output); + int DEPRECATED(flush)(int mask = Input|Output); + int tcflush(int mask = Input|Output); int set_interface(enum ftdi_interface interface); void set_usb_device(struct libusb_device_handle *dev);