#[repr(u32)]pub enum DeviceType {
Show 25 variants
FTBM = 0,
FTAM = 1,
FT100AX = 2,
Unknown = 3,
FT2232C = 4,
FT232R = 5,
FT2232H = 6,
FT4232H = 7,
FT232H = 8,
FT_X_SERIES = 9,
FT4222H_0 = 10,
FT4222H_1_2 = 11,
FT4222H_3 = 12,
FT4222_PROG = 13,
FT900 = 14,
FT930 = 15,
FTUMFTPD3A = 16,
FT2233HP = 17,
FT4233HP = 18,
FT2232HP = 19,
FT4232HP = 20,
FT233HP = 21,
FT232HP = 22,
FT2232HA = 23,
FT4232HA = 24,
}
Expand description
FTDI device types.
There is an unfortunate lack of documentation for which chip shows up as which device with the FTD2XX driver.
This is used in the DeviceInfo
struct.
Variants§
FTBM = 0
FTDI BM device.
FTAM = 1
FTDI AM device.
FT100AX = 2
FTDI 100AX device.
Unknown = 3
Unknown FTDI device.
This frequently occurs on Linux when the VCP FTDI driver is in use.
The driver can be removed with these commands.
sudo rmmod ftdi_sio
sudo rmmod usbserial
See FTDI Drivers Installation Guide for Linux for more details.
FT2232C = 4
FTDI 2232C device.
The FTDI 2232D also appears as a FTDI 2232C.
FT232R = 5
FTDI 232R device.
FT2232H = 6
FT2232H device.
FT4232H = 7
FT4232H device.
FT232H = 8
FT232H device.
FT_X_SERIES = 9
FTDI x series device.
FT4222H_0 = 10
FT4222H device.
FT4222H_1_2 = 11
FT4222H device.
FT4222H_3 = 12
FT4222H device.
FT4222_PROG = 13
FT4222 device.
FT900 = 14
FT900 device.
FT930 = 15
FT930 device.
FTUMFTPD3A = 16
FTUMFTPD3A device.
FT2233HP = 17
FT2233HP device.
FT4233HP = 18
FT4233HP device.
FT2232HP = 19
FT2232HP device.
FT4232HP = 20
FT4232HP device.
FT233HP = 21
FT233HP device.
FT232HP = 22
FT232HP device.
FT2232HA = 23
FT2232HA device.
FT4232HA = 24
FT4232HA device.
Implementations§
Source§impl DeviceType
impl DeviceType
Sourcepub const fn with_pid(pid: u16) -> Option<DeviceType>
pub const fn with_pid(pid: u16) -> Option<DeviceType>
Get a device type with a USB product ID.
This is not entirely accurate since some devices share the same PID.
§Example
use libftd2xx::DeviceType;
let my_device: Option<DeviceType> = DeviceType::with_pid(0x6014);
assert_eq!(my_device, Some(DeviceType::FT232H));
Trait Implementations§
Source§impl Clone for DeviceType
impl Clone for DeviceType
Source§fn clone(&self) -> DeviceType
fn clone(&self) -> DeviceType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more