i2c_mux_pca954x.h 430 B

12345678910111213141516171819
  1. #ifndef QEMU_I2C_MUX_PCA954X_H
  2. #define QEMU_I2C_MUX_PCA954X_H
  3. #include "hw/i2c/i2c.h"
  4. #define TYPE_PCA9546 "pca9546"
  5. #define TYPE_PCA9548 "pca9548"
  6. /**
  7. * Retrieves the i2c bus associated with the specified channel on this i2c
  8. * mux.
  9. * @mux: an i2c mux device.
  10. * @channel: the i2c channel requested
  11. *
  12. * Returns: a pointer to the associated i2c bus.
  13. */
  14. I2CBus *pca954x_i2c_get_bus(I2CSlave *mux, uint8_t channel);
  15. #endif