Synopsis
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;
Description

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.

configure_controller
Method to configure the controller for the I2C bus.
claim_pins
Method to claim the pins that the I2C controller will use. For software I2C controllers, the pins are configured for digital I/O.
controller
Method to return the I2C bus controller.