We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96abcb2 commit 60e7e93Copy full SHA for 60e7e93
src/test_class.rs
@@ -9,13 +9,15 @@ use crate::descriptor;
9
#[cfg(feature = "test-class-high-speed")]
10
mod sizes {
11
pub const BUFFER: usize = 1024;
12
+ pub const CONTROL_ENDPOINT: u8 = 64;
13
pub const BULK_ENDPOINT: u16 = 512;
14
pub const INTERRUPT_ENDPOINT: u16 = 1024;
15
}
16
17
#[cfg(not(feature = "test-class-high-speed"))]
18
19
pub const BUFFER: usize = 256;
20
+ pub const CONTROL_ENDPOINT: u8 = 8;
21
pub const BULK_ENDPOINT: u16 = 64;
22
pub const INTERRUPT_ENDPOINT: u16 = 31;
23
@@ -87,6 +89,7 @@ impl<B: UsbBus> TestClass<'_, B> {
87
89
.manufacturer(MANUFACTURER)
88
90
.product(PRODUCT)
91
.serial_number(SERIAL_NUMBER)
92
+ .max_packet_size_0(sizes::CONTROL_ENDPOINT)
93
.build()
94
95
0 commit comments