ftdi_context - Online Linux Manual PageSection : 3
Updated : 17 Sep 2010
Source : Version 0.18
Note : libftdi

NAMEftdi_context − Main context structure for all libftdi functions.

SYNOPSIS
#include <ftdi.h>

Public Attributesstruct usb_dev_handle * usb_dev
int usb_read_timeout
int usb_write_timeout
enum ftdi_chip_type type
int baudrate
unsigned char bitbang_enabled
unsigned char * readbuffer
unsigned int readbuffer_offset
unsigned int readbuffer_remaining
unsigned int readbuffer_chunksize
unsigned int writebuffer_chunksize
unsigned int max_packet_size
int interface
int index
int in_ep
int out_ep
unsigned char bitbang_mode
int eeprom_size
char * error_str
char * async_usb_buffer
unsigned int async_usb_buffer_size

Detailed DescriptionMain context structure for all libftdi functions. Do not access directly if possible. Definition at line 166 of file ftdi.h.

Member Data Documentation

struct usb_dev_handle* ftdi_context::usb_dev [read] libusb's usb_dev_handleDefinition at line 170 of file ftdi.h. Referenced by ftdi_disable_bitbang(), ftdi_enable_bitbang(), ftdi_erase_eeprom(), ftdi_get_latency_timer(), ftdi_init(), ftdi_poll_modem_status(), ftdi_read_chipid(), ftdi_read_data(), ftdi_read_eeprom(), ftdi_read_eeprom_getsize(), ftdi_read_eeprom_location(), ftdi_read_pins(), ftdi_set_baudrate(), ftdi_set_bitmode(), ftdi_set_error_char(), ftdi_set_event_char(), ftdi_set_latency_timer(), ftdi_set_line_property2(), ftdi_set_usbdev(), ftdi_setdtr(), ftdi_setdtr_rts(), ftdi_setflowctrl(), ftdi_setrts(), ftdi_usb_close(), ftdi_usb_get_strings(), ftdi_usb_open_desc_index(), ftdi_usb_open_dev(), ftdi_usb_purge_buffers(), ftdi_usb_purge_rx_buffer(), ftdi_usb_purge_tx_buffer(), ftdi_usb_reset(), ftdi_write_data(), ftdi_write_data_async(), ftdi_write_eeprom(), and ftdi_write_eeprom_location().

int ftdi_context::usb_read_timeout usb read timeoutDefinition at line 172 of file ftdi.h. Referenced by ftdi_get_latency_timer(), ftdi_init(), ftdi_poll_modem_status(), ftdi_read_chipid(), ftdi_read_data(), ftdi_read_eeprom(), ftdi_read_eeprom_getsize(), ftdi_read_eeprom_location(), and ftdi_read_pins().

int ftdi_context::usb_write_timeout usb write timeoutDefinition at line 174 of file ftdi.h. Referenced by ftdi_async_complete(), ftdi_disable_bitbang(), ftdi_enable_bitbang(), ftdi_erase_eeprom(), ftdi_init(), ftdi_set_baudrate(), ftdi_set_bitmode(), ftdi_set_error_char(), ftdi_set_event_char(), ftdi_set_latency_timer(), ftdi_set_line_property2(), ftdi_setdtr(), ftdi_setdtr_rts(), ftdi_setflowctrl(), ftdi_setrts(), ftdi_usb_purge_rx_buffer(), ftdi_usb_purge_tx_buffer(), ftdi_usb_reset(), ftdi_write_data(), ftdi_write_eeprom(), and ftdi_write_eeprom_location().

enum ftdi_chip_type ftdi_context::type FTDI chip typeDefinition at line 178 of file ftdi.h. Referenced by ftdi_init(), and ftdi_usb_open_dev().

int ftdi_context::baudrate baudrateDefinition at line 180 of file ftdi.h. Referenced by ftdi_init(), and ftdi_set_baudrate().

unsigned char ftdi_context::bitbang_enabled bitbang mode stateDefinition at line 182 of file ftdi.h. Referenced by ftdi_disable_bitbang(), ftdi_enable_bitbang(), ftdi_init(), ftdi_set_baudrate(), and ftdi_set_bitmode().

unsigned char* ftdi_context::readbuffer pointer to read buffer for ftdi_read_dataDefinition at line 184 of file ftdi.h. Referenced by ftdi_deinit(), ftdi_init(), ftdi_read_data(), and ftdi_read_data_set_chunksize().

unsigned int ftdi_context::readbuffer_offset read buffer offsetDefinition at line 186 of file ftdi.h. Referenced by ftdi_init(), ftdi_read_data(), ftdi_read_data_set_chunksize(), ftdi_usb_purge_rx_buffer(), and ftdi_usb_reset().

unsigned int ftdi_context::readbuffer_remaining number of remaining data in internal read bufferDefinition at line 188 of file ftdi.h. Referenced by ftdi_init(), ftdi_read_data(), ftdi_read_data_set_chunksize(), ftdi_usb_purge_rx_buffer(), and ftdi_usb_reset().

unsigned int ftdi_context::readbuffer_chunksize read buffer chunk sizeDefinition at line 190 of file ftdi.h. Referenced by ftdi_read_data(), ftdi_read_data_get_chunksize(), and ftdi_read_data_set_chunksize().

unsigned int ftdi_context::writebuffer_chunksize write buffer chunk sizeDefinition at line 192 of file ftdi.h. Referenced by ftdi_init(), ftdi_write_data(), ftdi_write_data_async(), ftdi_write_data_get_chunksize(), and ftdi_write_data_set_chunksize().

unsigned int ftdi_context::max_packet_size maximum packet size. Needed for filtering modem status bytes every n packets.Definition at line 194 of file ftdi.h. Referenced by ftdi_init(), ftdi_read_data(), and ftdi_usb_open_dev().

int ftdi_context::interface FT2232C interface number: 0 or 1Definition at line 198 of file ftdi.h. Referenced by ftdi_init(), ftdi_set_interface(), ftdi_usb_close(), and ftdi_usb_open_dev().

int ftdi_context::index FT2232C index number: 1 or 2Definition at line 200 of file ftdi.h. Referenced by ftdi_disable_bitbang(), ftdi_enable_bitbang(), ftdi_get_latency_timer(), ftdi_init(), ftdi_poll_modem_status(), ftdi_read_pins(), ftdi_set_bitmode(), ftdi_set_error_char(), ftdi_set_event_char(), ftdi_set_interface(), ftdi_set_latency_timer(), ftdi_set_line_property2(), ftdi_setdtr(), ftdi_setdtr_rts(), ftdi_setflowctrl(), ftdi_setrts(), ftdi_usb_open_dev(), ftdi_usb_purge_rx_buffer(), ftdi_usb_purge_tx_buffer(), and ftdi_usb_reset().

int ftdi_context::in_ep FT2232C end points: 1 or 2Definition at line 203 of file ftdi.h. Referenced by ftdi_init(), ftdi_set_interface(), ftdi_write_data(), and ftdi_write_data_async().

int ftdi_context::out_epDefinition at line 204 of file ftdi.h. Referenced by ftdi_init(), ftdi_read_data(), and ftdi_set_interface().

unsigned char ftdi_context::bitbang_mode Bitbang mode. 1: (default) Normal bitbang mode, 2: FT2232C SPI bitbang modeDefinition at line 207 of file ftdi.h. Referenced by ftdi_enable_bitbang(), ftdi_init(), and ftdi_set_bitmode().

int ftdi_context::eeprom_size EEPROM size. Default is 128 bytes for 232BM and 245BM chipsDefinition at line 210 of file ftdi.h. Referenced by ftdi_eeprom_setsize(), ftdi_init(), ftdi_read_eeprom(), and ftdi_write_eeprom().

char* ftdi_context::error_str String representation of last errorDefinition at line 213 of file ftdi.h. Referenced by ftdi_get_error_string(), and ftdi_init().

char* ftdi_context::async_usb_buffer Buffer needed for async communicationDefinition at line 216 of file ftdi.h. Referenced by ftdi_deinit(), and ftdi_init().

unsigned int ftdi_context::async_usb_buffer_size Number of URB-structures we can bufferDefinition at line 218 of file ftdi.h. Referenced by ftdi_init().

AuthorGenerated automatically by Doxygen for libftdi from the source code.
0
Johanes Gumabo
Data Size   :   30,908 byte
man-ftdi_context.3Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 199,779
Visitor ID   :     :  
Visitor IP   :   3.147.78.249   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.