pub trait I2cRead: Debug {
type Error;
type Read: Read + Unpin;
// Required method
fn poll_begin_read(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
addr: u8,
) -> Poll<Result<Self::Read, Self::Error>>;
}
Expand description
A peripheral that can perform I²C read operations.