[][src]Function libftd2xx::set_vid_pid

pub fn set_vid_pid(vid: u16, pid: u16) -> Result<(), FtStatus>

A command to include a custom VID and PID combination within the internal device list table. 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);