Synopsis
typedef struct {
int bus_index;
const PLATFORM_PIN_CONFIGURATION_t *pins;
const PLATFORM_PRIVATE_I2C_METHODS_t *methods;
} PLATFORM_PRIVATE_I2C_CONFIGURATION_t;
Description
PLATFORM_PRIVATE_I2C_CONFIGURATION_t describes the configuration of a Platform I2C bus.
-
bus_index
- The device I2C bus index to use for the I2C controller.
For instance, platform I2C bus with index 0 may well be implemented using
the device I2C bus I2C2, in which case bus_index will be 2.
-
pins
- The pin connections required by the I2C bus.
-
methods
- The methods required to implement the I2C bus. For I2C controllers
implemented in software, methods should be set to platform_private_software_i2c_methods.
See Also
platform_private_i2c_bus_configuration, platform_private_software_i2c_methods