Struct embassy_embedded_hal::shared_bus::asynch::i2c::I2cDeviceWithConfig
source · pub struct I2cDeviceWithConfig<'a, M: RawMutex, BUS: SetConfig> { /* private fields */ }
Expand description
Implementations§
Trait Implementations§
source§impl<'a, M, BUS> ErrorType for I2cDeviceWithConfig<'a, M, BUS>
impl<'a, M, BUS> ErrorType for I2cDeviceWithConfig<'a, M, BUS>
§type Error = I2cDeviceError<<BUS as ErrorType>::Error>
type Error = I2cDeviceError<<BUS as ErrorType>::Error>
Error type
source§impl<M, BUS> I2c for I2cDeviceWithConfig<'_, M, BUS>
impl<M, BUS> I2c for I2cDeviceWithConfig<'_, M, BUS>
source§async fn read(
&mut self,
address: u8,
buffer: &mut [u8],
) -> Result<(), I2cDeviceError<BUS::Error>>
async fn read( &mut self, address: u8, buffer: &mut [u8], ) -> Result<(), I2cDeviceError<BUS::Error>>
source§async fn write(
&mut self,
address: u8,
bytes: &[u8],
) -> Result<(), I2cDeviceError<BUS::Error>>
async fn write( &mut self, address: u8, bytes: &[u8], ) -> Result<(), I2cDeviceError<BUS::Error>>
Writes bytes to slave with address
address
. Read moreAuto Trait Implementations§
impl<'a, M, BUS> Freeze for I2cDeviceWithConfig<'a, M, BUS>
impl<'a, M, BUS> !RefUnwindSafe for I2cDeviceWithConfig<'a, M, BUS>
impl<'a, M, BUS> Send for I2cDeviceWithConfig<'a, M, BUS>
impl<'a, M, BUS> Sync for I2cDeviceWithConfig<'a, M, BUS>
impl<'a, M, BUS> Unpin for I2cDeviceWithConfig<'a, M, BUS>
impl<'a, M, BUS> !UnwindSafe for I2cDeviceWithConfig<'a, M, BUS>
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