#include <ftdi.hpp>
Public Types | |
| enum | Direction { Input, Output } |
| Direction flags for flush(). More... | |
| enum | ModemCtl { Dtr, Rts } |
| Modem control flags. More... | |
Public Member Functions | |
| Context () | |
| Constructor. | |
| ~Context () | |
| Destructor. | |
| Eeprom * | eeprom () |
| const std::string & | vendor () |
| const std::string & | description () |
| const std::string & | serial () |
| bool | is_open () |
| int | open (struct usb_device *dev=0) |
| int | open (int vendor, int product, const std::string &description=std::string(), const std::string &serial=std::string()) |
| int | close () |
| int | reset () |
| int | flush (int mask=Input|Output) |
| int | set_interface (enum ftdi_interface interface) |
| void | set_usb_device (struct usb_dev_handle *dev) |
| 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 | read (unsigned char *buf, int size) |
| int | write (unsigned char *buf, int size) |
| int | set_read_chunk_size (unsigned int chunksize) |
| int | set_write_chunk_size (unsigned int chunksize) |
| int | read_chunk_size () |
| int | write_chunk_size () |
| int | set_event_char (unsigned char eventch, unsigned char enable) |
| int | set_error_char (unsigned char errorch, unsigned char enable) |
| int | set_flow_control (int flowctrl) |
| int | set_modem_control (int mask=Dtr|Rts) |
| int | set_latency (unsigned char latency) |
| int | set_dtr (bool state) |
| int | set_rts (bool state) |
| unsigned short | poll_modem_status () |
| unsigned | latency () |
| int | set_bitmode (unsigned char bitmask, unsigned char mode) |
| int | bitbang_enable (unsigned char bitmask) |
| int | bitbang_disable () |
| int | read_pins (unsigned char *pins) |
| char * | error_string () |
Protected Member Functions | |
| int | get_strings () |
| ftdi_context * | context () |
| void | set_context (struct ftdi_context *context) |
| void | set_usb_device (struct usb_device *dev) |
Friends | |
| class | Eeprom |
| class | List |
Classes | |
| class | Private |
Definition at line 47 of file ftdi.hpp.
|
|
Direction flags for flush().
|
|
|
Modem control flags.
|
|
|
Constructor.
|
|
|
Destructor.
|
|
|
|
|
|
Definition at line 311 of file ftdi.cpp. Referenced by get_strings(). |
|
|
|
|
|
Definition at line 321 of file ftdi.cpp. Referenced by get_strings(). |
|
|
|
|
|
Definition at line 103 of file ftdi.cpp. References ftdi_usb_open_dev(), and get_strings(). |
|
||||||||||||||||||||
|
Definition at line 80 of file ftdi.cpp. References ftdi_usb_open(), ftdi_usb_open_desc(), ftdi_usb_open_dev(), and get_strings(). |
|
|
Definition at line 121 of file ftdi.cpp. References ftdi_usb_close(). |
|
|
Definition at line 127 of file ftdi.cpp. References ftdi_usb_reset(). |
|
|
Definition at line 132 of file ftdi.cpp. References ftdi_usb_purge_rx_buffer(), ftdi_usb_purge_tx_buffer(), Input, and Output. |
|
|
Definition at line 144 of file ftdi.cpp. References ftdi_set_interface(). |
|
|
Definition at line 149 of file ftdi.cpp. References ftdi_set_usbdev(). |
|
|
Definition at line 155 of file ftdi.cpp. References ftdi_set_baudrate(). |
|
||||||||||||||||
|
Definition at line 160 of file ftdi.cpp. References ftdi_set_line_property(). |
|
||||||||||||||||||||
|
Definition at line 165 of file ftdi.cpp. References ftdi_set_line_property2(). |
|
||||||||||||
|
Definition at line 170 of file ftdi.cpp. References ftdi_read_data(). |
|
||||||||||||
|
Definition at line 189 of file ftdi.cpp. References ftdi_write_data(). |
|
|
Definition at line 175 of file ftdi.cpp. References ftdi_read_data_set_chunksize(). |
|
|
Definition at line 194 of file ftdi.cpp. References ftdi_write_data_set_chunksize(). |
|
|
Definition at line 180 of file ftdi.cpp. References ftdi_read_data_get_chunksize(). |
|
|
Definition at line 199 of file ftdi.cpp. References ftdi_write_data_get_chunksize(). |
|
||||||||||||
|
Definition at line 254 of file ftdi.cpp. References ftdi_set_event_char(). |
|
||||||||||||
|
Definition at line 259 of file ftdi.cpp. References ftdi_set_error_char(). |
|
|
Definition at line 208 of file ftdi.cpp. References ftdi_setflowctrl(). |
|
|
Definition at line 213 of file ftdi.cpp. References Dtr, ftdi_setdtr_rts(), and Rts. |
|
|
Definition at line 235 of file ftdi.cpp. References ftdi_set_latency_timer(). |
|
|
Definition at line 225 of file ftdi.cpp. References ftdi_setdtr(). |
|
|
Definition at line 230 of file ftdi.cpp. References ftdi_setrts(). |
|
|
Definition at line 247 of file ftdi.cpp. References ftdi_poll_modem_status(). |
|
|
Definition at line 240 of file ftdi.cpp. References ftdi_get_latency_timer(). |
|
||||||||||||
|
Definition at line 274 of file ftdi.cpp. References ftdi_set_bitmode(). |
|
|
Definition at line 264 of file ftdi.cpp. References ftdi_enable_bitbang(). |
|
|
Definition at line 269 of file ftdi.cpp. References ftdi_disable_bitbang(). |
|
|
Definition at line 279 of file ftdi.cpp. References ftdi_read_pins(). |
|
|
Definition at line 284 of file ftdi.cpp. References ftdi_get_error_string(). |
|
|
Definition at line 289 of file ftdi.cpp. References ftdi_usb_get_strings(), serial(), and vendor(). Referenced by Ftdi::List::List(), and open(). |
|
|
Definition at line 337 of file ftdi.cpp. Referenced by Ftdi::Eeprom::Eeprom(), and set_context(). |
|
|
Definition at line 326 of file ftdi.cpp. References context(), and ftdi_free(). |
|
|
|
|
|
|
|
|
|
1.4.6