pub trait TwoWireMaster {
// Required methods
fn command(&mut self, command: Command<'static>);
fn try_command(
&mut self,
command: Command<'static>
) -> OxideResult<(), (TwiError, Command<'static>)>;
fn set_command_complete_callback(&self, handler: TwiCommandCompleteCallback);
}
Expand description
Trait for devices which can act as a TWI master
Required Methods§
sourcefn command(&mut self, command: Command<'static>)
fn command(&mut self, command: Command<'static>)
Execute the command on the TWI bus. If the bus is busy, block until it isn’t.