pub struct AsyncI2c { /* private fields */ }Expand description
Async I2C bus master.
Implementations§
Source§impl AsyncI2c
impl AsyncI2c
Sourcepub const unsafe fn from_handle(handle: ove_i2c_t) -> Self
pub const unsafe fn from_handle(handle: ove_i2c_t) -> Self
Wrap an existing ove_i2c_t handle for async use.
§Safety
handle must be a valid I2C handle. Don’t use the same handle
through a sync crate::i2c::I2c wrapper while async
transactions are in flight.
Trait Implementations§
Source§impl I2c for AsyncI2c
impl I2c for AsyncI2c
Source§async fn transaction(
&mut self,
address: SevenBitAddress,
operations: &mut [Operation<'_>],
) -> Result<(), Self::Error>
async fn transaction( &mut self, address: SevenBitAddress, operations: &mut [Operation<'_>], ) -> Result<(), Self::Error>
Execute the provided operations on the I2C bus as a single transaction. Read more
impl Send for AsyncI2c
impl Sync for AsyncI2c
Auto Trait Implementations§
impl !Freeze for AsyncI2c
impl !RefUnwindSafe for AsyncI2c
impl Unpin for AsyncI2c
impl UnsafeUnpin for AsyncI2c
impl UnwindSafe for AsyncI2c
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