42 assert((ch >= -1) && (ch < 8));
44 uint8_t b = ch == -1 ? 0 : 1 << ch;
bool i2cWrite(I2C_Device *dev, i2cAddr addr, uint8_t *bytes, int len)
Writes to the I2C device.
Structure defines OpenCores I2C Device.
static bool pca9548_select(I2C_Device *dev, int addr, int ch)
Select a specific channel on the PCA9548.
OpenCores I2C device driver.