diff options
| author | alexmoon <[email protected]> | 2022-04-02 11:58:01 -0400 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2022-04-06 05:38:11 +0200 |
| commit | 99f95a33c30b08359fcd72123fea01f4de0903ec (patch) | |
| tree | 95297df73349718b02f55e759f07c6edfd0d9390 /embassy-usb | |
| parent | c8ad82057d25e6b9414c7065a750761e510d84d9 (diff) | |
Simplify hid output report handling
Diffstat (limited to 'embassy-usb')
| -rw-r--r-- | embassy-usb/src/driver.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/embassy-usb/src/driver.rs b/embassy-usb/src/driver.rs index 03e39b8c9..82b59bd1e 100644 --- a/embassy-usb/src/driver.rs +++ b/embassy-usb/src/driver.rs | |||
| @@ -122,20 +122,12 @@ pub trait EndpointOut: Endpoint { | |||
| 122 | type ReadFuture<'a>: Future<Output = Result<usize, ReadError>> + 'a | 122 | type ReadFuture<'a>: Future<Output = Result<usize, ReadError>> + 'a |
| 123 | where | 123 | where |
| 124 | Self: 'a; | 124 | Self: 'a; |
| 125 | type DataReadyFuture<'a>: Future<Output = ()> + 'a | ||
| 126 | where | ||
| 127 | Self: 'a; | ||
| 128 | 125 | ||
| 129 | /// Reads a single packet of data from the endpoint, and returns the actual length of | 126 | /// Reads a single packet of data from the endpoint, and returns the actual length of |
| 130 | /// the packet. | 127 | /// the packet. |
| 131 | /// | 128 | /// |
| 132 | /// This should also clear any NAK flags and prepare the endpoint to receive the next packet. | 129 | /// This should also clear any NAK flags and prepare the endpoint to receive the next packet. |
| 133 | fn read<'a>(&'a mut self, buf: &'a mut [u8]) -> Self::ReadFuture<'a>; | 130 | fn read<'a>(&'a mut self, buf: &'a mut [u8]) -> Self::ReadFuture<'a>; |
| 134 | |||
| 135 | /// Waits until a packet of data is ready to be read from the endpoint. | ||
| 136 | /// | ||
| 137 | /// A call to[`read()`](Self::read()) after this future completes should not block. | ||
| 138 | fn wait_data_ready<'a>(&'a mut self) -> Self::DataReadyFuture<'a>; | ||
| 139 | } | 131 | } |
| 140 | 132 | ||
| 141 | pub trait ControlPipe { | 133 | pub trait ControlPipe { |
