X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=ftdipp%2Fftdi.hpp;h=f569cce302cdc6c16d120932eef0c29d0b9155f8;hp=4e3511d37c023430e8a340cc2d24ab5134c357b3;hb=928bc100257e5d2bc18a35ede7597da1e9b92ee1;hpb=fb56d9cf14f34dda2d7b154f16a0c08ad8b639f9 diff --git a/ftdipp/ftdi.hpp b/ftdipp/ftdi.hpp index 4e3511d..f569cce 100644 --- a/ftdipp/ftdi.hpp +++ b/ftdipp/ftdi.hpp @@ -2,7 +2,7 @@ ftdi.hpp - C++ wrapper for libftdi ------------------- begin : Mon Oct 13 2008 - copyright : (C) 2008-2017 by Marek Vavruša and libftdi developers + copyright : (C) 2008-2020 by Marek Vavruša and libftdi developers email : opensource@intra2net.com and marek@vavrusa.com ***************************************************************************/ /* @@ -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);