rename BcdUsbVersion -> UsbVersion

This commit is contained in:
sawyer bristol 2024-12-02 16:07:10 -07:00
parent 180d816e00
commit fe2c82e98c

View File

@ -11,7 +11,7 @@ use crate::{Handler, Interface, UsbDevice, MAX_INTERFACE_COUNT, STRING_INDEX_CUS
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[non_exhaustive]
/// Allows Configuring the Bcd USB version below 2.1
pub enum BcdUsbVersion {
pub enum UsbVersion {
Two = 0x0200,
TwoOne = 0x0210,
}
@ -27,7 +27,7 @@ pub struct Config<'a> {
/// Device BCD USB version.
///
/// Default: `0x0210` ("2.1")
pub bcd_usb: BcdUsbVersion,
pub bcd_usb: UsbVersion,
/// Device class code assigned by USB.org. Set to `0xff` for vendor-specific
/// devices that do not conform to any class.
@ -122,7 +122,7 @@ impl<'a> Config<'a> {
vendor_id: vid,
product_id: pid,
device_release: 0x0010,
bcd_usb: BcdUsbVersion::TwoOne,
bcd_usb: UsbVersion::TwoOne,
manufacturer: None,
product: None,
serial_number: None,