File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -438,6 +438,7 @@ fn parse_usb_version(s: &str) -> Result<UsbVersion> {
438438 match s {
439439 "1.1" => Ok ( UsbVersion :: V11 ) ,
440440 "2.0" => Ok ( UsbVersion :: V20 ) ,
441+ "2.1" => Ok ( UsbVersion :: V21 ) ,
441442 "3.0" => Ok ( UsbVersion :: V30 ) ,
442443 "3.1" => Ok ( UsbVersion :: V31 ) ,
443444 _ => {
Original file line number Diff line number Diff line change @@ -248,6 +248,8 @@ pub enum UsbVersion {
248248 /// USB 2.0
249249 #[ default]
250250 V20 ,
251+ /// USB 2.0 with BOS descriptor support (bcdUSB 0x0201), needed for WinUSB.
252+ V21 ,
251253 /// USB 3.0
252254 V30 ,
253255 /// USB 3.1
@@ -261,6 +263,7 @@ impl From<UsbVersion> for u16 {
261263 match value {
262264 UsbVersion :: V11 => 0x0110 ,
263265 UsbVersion :: V20 => 0x0200 ,
266+ UsbVersion :: V21 => 0x0201 ,
264267 UsbVersion :: V30 => 0x0300 ,
265268 UsbVersion :: V31 => 0x0310 ,
266269 UsbVersion :: Other ( ver) => ver,
You can’t perform that action at this time.
0 commit comments