29 #ifndef __libftdi_hpp__
30 #define __libftdi_hpp__
34 #include <boost/shared_ptr.hpp>
76 const std::string&
vendor();
78 const std::string&
serial();
82 int open(
struct libusb_device *dev = 0);
85 int open(
const std::string& description);
98 int read(
unsigned char *buf,
int size);
99 int write(
unsigned char *buf,
int size);
124 int set_bitmode(
unsigned char bitmask,
unsigned char mode);
143 boost::shared_ptr<Private> d;
154 int init_defaults(
char *manufacturer,
char* product,
char * serial);
155 int chip_id(
unsigned int *chipid);
156 int build(
unsigned char *output);
158 int read(
unsigned char *eeprom);
159 int write(
unsigned char *eeprom);
160 int read_location(
int eeprom_addr,
unsigned short *eeprom_val);
166 boost::shared_ptr<Private> d;
200 ListType::size_type
size()
const;
212 boost::shared_ptr<Private> d;