Struct capsules::virtual_i2c::MuxI2C
[−]
[src]
pub struct MuxI2C<'a> { i2c: &'a I2CMaster, devices: List<'a, I2CDevice<'a>>, enabled: Cell<usize>, inflight: Cell<Option<&'a I2CDevice<'a>>>, }
Fields
i2c: &'a I2CMaster
devices: List<'a, I2CDevice<'a>>
enabled: Cell<usize>
inflight: Cell<Option<&'a I2CDevice<'a>>>
Methods
impl<'a> MuxI2C<'a>
[src]
pub const fn new(i2c: &'a I2CMaster) -> MuxI2C<'a>
[src]
fn enable(&self)
[src]
fn disable(&self)
[src]
fn do_next_op(&self)
[src]
Trait Implementations
impl<'a> I2CHwMasterClient for MuxI2C<'a>
[src]
fn command_complete(&self, buffer: &'static mut [u8], error: Error)
[src]
Called when an I2C command completed. The error
denotes whether the command completed successfully or if an error occured. Read more