diff options
Diffstat (limited to 'embassy-usb/src/builder.rs')
| -rw-r--r-- | embassy-usb/src/builder.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/embassy-usb/src/builder.rs b/embassy-usb/src/builder.rs index e1bf8041f..c7d83e710 100644 --- a/embassy-usb/src/builder.rs +++ b/embassy-usb/src/builder.rs | |||
| @@ -15,6 +15,11 @@ pub struct Config<'a> { | |||
| 15 | pub(crate) vendor_id: u16, | 15 | pub(crate) vendor_id: u16, |
| 16 | pub(crate) product_id: u16, | 16 | pub(crate) product_id: u16, |
| 17 | 17 | ||
| 18 | /// Device BCD USB version. | ||
| 19 | /// | ||
| 20 | /// Default: `0x02` ("2.1") | ||
| 21 | pub bcd_usb: u16, | ||
| 22 | |||
| 18 | /// Device class code assigned by USB.org. Set to `0xff` for vendor-specific | 23 | /// Device class code assigned by USB.org. Set to `0xff` for vendor-specific |
| 19 | /// devices that do not conform to any class. | 24 | /// devices that do not conform to any class. |
| 20 | /// | 25 | /// |
| @@ -108,6 +113,7 @@ impl<'a> Config<'a> { | |||
| 108 | vendor_id: vid, | 113 | vendor_id: vid, |
| 109 | product_id: pid, | 114 | product_id: pid, |
| 110 | device_release: 0x0010, | 115 | device_release: 0x0010, |
| 116 | bcd_usb: 0x02, | ||
| 111 | manufacturer: None, | 117 | manufacturer: None, |
| 112 | product: None, | 118 | product: None, |
| 113 | serial_number: None, | 119 | serial_number: None, |
