diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-02-07 23:45:01 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2023-02-08 00:30:53 +0100 |
| commit | 86487db5d1773d2a764ab340051d70cfa40e4714 (patch) | |
| tree | d5051ead9e65ea0a51f315a4302c867d07cb2449 /embassy-usb/src/types.rs | |
| parent | 3af991ab63d14cfad6f50d28bfb944d1895d1c70 (diff) | |
usb: use InterfaceNumber in msos.
Diffstat (limited to 'embassy-usb/src/types.rs')
| -rw-r--r-- | embassy-usb/src/types.rs | 2 |
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)] | ||
| 6 | pub struct InterfaceNumber(pub u8); | 7 | pub struct InterfaceNumber(pub u8); |
| 7 | 8 | ||
| 8 | impl InterfaceNumber { | 9 | impl 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)] | ||
| 23 | pub struct StringIndex(pub u8); | 25 | pub struct StringIndex(pub u8); |
| 24 | 26 | ||
| 25 | impl StringIndex { | 27 | impl StringIndex { |
