X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=ftdipp%2Fftdi.hpp;h=a438d968a87832918067f8d0cdfdeb21f63b43d6;hp=e4a95d7f21794217ab86b76e9c4afa44f6ebbe76;hb=c45d26308211c383903cb06f15ba7575d807fe06;hpb=b25d91651338fdf323bcfae5f66d47fec69819f7 diff --git a/ftdipp/ftdi.hpp b/ftdipp/ftdi.hpp index e4a95d7..a438d96 100644 --- a/ftdipp/ftdi.hpp +++ b/ftdipp/ftdi.hpp @@ -2,11 +2,11 @@ ftdi.hpp - C++ wrapper for libftdi ------------------- begin : Mon Oct 13 2008 - copyright : (C) 2008-2013 by Marek Vavruša and libftdi developers + copyright : (C) 2008-2014 by Marek Vavruša and libftdi developers email : opensource@intra2net.com and marek@vavrusa.com ***************************************************************************/ /* -Copyright (C) 2008-2013 by Marek Vavruša and libftdi developers +Copyright (C) 2008-2014 by Marek Vavruša and libftdi developers The software in this package is distributed under the GNU General Public License version 2 (with a special exception described below). @@ -93,6 +93,10 @@ public: int set_baud_rate(int baudrate); int set_line_property(enum ftdi_bits_type bits, enum ftdi_stopbits_type sbit, enum ftdi_parity_type parity); int set_line_property(enum ftdi_bits_type bits, enum ftdi_stopbits_type sbit, enum ftdi_parity_type parity, enum ftdi_break_type break_type); + int get_usb_read_timeout() const; + void set_usb_read_timeout(int usb_read_timeout); + int get_usb_write_timeout() const; + void set_usb_write_timeout(int usb_write_timeout); /* I/O */ int read(unsigned char *buf, int size); @@ -127,7 +131,7 @@ public: int read_pins(unsigned char *pins); /* Misc */ - char* error_string(); + const char* error_string(); protected: int get_strings();