TpUsbDeviceInfo 类
V0.2.1TpExtUtils
2025-11-14
基础信息
| 头文件: | include <TpUsbDeviceInfo.h> |
|---|---|
| Cmake: | None |
| 发布版本: | V0.2.1 |
| 继承类: | |
| 派生类: |
Public 类型
enum TpUsbDeviceInfo::UsbDeviceClass
| 名称 | 值 | 描述 |
|---|---|---|
| TP_USB_CLASS_PER_INTERFACE | 0 | |
| TP_USB_CLASS_AUDIO | 1 | Audio class |
| TP_USB_CLASS_COMM | 2 | Communications class |
| TP_USB_CLASS_HID | 3 | Human Interface Device class |
| TP_USB_CLASS_PHYSICAL | 5 | Physical |
| TP_USB_CLASS_PRINTER | 7 | Printer class |
| TP_USB_CLASS_PTP | 6 | Image class |
| TP_USB_CLASS_IMAGE | 6 | |
| TP_USB_CLASS_MASS_STORAGE | 8 | Mass storage class |
| TP_USB_CLASS_HUB | 9 | Hub class |
| TP_USB_CLASS_DATA | 10 | Data class |
| TP_USB_CLASS_SMART_CARD | 0x0b | Smart Card |
| TP_USB_CLASS_CONTENT_SECURITY | 0x0d | Content Security |
| TP_USB_CLASS_VIDEO | 0x0e | Video |
| TP_USB_CLASS_PERSONAL_HEALTHCARE | 0x0f | Personal Healthcare |
| TP_USB_CLASS_DIAGNOSTIC_DEVICE | 0xdc | Diagnostic Device |
| TP_USB_CLASS_WIRELESS | 0xe0 | Wireless class |
| TP_USB_CLASS_APPLICATION | 0xfe | Application class |
| TP_USB_CLASS_VENDOR_SPEC | 0xff | Class is vendor-specific |
Public 成员函数
| TpUsbDeviceInfo(void *info) | ||
|---|---|---|
| ~TpUsbDeviceInfo() | ||
| TpUsbDeviceInfo::UsbDeviceClass | getClass() | 获取设备类型 |
| getSubClass() | 获取设备子类型 | |
| getVendorID() | 获取厂商ID | |
| getProductID() | 获取设备ID | |
| getBindPort() | 获取绑定端口,可以用于区分VID和PID相同的设备 |
成员函数说明
TpUsbDeviceInfo::TpUsbDeviceInfo(void *info)
暂无注释...
TpUsbDeviceInfo::~TpUsbDeviceInfo()
暂无注释...
TpUsbDeviceInfo::UsbDeviceClass TpUsbDeviceInfo::getClass()
获取设备类型...
获取设备类型
返回值:
tpUInt8 TpUsbDeviceInfo::getSubClass()
获取设备子类型...
获取设备子类型
返回值:
tpUInt16 TpUsbDeviceInfo::getVendorID()
获取厂商ID...
获取厂商ID
返回值:
tpUInt16 TpUsbDeviceInfo::getProductID()
获取设备ID...
获取设备ID
返回值:
tpUInt8 TpUsbDeviceInfo::getBindPort()
获取绑定端口,可以用于区分VID和PID相同的设备...
获取绑定端口,可以用于区分VID和PID相同的设备
返回值:
