[][src]Crate libftd2xx

libftd2xx rust library.

This takes the libftd2xx-ffi C bindings crate and extends it with rust safe wrappers.

Documentation for the underlying C API can be found here: D2xx Programmers Guide V1.4.

Downloads for the ftd2xx compiled releases (FTDI does not release source) can be found here: D2XX Drivers.

Licensing for the underlying driver can be found here: Driver License Terms.

Common Problems

Unknown Device on Linux

Remove the VCP FTDI driver.

sudo rmmod ftdi_sio
sudo rmmod usbserial

See FTDI Drivers Installation Guide for Linux for more details.

Compilation Errors on Windows

The bindgen dependency in the libftd2xx-ffi crate requires LLVM to be installed and the LIBCLANG_PATH environment variable.

See bindgen Windows install for more details.

Structs

DeviceInfo

FTDI device information.

FTDI

FTDI device. Start here!

Ftd2xxError

FTD2XX API errors.

Version

D2xx library version.

Enums

BitMode

BitModes for the FTDI ports.

DeviceType

FTDI device types.

Speed

USB device speed.

Functions

library_version

Returns the version of the underlying C library.

list_devices

This function returns a device information vector with information about the D2xx devices connected to the system.

num_devices

Returns the number of FTDI devices connected to the system.

Type Definitions

DWORD