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>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
Source§impl<I, D, P> SyncDevice for I2cExpanderDevice<I, D, P>
Available on crate feature i2c-expander-device and (crate features i2c-expander-device-async or i2c-expander-device) only.
impl<I, D, P> SyncDevice for I2cExpanderDevice<I, D, P>
Available on crate feature
i2c-expander-device and (crate features i2c-expander-device-async or i2c-expander-device) only.