pub enum I2c {
I2C1(I2C1),
I2C3(I2C3),
}
Available on crate feature
i2c
only.Expand description
Peripheral-agnostic driver.
Variants§
Trait Implementations§
Source§impl I2c for I2c
impl I2c for I2c
Source§async fn write(&mut self, address: u8, write: &[u8]) -> Result<(), Self::Error>
async fn write(&mut self, address: u8, write: &[u8]) -> Result<(), Self::Error>
Writes bytes to slave with address
address
. Read moreAuto Trait Implementations§
impl Freeze for I2c
impl !RefUnwindSafe for I2c
impl Send for I2c
impl Sync for I2c
impl Unpin for I2c
impl !UnwindSafe for I2c
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more