CTL_STATUS_t pca9532_initialize_i2c(PCA9532_DRIVER_t *self, CTL_I2C_BUS_t *bus, int addr);
pca9532_initialize_i2c initializes the parallel bus driver self with methods to control a PCA9532 attached to I2C bus bus at 8-bit I2C address addr. The PCA9532 is initialized to all-input mode. The parallel bus self inherits any mutex associated with the bus bus.
Bits 0 through 7 assigned to port 0 and bits 8 through 15 are assigned to port 1.
Once the parallel bus interface is initialized, you can use all standard parallel bus methods from the sensor API on the interface.
pca9532_initialize_i2c returns a standard status code.
pca9532_initialize_i2c is thread-safe if a mutex is associated with the I2C bus bus.