diff options
| author | Dario Nieuwenhuis <[email protected]> | 2024-04-09 17:40:57 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-04-09 17:40:57 +0000 |
| commit | c575c7dc6cab49a99f36eedbdd41e97868e1102b (patch) | |
| tree | 8bee3b529d8e6dde2798fc4cae963d676d037da6 | |
| parent | 029636e6fc06b484898c5935957b33b60a9c88b2 (diff) | |
| parent | 03a87add156258ebb14d96e7d0b6b8597015e69a (diff) | |
Merge pull request #2794 from simpkins/usb_mps
USB: fix comments about the config.max_packet_size_0 field
| -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. |
