libftd3xx

Function library_version

Source
pub fn library_version() -> Result<u32, FT_STATUS>
Expand description

Returns the version of the underlying C library.

Note: The documentation says this function is only supported on Windows but it seems to work correctly on Linux.

ยงExample

use libftd2xx::library_version;

let version = library_version()?;
println!("libftd2xx C library version: {}", version);