Go to the documentation of this file.
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);
103 int read(
unsigned char *buf,
int size);
104 int write(
const unsigned char *buf,
int size);
129 int set_bitmode(
unsigned char bitmask,
unsigned char mode);
148 boost::shared_ptr<Private> d;
160 int chip_id(
unsigned int *chipid);
161 int build(
unsigned char *output);
163 int read(
unsigned char *eeprom);
164 int write(
unsigned char *eeprom);
165 int read_location(
int eeprom_addr,
unsigned short *eeprom_val);
171 boost::shared_ptr<Private> d;
185 typedef std::list<Context>
ListType;
187 typedef ListType::iterator
iterator;
205 ListType::size_type
size()
const;
217 boost::shared_ptr<Private> d;
ListType::iterator iterator
Iterator type for the container.
void push_front(const Context &element)
int read_location(int eeprom_addr, unsigned short *eeprom_val)
int read(unsigned char *eeprom)
void set_usb_read_timeout(int usb_read_timeout)
int set_error_char(unsigned char errorch, unsigned char enable)
void push_back(const Context &element)
Direction
Direction flags for flush().
int set_read_chunk_size(unsigned int chunksize)
int get_strings(bool vendor=true, bool description=true, bool serial=true)
void set_context(struct ftdi_context *context)
const std::string & description()
Device strings properties.
const char * error_string()
int set_event_char(unsigned char eventch, unsigned char enable)
void set_usb_device(struct libusb_device_handle *dev)
FTDI device context. Represents single FTDI device context.
const std::string & vendor()
Device strings properties.
int write_location(int eeprom_addr, unsigned short eeprom_val)
int set_line_property(enum ftdi_bits_type bits, enum ftdi_stopbits_type sbit, enum ftdi_parity_type parity)
int tcflush(int mask=Input|Output)
const std::string & serial()
Device strings properties.
List(struct ftdi_device_list *devlist=0)
int read_pins(unsigned char *pins)
int set_baud_rate(int baudrate)
std::list< Context > ListType
List type storing "Context" objects.
int DEPRECATED() flush(int mask=Input|Output)
ListType::const_iterator const_iterator
Const iterator type for the container.
int set_write_chunk_size(unsigned int chunksize)
int read(unsigned char *buf, int size)
ListType::const_reverse_iterator const_reverse_iterator
Const reverse iterator type for the container.
int set_flow_control(int flowctrl)
ListType::size_type size() const
int set_modem_control(int mask=Dtr|Rts)
int chip_id(unsigned int *chipid)
int write(const unsigned char *buf, int size)
list of usb devices created by ftdi_usb_find_all()
int open(struct libusb_device *dev=0)
int init_defaults(char *manufacturer, char *product, char *serial)
static List * find_all(Context &context, int vendor, int product)
int set_interface(enum ftdi_interface interface)
reverse_iterator rbegin()
Main context structure for all libftdi functions.
struct ftdi_context * context()
int set_bitmode(unsigned char bitmask, unsigned char mode)
int get_usb_read_timeout() const
int write(unsigned char *eeprom)
int get_usb_write_timeout() const
void set_usb_write_timeout(int usb_write_timeout)
ListType::reverse_iterator reverse_iterator
Reverse iterator type for the container.
ModemCtl
Modem control flags.
iterator erase(iterator pos)
int get_strings_and_reopen(bool vendor=true, bool description=true, bool serial=true)
int set_latency(unsigned char latency)
unsigned short poll_modem_status()
int build(unsigned char *output)
© Intra2net AG 2024
| Legal | Contact