From 7fa100887dd963f8ee1db48278203e33c9f5f7b4 Mon Sep 17 00:00:00 2001 From: Oliver Rockstedt Date: Fri, 11 Oct 2024 14:24:07 +0200 Subject: [PATCH] Support for USB 1.0 and 1.0 in UsbRev enum --- CHANGELOG.md | 1 + src/device.rs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e0183a4..aeb10f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Added * `DummyUsbBus` without functionality to allow examples that actually compile (but not run). +* Extended `UsbRev` enum with variants for USB 1.0 and 1.1. ### Changed diff --git a/src/device.rs b/src/device.rs index a7b5345..398f6a3 100644 --- a/src/device.rs +++ b/src/device.rs @@ -34,6 +34,10 @@ const MAX_ENDPOINTS: usize = 16; #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] #[repr(u16)] pub enum UsbRev { + /// USB 1.0 compliance + Usb100 = 0x100, + /// USB 1.1 compliance + Usb110 = 0x110, /// USB 2.0 compliance Usb200 = 0x200, /// USB 2.1 compliance.