Rust safe wrapper for the [FTDI D2XX drivers].
This takes the [libftd2xx-ffi] C bindings crate and extends it with rust safe wrappers.
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.
toml
[dependencies]
libftd2xx = "~0.8.0"
This is a basic example to get your started. Check the source code or documentation for more examples. ```rust use libftd2xx::{Ftdi, FtdiCommon};
let mut ft = Ftdi::new()?; let info = ft.device_info()?; println!("Device information: {:?}", info); ```
Remove the VCP FTDI driver.
bash
sudo rmmod ftdi_sio
sudo rmmod usbserial
See [FTDI Drivers Installation Guide for Linux] for more details.
The README file is generated with [cargo-readme].
bash
cargo install cargo-readme
cargo readme > README.md