diff options
Diffstat (limited to 'embassy-usb')
| -rw-r--r-- | embassy-usb/src/builder.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/embassy-usb/src/builder.rs b/embassy-usb/src/builder.rs index c06107396..387b780de 100644 --- a/embassy-usb/src/builder.rs +++ b/embassy-usb/src/builder.rs | |||
| @@ -38,11 +38,12 @@ pub struct Config<'a> { | |||
| 38 | 38 | ||
| 39 | /// Maximum packet size in bytes for the control endpoint 0. | 39 | /// Maximum packet size in bytes for the control endpoint 0. |
| 40 | /// | 40 | /// |
| 41 | /// Valid values are 8, 16, 32 and 64. There's generally no need to change this from the default | 41 | /// Valid values depend on the speed at which the bus is enumerated. |
| 42 | /// value of 8 bytes unless a class uses control transfers for sending large amounts of data, in | 42 | /// - low speed: 8 |
| 43 | /// which case using a larger packet size may be more efficient. | 43 | /// - full speed: 8, 16, 32, or 64 |
| 44 | /// - high speed: 64 | ||
| 44 | /// | 45 | /// |
| 45 | /// Default: 8 bytes | 46 | /// Default: 64 bytes |
| 46 | pub max_packet_size_0: u8, | 47 | pub max_packet_size_0: u8, |
| 47 | 48 | ||
| 48 | /// Manufacturer name string descriptor. | 49 | /// Manufacturer name string descriptor. |
