X-Git-Url: http://developer.intra2net.com/git/?a=blobdiff_plain;f=src%2Fftdi.h;h=759e61b5c783f3c491d89558d732033528fef019;hb=92cbae17a56ce3c6e5f01ea89dafaec75d865be7;hp=20ecc26378cda4159f23f66cc865690b8daaa584;hpb=44f41f11993945b0129741e39cef96d9f9cf10b6;p=libftdi diff --git a/src/ftdi.h b/src/ftdi.h index 20ecc26..759e61b 100644 --- a/src/ftdi.h +++ b/src/ftdi.h @@ -249,7 +249,7 @@ struct ftdi_eeprom /* Special function of FT232R/FT232H devices (and possibly others as well) */ /** CBUS pin function. See CBUS_xxx defines. */ - int cbus_function[9]; + int cbus_function[10]; /** Select hight current drive on R devices. */ int high_current; /** Select hight current drive on A channel (2232C */ @@ -498,6 +498,23 @@ typedef struct typedef int (FTDIStreamCallback)(uint8_t *buffer, int length, FTDIProgressInfo *progress, void *userdata); +/** + * Provide libftdi version information + * major: Library major version + * minor: Library minor version + * micro: Currently unused, ight get used for hotfixes. + * version_str: Version as (static) string + * snapshot_str: Git snapshot version if known. Otherwise "unknown" or empty string. +*/ +struct ftdi_version_info +{ + int major; + int minor; + int micro; + const char *version_str; + const char *snapshot_str; +}; + #ifdef __cplusplus extern "C" @@ -512,6 +529,8 @@ extern "C" void ftdi_free(struct ftdi_context *ftdi); void ftdi_set_usbdev (struct ftdi_context *ftdi, struct libusb_device_handle *usbdev); + struct ftdi_version_info ftdi_get_library_version(); + int ftdi_usb_find_all(struct ftdi_context *ftdi, struct ftdi_device_list **devlist, int vendor, int product); void ftdi_list_free(struct ftdi_device_list **devlist);