fuchsia.hardware.i2cimpl

Added: HEAD

PROTOCOLS

Device

Defined in fuchsia.hardware.i2cimpl/i2cimpl.fidl

Low-level protocol for i2c drivers.

GetMaxTransferSize

Request

<EMPTY>

Response

NameType
payloadDevice_GetMaxTransferSize_Result

SetBitrate

Sets the bitrate for the i2c bus in KHz units.

Request

NameType
bitrateuint32

Response

NameType
payloadDevice_SetBitrate_Result

Transact

|Transact| assumes that write ops write_data length are not zero. |Transact| assumes that at least the last op has stop set to true.

For each read-transaction, there will be a corresponding ReadData returned. Write-transactions produce no data result.

Request

NameType
opvector<I2cImplOp>:256

Response

NameType
payloadDevice_Transact_Result

STRUCTS

Device_GetMaxTransferSize_Response

Defined in fuchsia.hardware.i2cimpl/i2cimpl.fidl

FieldTypeDescriptionDefault
sizeuint64No default

Device_SetBitrate_Response

Defined in fuchsia.hardware.i2cimpl/i2cimpl.fidl

<EMPTY>

Device_Transact_Response

Defined in fuchsia.hardware.i2cimpl/i2cimpl.fidl

FieldTypeDescriptionDefault
readvector<ReadData>:256No default

I2cImplOp

Defined in fuchsia.hardware.i2cimpl/i2cimpl.fidl

See Transact below for usage.

FieldTypeDescriptionDefault
addressuint16No default
typeI2cImplOpTypeNo default
stopboolNo default

ReadData

Defined in fuchsia.hardware.i2cimpl/i2cimpl.fidl

The result of one read transaction.

FieldTypeDescriptionDefault
datavector<uint8>:32768No default

UNIONS

Device_GetMaxTransferSize_Result strict

Defined in fuchsia.hardware.i2cimpl/i2cimpl.fidl

OrdinalVariantTypeDescription
responseDevice_GetMaxTransferSize_Response
errzx/Status
framework_errinternal

Device_SetBitrate_Result strict

Defined in fuchsia.hardware.i2cimpl/i2cimpl.fidl

OrdinalVariantTypeDescription
responseDevice_SetBitrate_Response
errzx/Status
framework_errinternal

Device_Transact_Result strict

Defined in fuchsia.hardware.i2cimpl/i2cimpl.fidl

OrdinalVariantTypeDescription
responseDevice_Transact_Response
errzx/Status
framework_errinternal

I2cImplOpType strict

Defined in fuchsia.hardware.i2cimpl/i2cimpl.fidl

If read_size is set: This is a read operation and read_size bytes will be read. If write_data is set: This is a write operation and write_data will be written.

OrdinalVariantTypeDescription
read_sizeuint32
write_datavector<uint8>:32768

SERVICES

Service

Defined in fuchsia.hardware.i2cimpl/i2cimpl.fidl

NameTypeTransport
devicefuchsia.hardware.i2cimpl/DeviceDriver