Function libftd2xx::set_vid_pid[][src]

pub fn set_vid_pid(vid: u16, pid: u16) -> Result<(), FtStatus>
This is supported on Unix only.
Expand description

A command to include a custom VID and PID combination within the internal device list table.

This function is available on Linux or mac only.

This will allow the driver to load for the specified VID and PID combination.

Example

use libftd2xx::{set_vid_pid, vid_pid};

set_vid_pid(0x1234, 0x1234)?;
let (vid, pid) = vid_pid()?;
assert_eq!(vid, 0x1234);
assert_eq!(pid, 0x1234);