fuchsia.hardware.i2c.businfo

Added: HEAD

TABLES

I2CBusMetadata

Defined in fuchsia.hardware.i2c.businfo/businfo.fidl

Passed to the i2c driver in metadata as DEVICE_METADATA_I2C_CHANNELS.

OrdinalFieldTypeDescription
channels vector<I2CChannel>[128]
bus_id uint32

ID of the bus that these devices are on. Set as a bind property on the devices added by the I2C core driver.

I2CChannel

Defined in fuchsia.hardware.i2c.businfo/businfo.fidl

Used to inform the i2c driver about an attached i2c device.

OrdinalFieldTypeDescription
address uint16

Address of the device.

i2c_class uint32

Class of the device. TODO(https://fxbug.dev/42158297): remove this once x86 uses ACPI properly.

vid uint32

Vendor ID. Used when binding via platform bus device IDs.

pid uint32

Product ID. Used when binding via platform bus device IDs.

did uint32

Device ID. Used when binding via platform bus device IDs.

is_bus_controller bool

Are we in charge of the bus?

is_ten_bit bool

Is this device using 10-bit addressing mode (if false, use 7-bit).

bus_speed uint32

Speed of the bus.

name string[64]

Friendly name for this bus. Will default to the empty string if not specified.

CONSTANTS

NameValueTypeDescription
MAX_I2C_CHANNEL 128 uint32