libftd2xx 0.2.0

Rust safe wrapper around the libftd2xx-ffi crate.
Documentation

Build Status Maintenance crates.io docs.rs

libftd2xx

Rust safe wrapper for the FTDI D2XX drivers.

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

Usage

Simply add this crate as a dependency in your Cargo.toml. The static library is distributed in the libftd2xx-ffi crate with permission from FTDI.

[dependencies]
libftd2xx = "0.2"

This is a basic example to get your started. Check the source code or documentation for more examples.

use libftd2xx::Ftdi;

let mut ft = Ftdi::open_by_index(0)?;
let info = ft.device_info()?;
println!("Device information: {}", info);

References

Troubleshooting

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.

Maintainers Notes

README Generation

The README file is generated with [cargo-readme].

cargo install cargo-readme
cargo readme > README.md