libftd2xx 0.24.1

Rust safe wrapper around the libftd2xx-ffi crate.
Documentation
1
2
3
4
5
6
7
8
9
use libftd2xx::{DeviceTypeError, Ft232h, FtdiEeprom};

fn main() -> Result<(), DeviceTypeError> {
    let mut ft = Ft232h::with_serial_number("FT5AVX6B")?;
    let (eeprom, eeprom_strings) = ft.eeprom_read()?;
    println!("FT232H EEPROM contents: {:?}", eeprom);
    println!("FT232H EEPROM strings: {:?}", eeprom_strings);
    Ok(())
}