Trait avr_oxide::hal::generic::twi::TwoWireMaster

source ·
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§

source

fn command(&mut self, command: Command<'static>)

Execute the command on the TWI bus. If the bus is busy, block until it isn’t.

source

fn try_command( &mut self, command: Command<'static> ) -> OxideResult<(), (TwiError, Command<'static>)>

source

fn set_command_complete_callback(&self, handler: TwiCommandCompleteCallback)

Implementors§

source§

impl<M> TwoWireMaster for AtmelTwi<M>
where M: MuxControl,