summaryrefslogtreecommitdiff
path: root/embassy-traits
diff options
context:
space:
mode:
authorxoviat <xoviat@gmail.com>2021-04-02 13:52:31 -0500
committerxoviat <xoviat@gmail.com>2021-04-02 13:52:31 -0500
commit6f0fb6cab1eba53758a7a2282de4d7f25082fac0 (patch)
treef1627b000042a295c5aa43821b06696571b772c4 /embassy-traits
parent388558263b84167a3b18003dd886c5ab49968078 (diff)
downloadembassy-6f0fb6cab1eba53758a7a2282de4d7f25082fac0.zip
remove qei trait
Diffstat (limited to 'embassy-traits')
-rw-r--r--embassy-traits/src/lib.rs1
-rw-r--r--embassy-traits/src/qei.rs22
2 files changed, 0 insertions, 23 deletions
diff --git a/embassy-traits/src/lib.rs b/embassy-traits/src/lib.rs
index 81a847ef..ea59444c 100644
--- a/embassy-traits/src/lib.rs
+++ b/embassy-traits/src/lib.rs
@@ -12,6 +12,5 @@ pub mod delay;
pub mod flash;
pub mod gpio;
pub mod i2c;
-pub mod qei;
pub mod spi;
pub mod uart;
diff --git a/embassy-traits/src/qei.rs b/embassy-traits/src/qei.rs
deleted file mode 100644
index 73581256..00000000
--- a/embassy-traits/src/qei.rs
+++ /dev/null
@@ -1,22 +0,0 @@
-use core::future::Future;
-use core::pin::Pin;
-use embedded_hal::Direction;
-
-// Wait for a specified number of rotations either up or down
-pub trait WaitForRotate {
- type RotateFuture<'a>: Future<Output = Direction> + 'a;
-
- /// Wait for a specified number of rotations, in ticks, either up or down.
- ///
- /// Return Direction::Upcounting if the high bound is reached.
- /// Return Direction::Downcounting if the low bound is reached.
- ///
- /// Number of ticks is encoder dependent. As an example, if we connect
- /// the Bourns PEC11H-4120F-S0020, we have 20 ticks per full rotation.
- /// Other encoders may vary.
- fn wait_for_rotate<'a>(
- self: Pin<&'a mut Self>,
- count_down: u16,
- count_up: u16,
- ) -> Self::RotateFuture<'a>;
-}