aboutsummaryrefslogtreecommitdiff
path: root/embassy-usb/src/types.rs
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2023-02-07 23:45:01 +0100
committerDario Nieuwenhuis <[email protected]>2023-02-08 00:30:53 +0100
commit86487db5d1773d2a764ab340051d70cfa40e4714 (patch)
treed5051ead9e65ea0a51f315a4302c867d07cb2449 /embassy-usb/src/types.rs
parent3af991ab63d14cfad6f50d28bfb944d1895d1c70 (diff)
usb: use InterfaceNumber in msos.
Diffstat (limited to 'embassy-usb/src/types.rs')
-rw-r--r--embassy-usb/src/types.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/embassy-usb/src/types.rs b/embassy-usb/src/types.rs
index 15d195002..c7a47f7e4 100644
--- a/embassy-usb/src/types.rs
+++ b/embassy-usb/src/types.rs
@@ -3,6 +3,7 @@
3/// A handle for a USB interface that contains its number. 3/// A handle for a USB interface that contains its number.
4#[derive(Debug, Copy, Clone, Eq, PartialEq)] 4#[derive(Debug, Copy, Clone, Eq, PartialEq)]
5#[cfg_attr(feature = "defmt", derive(defmt::Format))] 5#[cfg_attr(feature = "defmt", derive(defmt::Format))]
6#[repr(transparent)]
6pub struct InterfaceNumber(pub u8); 7pub struct InterfaceNumber(pub u8);
7 8
8impl InterfaceNumber { 9impl InterfaceNumber {
@@ -20,6 +21,7 @@ impl From<InterfaceNumber> for u8 {
20/// A handle for a USB string descriptor that contains its index. 21/// A handle for a USB string descriptor that contains its index.
21#[derive(Copy, Clone, Eq, PartialEq)] 22#[derive(Copy, Clone, Eq, PartialEq)]
22#[cfg_attr(feature = "defmt", derive(defmt::Format))] 23#[cfg_attr(feature = "defmt", derive(defmt::Format))]
24#[repr(transparent)]
23pub struct StringIndex(pub u8); 25pub struct StringIndex(pub u8);
24 26
25impl StringIndex { 27impl StringIndex {