Click or drag to resize

BusTransaction Method

Write and receive bytes to/from an I2C device.

Namespace: IO.Objects.SimpleIO.I2C
Assembly: libsimpleio (in libsimpleio.dll) Version: 2.2024.167.1
Syntax
C#
public void Transaction(
	int slaveaddr,
	byte[] cmd,
	int cmdlen,
	byte[] resp,
	int resplen,
	int delayus = 0
)

Parameters

slaveaddr  Int32
Device slave address.
cmd  Byte
Command buffer.
cmdlen  Int32
Number of bytes to write.
resp  Byte
Response buffer.
resplen  Int32
Number of bytes to read.
delayus  Int32  (Optional)
Delay in microseconds between the I2C write and read cycles. Allowed values are 0 to 65535 microseconds.

Implements

BusTransaction(Int32, Byte, Int32, Byte, Int32, Int32)
See Also