X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=ftdipp%2Fftdi.hpp;h=e4a95d7f21794217ab86b76e9c4afa44f6ebbe76;hp=d1dec92dc8ecf4410586bfa087959731ab2d12d3;hb=a00c0a850b7fc6a3f6f7491df7f45a21ac957fa2;hpb=74e8e79d4e311001d0f890cdf0219d84b58bb70a diff --git a/ftdipp/ftdi.hpp b/ftdipp/ftdi.hpp index d1dec92..e4a95d7 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 by Marek Vavruša + copyright : (C) 2008-2013 by Marek Vavruša and libftdi developers email : opensource@intra2net.com and marek@vavrusa.com ***************************************************************************/ /* -Copyright (C) 2008 by Marek Vavruša +Copyright (C) 2008-2013 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). @@ -32,7 +32,7 @@ on this file might be covered by the GNU General Public License. #include #include #include -#include "ftdi.h" +#include namespace Ftdi { @@ -123,7 +123,6 @@ public: /* BitBang mode */ int set_bitmode(unsigned char bitmask, unsigned char mode); int set_bitmode(unsigned char bitmask, enum ftdi_mpsse_mode mode); - int DEPRECATED(bitbang_enable(unsigned char bitmask)); int bitbang_disable(); int read_pins(unsigned char *pins); @@ -152,9 +151,7 @@ public: Eeprom(Context* parent); ~Eeprom(); - void init_defaults(char *manufacturer, char* product, char * serial); - void set_size(int size); - int size(unsigned char *eeprom, int maxsize); + int init_defaults(char *manufacturer, char* product, char * serial); int chip_id(unsigned int *chipid); int build(unsigned char *output); @@ -177,7 +174,7 @@ public: List(struct ftdi_device_list* devlist = 0); ~List(); - static List* find_all(int vendor, int product); + static List* find_all(Context &context, int vendor, int product); /// List type storing "Context" objects typedef std::list ListType;