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 usb_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);
126 int DEPRECATED(bitbang_enable(
unsigned char bitmask));
144 boost::shared_ptr<Private> d;
157 int size(
unsigned char *eeprom,
int maxsize);
158 int chip_id(
unsigned int *chipid);
159 int build(
unsigned char *output);
161 int read(
unsigned char *eeprom);
162 int write(
unsigned char *eeprom);
163 int read_location(
int eeprom_addr,
unsigned short *eeprom_val);
169 boost::shared_ptr<Private> d;
203 ListType::size_type
size()
const;
215 boost::shared_ptr<Private> d;