From ea9cb59bffe7b5a1cac57e6586ed7ac4a89e7c25 Mon Sep 17 00:00:00 2001 From: Grant Miller Date: Fri, 4 Dec 2020 22:15:02 -0600 Subject: [PATCH] Remove old `Interface` trait --- src/lib.rs | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 69058e5..6479260 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,28 +12,6 @@ use display_interface::WriteOnlyDataCommand; pub mod spi; -/// Trait representing the interface to the hardware. -/// -/// Intended to abstract the various buses (SPI, MPU 8/9/16-bit) from the Controller code. -pub trait Interface { - type Error; - - /// Sends a command with a sequence of 8-bit arguments - /// - /// Mostly used for sending configuration commands - fn write(&mut self, command: u8, data: &[u8]) -> Result<(), Self::Error>; - - /// Sends a command with a sequence of 16-bit data words - /// - /// Mostly used for sending MemoryWrite command and other commands - /// with 16-bit arguments - fn write_iter( - &mut self, - command: u8, - data: impl IntoIterator, - ) -> Result<(), Self::Error>; -} - /// Trait that defines display size information pub trait DisplaySize { /// Width in pixels