__u8 bNumEndpoints; __u8 bInterfaceClass; __u8 bInterfaceSubClass; __u8 bInterfaceProtocol; __u8 iInterface; } __attribute__ ((packed)); #define USB_DT_INTERFACE_SIZE 9 代码语言:javascript 代码运行次数:0 运行 /* USB_DT_ENDPOINT: Endpoint descriptor */ struct usb_endpoint_descriptor {...
2.1 Video Interface Class: 视频接口类(Video interface class)将所有可以与 USB 兼容视频数据流交互的功能分组。事实上,Video interface class包含了VC和VS。 视频接口类有专门的code码标识: 2.2 Video Interface subclass and Protocol: Video interface class又细分两种subclass类: Video Control interface Video strea...
在USB协议中,HID设备的类型定义放置在接口描述符中,USB的设备描述符和配置描述符中不包含HID设备的信息。因此,对于某些特定的HID设备,可以定义多个接口,一个接口为HID设备类即可。。当USB一个设备为HID设备时,其设备描述符里面的bDeviceClass、bDeviceSubClass、bDeviceProtocol应为0,具体的定义在接口描述符中,接口描...
子类及接口采用的设备类协议USB Class CodesNovember17,2009USB defines class code information that is used to identify a devices functionality and to nominally load a device driver based on that functionality.The information is contained in three bytes with the names Base Class,SubClass,and Protocol.(...
USB驱动的EFI_DRIVER_BINDING_PROTOCOL Supported()函数的实现步骤: (1)检查设备控制器句柄是否已经安装了EFI_USB_IO_PROTOCOL。如果没有安装,则当前句柄并不是一个USB设备的句柄。 (2)使用EFI_USB_IO_PROTOCOL协议提供的服务读取USB设备描述符,获取并检查USB设备的InterfaceClass、InterfaceSubClass、InterfaceProtocol等...
USB\Class_c(2)&SubClass_s(2) USB\Class_c(2) 在这些兼容的 ID 中,c(2)、s(2)和 p(2)分别包含从 IAD 的bFunctionClass、bFunctionSubClass和bFunctionProtocol字段获取的值。 不能以递归方式使用 IAD 来绑定函数。 具体而言,如果设备在其固件中具有 IAD 描述符,泛型父驱动程序将不会按音频设备类对接...
bDeviceSubClass是设备子分类码。当前面的bDeviceClass值是0时,这里一定要设置为0。其它就跟据USB-IF组织定义的编码。 bDeviceProtocol是设备使用的协议。如果使用USB-IF组织定义的协议,就需要设置这里的值。如果不使用,就直接设置为0。如果厂商自己定义的可以设置为FFH。
4)bInterfaceClass、bInterfaceSubClass、bInterfaceProtocol:分别是接口所使用的类、子类、和协议,对应的代码(编号)由USB协议来定义。跟设备描述符中的意义很相像,设备描述符也有类似的三个域 (如果要开发自己的上位机,则这三个字段都设置为0xFF)。 5)iInterface:如果设置为0,则表示没有字符串。 8.1.2.4 端点描...
bInterfaceClass / bInterfaceSubClass / bInterfaceProtocol 接口使用的设备类协议版本信息,与设备描述符中的 bDeviceClass / bDeviceSubClass / bDeviceProtocol 类似。不同的是,设备描述符中的 bDeviceClass / bDeviceSubClass / bDeviceProtocol 作用域为整个USB设备,接口描述符中的值作用域仅为接口及下级的端点描...
https://www.usb.org/defined-class-codes class 包含 class subclass protocol 组合在一起,用来指出设备具体功能。 device class举例 DEVICE DESCRIPTOR bLength: 18 bDescriptorType: 0x01 (DEVICE) bcdUSB: 0x0200 bDeviceClass: Miscellaneous (0xef) ...