uchar bLength; //设备描述符的字节数 uchar bDescriptorType; //设备描述符类型编号 uint bcdUSB; //USB版本号 uchar bDeviceClass; //USB分配的设备类 uchar bDeviceSubClass; //USB分配的设备子类 uchar bDeviceProtocol; //USB分配的设备协议代码 uchar b
class分为device class和interface class。具体的class值以及含义,参考define class。 https://www.usb.org/defined-class-codes class 包含 class subclass protocol 组合在一起,用来指出设备具体功能。 device class举例 DEVICE DESCRIPTOR bLength: 18 bDescriptorType: 0x01 (DEVICE) bcdUSB: 0x0200 bDeviceClass:...
/* USB_DT_INTERFACE: Interface descriptor */structusb_interface_descriptor{__u8bLength;__u8bDescriptorType;// 0x04__u8bInterfaceNumber;// 接口序号__u8bAlternateSetting;__u8bNumEndpoints;__u8bInterfaceClass;__u8bInterfaceSubClass;__u8bInterfaceProtocol;__u8iInterface;// 接口的字符串描述,同上...
/* USB_DT_DEVICE: Device descriptor */struct usb_device_descriptor{__u8 bLength;__u8 bDescriptorType;__le16 bcdUSB;__u8 bDeviceClass;__u8 bDeviceSubClass;__u8 bDeviceProtocol;__u8 bMaxPacketSize0;__le16 idVendor;__le16 idProduct;__le16 bcdDevice;__u8 iManufacturer;__u8 iProduct;...
当在/sys/kernel/config/usb_gadget/目录下实例化一个新的gadget实例(g1)时,首先调用gadget_root_type,在g1目录下生成bDeviceClass、bDeviceSubClass、bDeviceProtocol、bMaxPacketSize0、idVendor、idProduct、bcdDevice、bcdUSB、UDC属性文件,使用者可以在用户空间进行配置;接着调用functions_type,在g1目录下生成...
Interface Descriptor size */USB_INTERFACE_DESCRIPTOR_TYPE,/* bDescriptorType: Interface descriptor type */0x00,/* bInterfaceNumber: Number of Interface */0x00,/* bAlternateSetting: Alternate setting */0x02,/* bNumEndpoints 此接口有两个端点 */0x03,/* bInterfaceClass: HID */0x00,/* bInt...
USB Host functions to support Custom Class USB Devices. The Custom Class in the USB Host Component is used for attaching USB Devices with a specific USB Class to your system. This can either be one of the standard classes that are not directly supported by the USB Middleware or a vendor ...
// Table 9-8. Standard Device Descriptortypedefstruct_usb_deviceDescriptor_t{unsignedcharbLength;unsignedcharbDescriptorType;unsignedshortbcdUSB;unsignedcharbDeviceClass;unsignedcharbDeviceSubclass;unsignedcharbDeviceProtocol;unsignedcharbMaxPacketSize0;unsignedshortidVendor;unsignedshortidProduct;unsignedshortbcdDev...
换句话说,一个使用了 Type-C 接口的设备支持何种视频传输能力,实际上是与它支持的 USB 数据传输协议的版本并不直接对等的,因为两者使用的是不同的标准。 这也就是为什么在今年普通版的 iPhone 15 机型上,虽然只配备了速率上限 480Mbps 的 USB 2.0 接口,但依然可以有线连接显示器以最高 4K 60 帧的规格进行投...
USB\Class_01 并且具有以下排除项: INF USB\Class_01&SubClass_00&Prot_20 USB\Class_01&SubClass_01&Prot_20 USB\Class_01&SubClass_02&Prot_20 USB\Class_01&SubClass_03&Prot_20 由于Windows 音频堆栈的限制,共享模式下不支持任意数量的声道(大于 8 个)。