pub trait SyncDevice: Device {
type Err;
// Required methods
fn delay_us(&mut self, us: u32);
fn flush(&mut self) -> Result<(), Self::Err>;
// Provided methods
fn write_nibble(
&mut self,
mode: RegisterSelectMode,
data: u8,
) -> Result<(), Self::Err> { ... }
fn write_byte(
&mut self,
mode: RegisterSelectMode,
byte: u8,
) -> Result<(), Self::Err> { ... }
}Required Associated Types§
Required Methods§
Provided Methods§
fn write_nibble( &mut self, mode: RegisterSelectMode, data: u8, ) -> Result<(), Self::Err>
fn write_byte( &mut self, mode: RegisterSelectMode, byte: u8, ) -> Result<(), Self::Err>
Implementors§
Source§impl<I, D, P> SyncDevice for I2cExpanderDevice<I, D, P>
Available on (crate features i2c-expander-device or i2c-expander-device-async) and crate feature i2c-expander-device only.
impl<I, D, P> SyncDevice for I2cExpanderDevice<I, D, P>
Available on (crate features
i2c-expander-device or i2c-expander-device-async) and crate feature i2c-expander-device only.