typedef struct { CTL_STATUS_t (*configure_controller)(int); CTL_STATUS_t (*claim_pins)(int , const PLATFORM_PIN_CONFIGURATION_t *, PLATFORM_PIN_CLAIM_t); CTL_I2C_BUS_t *(*controller)(int); } PLATFORM_PRIVATE_I2C_METHODS_t;
PLATFORM_PRIVATE_I2C_METHODS_t contains the methods required to configure an I2C bus. The first parameter of each method is the index of the device I2C bus to configure rather than the index of the Platform I2C bus. For instance, platform I2C bus with index 0 may well be implemented using the device I2C bus I2C2, in which case the index will be 2.