aboutsummaryrefslogtreecommitdiff
path: root/embassy-usb/src/builder.rs
diff options
context:
space:
mode:
authorsawyer bristol <[email protected]>2024-11-29 20:29:43 -0700
committersawyer bristol <[email protected]>2024-11-29 20:29:43 -0700
commitd0b1819aa52666a4fca37211ddab82b01eea84ce (patch)
treeb1cadca3e49f242d0cf268f9ed43456e361eaaf3 /embassy-usb/src/builder.rs
parent1a1d5c4689a8b6c57ebb74e99fdea8df39adb037 (diff)
custom bcd usb version
Diffstat (limited to 'embassy-usb/src/builder.rs')
-rw-r--r--embassy-usb/src/builder.rs6
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,