Google is committed to advancing racial equity for Black communities. See how.

fuchsia.hardware.i2cimpl

PROTOCOLS

I2cImpl

Defined in fuchsia.hardware.i2cimpl/i2c-impl.fidl

Low-level protocol for i2c drivers.

GetBusBase

First bus ID that this I2cImpl controls, zero-indexed.

Request

<EMPTY>

Response

NameType
base uint32

GetBusCount

Number of buses that this I2cImpl supports.

Request

<EMPTY>

Response

NameType
count uint32

GetMaxTransferSize

Request

NameType
bus_id uint32

Response

NameType
s zx/status
size uint64

SetBitrate

Sets the bitrate for the i2c bus in KHz units.

Request

NameType
bus_id uint32
bitrate uint32

Response

NameType
s zx/status

Transact

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

Request

NameType
bus_id uint32
op vector<I2cImplOp>

Response

NameType
status zx/status

STRUCTS

I2cImplOp

Defined in fuchsia.hardware.i2cimpl/i2c-impl.fidl

See Transact below for usage.

FieldTypeDescriptionDefault
address uint16 No default
data vector<uint8> No default
is_read bool No default
stop bool No default