usb-descriptor(三)

迷霧綠洲發表於2017-01-04

device_auqlifier

offset field size value description 描述
0 blength 1 number size of descriptor 長度
1 bdescriptortype 1 constant device qualifier type 描述符型別 0x6
2 bcdUSB 2 BCD USB specification version numeber (e.g.0200H for V2.00) 支援的usb規格版本號
4 bdeviceclass 1 class class code 裝置型別號
5 bdevicesubclass 1 subclass subclass code 裝置的子類號
6 bdeviceprotocol 1 protocol protocol code 支援裝置協議
7 bmaxpacketsize0 1 number maximum packet size for other speed 最大包尺寸
8 bnumconfigurations 1 number number of other-speed configurations 配置索引號
9 breserved 1 zero reserved for future use,must be zero 未來保留

Other_speed_configuration描述符
同時支援全速和高速的裝置,必須有一個other_speed_configuration描述符,詞描述符的結構和配置描述符相同,唯一的差別是other_speed_configurations描述符描述的是當裝置在非作用中速度時的配置,Other_speed_configuration描述符與裝置配置描述符相同。

other speed configuration

offset field size value description 描述
0 bLength 1 number size of descriptor
1 bdescriptortype 1 constant 描述符型別 :0x7
2 wtotallength 2 number 此資料傳回的資料總大小
4 bnumberinterface 1 number 支援的藉口總數
5 bconfigrationvalue 1 Set_configuration與get_configuration要求的識別符號
6 iconfigration 1 index 此配置的字串描述符的索引值
7 bmattributes 1 bitmap 自身電源/匯流排電源以及遠端喚醒設定
8 bmaxpower 1 mA 需要匯流排電源,標識法為(最大mA/2)

相關文章