summaryrefslogtreecommitdiff
path: root/embassy-usb
diff options
context:
space:
mode:
authoralexmoon <alex.r.moon@gmail.com>2022-04-02 11:58:01 -0400
committerDario Nieuwenhuis <dirbaio@dirbaio.net>2022-04-06 05:38:11 +0200
commit99f95a33c30b08359fcd72123fea01f4de0903ec (patch)
tree95297df73349718b02f55e759f07c6edfd0d9390 /embassy-usb
parentc8ad82057d25e6b9414c7065a750761e510d84d9 (diff)
downloadembassy-99f95a33c30b08359fcd72123fea01f4de0903ec.zip
Simplify hid output report handling
Diffstat (limited to 'embassy-usb')
-rw-r--r--embassy-usb/src/driver.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/embassy-usb/src/driver.rs b/embassy-usb/src/driver.rs
index 03e39b8c..82b59bd1 100644
--- a/embassy-usb/src/driver.rs
+++ b/embassy-usb/src/driver.rs
@@ -122,20 +122,12 @@ pub trait EndpointOut: Endpoint {
type ReadFuture<'a>: Future<Output = Result<usize, ReadError>> + 'a
where
Self: 'a;
- type DataReadyFuture<'a>: Future<Output = ()> + 'a
- where
- Self: 'a;
/// Reads a single packet of data from the endpoint, and returns the actual length of
/// the packet.
///
/// This should also clear any NAK flags and prepare the endpoint to receive the next packet.
fn read<'a>(&'a mut self, buf: &'a mut [u8]) -> Self::ReadFuture<'a>;
-
- /// Waits until a packet of data is ready to be read from the endpoint.
- ///
- /// A call to[`read()`](Self::read()) after this future completes should not block.
- fn wait_data_ready<'a>(&'a mut self) -> Self::DataReadyFuture<'a>;
}
pub trait ControlPipe {