Struct display_interface_i2c::I2CInterface
source · pub struct I2CInterface<I2C> { /* private fields */ }
Expand description
I2C communication interface
Implementations§
Trait Implementations§
source§impl<I2C> AsyncWriteOnlyDataCommand for I2CInterface<I2C>where
I2C: I2c,
impl<I2C> AsyncWriteOnlyDataCommand for I2CInterface<I2C>where
I2C: I2c,
source§async fn send_commands(
&mut self,
cmds: DataFormat<'_>
) -> Result<(), DisplayError>
async fn send_commands( &mut self, cmds: DataFormat<'_> ) -> Result<(), DisplayError>
Send a batch of commands to display
source§async fn send_data(&mut self, buf: DataFormat<'_>) -> Result<(), DisplayError>
async fn send_data(&mut self, buf: DataFormat<'_>) -> Result<(), DisplayError>
Send pixel data to display
source§impl<I2C> WriteOnlyDataCommand for I2CInterface<I2C>where
I2C: I2c,
impl<I2C> WriteOnlyDataCommand for I2CInterface<I2C>where
I2C: I2c,
source§fn send_commands(&mut self, cmds: DataFormat<'_>) -> Result<(), DisplayError>
fn send_commands(&mut self, cmds: DataFormat<'_>) -> Result<(), DisplayError>
Send a batch of commands to display
source§fn send_data(&mut self, buf: DataFormat<'_>) -> Result<(), DisplayError>
fn send_data(&mut self, buf: DataFormat<'_>) -> Result<(), DisplayError>
Send pixel data to display
Auto Trait Implementations§
impl<I2C> RefUnwindSafe for I2CInterface<I2C>where
I2C: RefUnwindSafe,
impl<I2C> Send for I2CInterface<I2C>where
I2C: Send,
impl<I2C> Sync for I2CInterface<I2C>where
I2C: Sync,
impl<I2C> Unpin for I2CInterface<I2C>where
I2C: Unpin,
impl<I2C> UnwindSafe for I2CInterface<I2C>where
I2C: UnwindSafe,
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