pub struct I2cExpanderDevice<I, D, P> { /* private fields */ }Available on crate features
i2c-expander-device or i2c-expander-device-async only.Implementations§
Trait Implementations§
Source§impl<I, D, P> AsyncDevice for I2cExpanderDevice<I, D, P>
Available on crate features async and i2c-expander-device-async only.
impl<I, D, P> AsyncDevice for I2cExpanderDevice<I, D, P>
Available on crate features
async and i2c-expander-device-async only.type Err = <I as ErrorType>::Error
async fn delay_us_async(&mut self, us: u32)
async fn flush_async(&mut self) -> Result<(), Self::Err>
async fn write_nibble_async( &mut self, mode: RegisterSelectMode, data: u8, ) -> Result<(), Self::Err>
async fn write_byte_async( &mut self, mode: RegisterSelectMode, byte: u8, ) -> Result<(), Self::Err>
Source§impl<I, D, P> Device for I2cExpanderDevice<I, D, P>
impl<I, D, P> Device for I2cExpanderDevice<I, D, P>
fn set_register_select(&mut self, mode: RegisterSelectMode)
fn set_rw(&mut self, mode: RWMode)
fn set_enable(&mut self, enabled: bool)
fn set_backlight(&mut self, enabled: bool)
fn set_data_nibble(&mut self, data: u8)
Source§impl<I, D, P> SyncDevice for I2cExpanderDevice<I, D, P>
Available on crate feature i2c-expander-device only.
impl<I, D, P> SyncDevice for I2cExpanderDevice<I, D, P>
Available on crate feature
i2c-expander-device only.type Err = <I as ErrorType>::Error
fn delay_us(&mut self, us: u32)
fn flush(&mut self) -> Result<(), Self::Err>
fn write_nibble( &mut self, mode: RegisterSelectMode, data: u8, ) -> Result<(), Self::Err>
fn write_byte( &mut self, mode: RegisterSelectMode, byte: u8, ) -> Result<(), Self::Err>
Auto Trait Implementations§
impl<I, D, P> Freeze for I2cExpanderDevice<I, D, P>
impl<I, D, P> RefUnwindSafe for I2cExpanderDevice<I, D, P>
impl<I, D, P> Send for I2cExpanderDevice<I, D, P>
impl<I, D, P> Sync for I2cExpanderDevice<I, D, P>
impl<I, D, P> Unpin for I2cExpanderDevice<I, D, P>
impl<I, D, P> UnwindSafe for I2cExpanderDevice<I, D, P>
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
Source§impl<D> CommandExtAsync for Dwhere
D: AsyncDevice,
impl<D> CommandExtAsync for Dwhere
D: AsyncDevice,
Source§async fn execute_command_async<C, R, E>(&mut self, cmd: &C) -> Result<R, E>where
C: AsyncCommand<Ret = R, Err = E>,
async fn execute_command_async<C, R, E>(&mut self, cmd: &C) -> Result<R, E>where
C: AsyncCommand<Ret = R, Err = E>,
Available on crate feature
async only.Source§async fn execute_commands_async<C, E>(&mut self, cmd: &[C]) -> Result<(), E>where
C: AsyncCommand<Err = E>,
async fn execute_commands_async<C, E>(&mut self, cmd: &[C]) -> Result<(), E>where
C: AsyncCommand<Err = E>,
Available on crate feature
async only.