Modify I2cDeviceDescriptor to support > 1 I2C bus

This commit is contained in:
brentru 2025-01-22 15:33:44 -05:00
parent 00ee250315
commit bed8b12f6f
2 changed files with 7 additions and 4 deletions

View file

@ -3,3 +3,5 @@ wippersnapper.i2c.I2cBusScanned.i2c_bus_found_devices max_count:120
wippersnapper.i2c.I2cDeviceAddOrReplace.i2c_device_name max_size:15 wippersnapper.i2c.I2cDeviceAddOrReplace.i2c_device_name max_size:15
wippersnapper.i2c.I2cDeviceAddOrReplace.i2c_device_sensor_types max_count:15 wippersnapper.i2c.I2cDeviceAddOrReplace.i2c_device_sensor_types max_count:15
wippersnapper.i2c.I2cDeviceEvent.i2c_device_events max_count:15 wippersnapper.i2c.I2cDeviceEvent.i2c_device_events max_count:15
wippersnapper.i2c.I2cDeviceDescriptor.i2c_bus_sda max_size:15
wippersnapper.i2c.I2cDeviceDescriptor.i2c_bus_scl max_size:15

View file

@ -32,10 +32,11 @@ enum I2cDeviceStatus {
* I2cDeviceDescriptor represents the I2c device's address and related metadata. * I2cDeviceDescriptor represents the I2c device's address and related metadata.
*/ */
message I2cDeviceDescriptor { message I2cDeviceDescriptor {
uint32 i2c_bus = 1; /** The desired I2C bus to address.**/ string i2c_bus_sda = 1; /** Optional SDA pin for an alt. i2c bus.**/
uint32 i2c_device_address = 2; /** I2C Device's Address. **/ string i2c_bus_scl = 2; /** Optional SCL pin for an alt. i2c bus.**/
uint32 i2c_mux_address = 3; /** Optional I2C multiplexer address. **/ uint32 i2c_device_address = 3; /** I2C Device's Address. **/
uint32 i2c_mux_channel = 4; /** Optional I2C multiplexer channel. **/ uint32 i2c_mux_address = 4; /** Optional I2C multiplexer address. **/
uint32 i2c_mux_channel = 5; /** Optional I2C multiplexer channel. **/
} }
/** /**