diff options
| author | sawyer bristol <[email protected]> | 2024-12-02 16:07:10 -0700 |
|---|---|---|
| committer | sawyer bristol <[email protected]> | 2024-12-02 16:07:10 -0700 |
| commit | fe2c82e98cfe843eeb01196e3fc19fac61b6e6bf (patch) | |
| tree | d89b41d96b8686dfbc04e91a371589ebdd96ed56 /embassy-usb/src | |
| parent | 180d816e00a9575da95682782da25409eb7deb68 (diff) | |
rename BcdUsbVersion -> UsbVersion
Diffstat (limited to 'embassy-usb/src')
| -rw-r--r-- | embassy-usb/src/builder.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/embassy-usb/src/builder.rs b/embassy-usb/src/builder.rs index 9e5aa0574..6c42b07dc 100644 --- a/embassy-usb/src/builder.rs +++ b/embassy-usb/src/builder.rs | |||
| @@ -11,7 +11,7 @@ use crate::{Handler, Interface, UsbDevice, MAX_INTERFACE_COUNT, STRING_INDEX_CUS | |||
| 11 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | 11 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] |
| 12 | #[non_exhaustive] | 12 | #[non_exhaustive] |
| 13 | /// Allows Configuring the Bcd USB version below 2.1 | 13 | /// Allows Configuring the Bcd USB version below 2.1 |
| 14 | pub enum BcdUsbVersion { | 14 | pub enum UsbVersion { |
| 15 | Two = 0x0200, | 15 | Two = 0x0200, |
| 16 | TwoOne = 0x0210, | 16 | TwoOne = 0x0210, |
| 17 | } | 17 | } |
| @@ -27,7 +27,7 @@ pub struct Config<'a> { | |||
| 27 | /// Device BCD USB version. | 27 | /// Device BCD USB version. |
| 28 | /// | 28 | /// |
| 29 | /// Default: `0x0210` ("2.1") | 29 | /// Default: `0x0210` ("2.1") |
| 30 | pub bcd_usb: BcdUsbVersion, | 30 | pub bcd_usb: UsbVersion, |
| 31 | 31 | ||
| 32 | /// Device class code assigned by USB.org. Set to `0xff` for vendor-specific | 32 | /// Device class code assigned by USB.org. Set to `0xff` for vendor-specific |
| 33 | /// devices that do not conform to any class. | 33 | /// devices that do not conform to any class. |
| @@ -122,7 +122,7 @@ impl<'a> Config<'a> { | |||
| 122 | vendor_id: vid, | 122 | vendor_id: vid, |
| 123 | product_id: pid, | 123 | product_id: pid, |
| 124 | device_release: 0x0010, | 124 | device_release: 0x0010, |
| 125 | bcd_usb: BcdUsbVersion::TwoOne, | 125 | bcd_usb: UsbVersion::TwoOne, |
| 126 | manufacturer: None, | 126 | manufacturer: None, |
| 127 | product: None, | 127 | product: None, |
| 128 | serial_number: None, | 128 | serial_number: None, |
