11 lines
249 B
Rust
Raw Normal View History

2025-01-12 00:53:26 +01:00
pub mod i2c;
/// Communication interface
pub trait Interface {
type Error;
async fn write(&mut self, addr: u8, value: u8) -> Result<(), Self::Error>;
async fn read(&mut self, addr: u8, buffer: &mut [u8]) -> Result<(), Self::Error>;
}