Modules§
- compat
- Compatibility shims which mimic some API surfaces of the current Rust bindings.
- data_
transfer - device
Structs§
- Device
- The type corresponding to the Device protocol.
- Device
GetName Response - Device
Transfer Request - Device
Transfer Response - Service
- The type corresponding to the Service service.
- Service
Connector - A strongly-typed service connector for the
Service
service. - Transaction
data_transfer
is mandatory, and specifies whether this transaction has a read or a write transfer (see above).stop
is optional, and specifies whether this transaction is terminated by a stop condition (if true) or by a repeated-start (if false or unspecified). If this transaction is the last in the list then a stop condition is generated regardless of the value ofstop
.- Wire
Data Transfer - The wire type corresponding to
DataTransfer
. - Wire
Device GetName Response - The wire type corresponding to
DeviceGetNameResponse
. - Wire
Device Transfer Request - The wire type corresponding to
DeviceTransferRequest
. - Wire
Device Transfer Response - The wire type corresponding to
DeviceTransferResponse
. - Wire
Optional Data Transfer - Wire
Transaction - The wire type corresponding to
Transaction
.
Enums§
- Data
Transfer - If
read_size
is set: This is a read transfer, andread_size
bytes will be read from the target. Ifwrite_data
is set: This is a write transfer, andwrite_data
will be written to the target.
Constants§
- MAX_
COUNT_ TRANSACTIONS - The maximum number of transactions that can be specified in a call to
Transfer
. - MAX_
I2_ C_ NAME_ LEN - Maximum length of the I2C Channel name.
- MAX_
TRANSFER_ SIZE - Clients should be aware of the max channel message size when using large transfers or many transactions. It is possible to generate a message that uses values less than the limits below but is still too big for the channel.
Traits§
- Device
Client Handler - A client handler for the Device protocol.
- Device
Server Handler - A server handler for the Device protocol.
- Service
Handler - A service handler for the
Service
service.
Type Aliases§
- Read
Data - Used to return data from read transfers.
- Wire
Read Data - The wire type corresponding to
ReadData
.