Struct capsules::pca9544a::PCA9544A [] [src]

pub struct PCA9544A<'a> {
    i2c: &'a I2CDevice,
    state: Cell<State>,
    buffer: TakeCell<'static, [u8]>,
    callback: Cell<Option<Callback>>,
}

Fields

Methods

impl<'a> PCA9544A<'a>
[src]

[src]

[src]

Choose which channel(s) are active. Channels are encoded with a bitwise mask (0x01 means enable channel 0, 0x0F means enable all channels). Send 0 to disable all channels.

[src]

[src]

[src]

Trait Implementations

impl<'a> I2CClient for PCA9544A<'a>
[src]

[src]

Called when an I2C command completed. The error denotes whether the command completed successfully or if an error occured. Read more

impl<'a> Driver for PCA9544A<'a>
[src]

[src]

Setup callback for event done.

subscribe_num

  • 0: Callback is triggered when a channel is finished being selected or when the current channel setup is returned.

[src]

Control the I2C selector.

command_num

  • 0: Driver check.
  • 1: Choose which channels are active.
  • 2: Disable all channels.
  • 3: Read the list of fired interrupts.
  • 4: Read which channels are selected.

[src]

allow lets an application give the driver access to a buffer in the application's memory. This returns ENOSUPPORT if not used. Read more