Write and read bytes to and from an SPI slave device.
Namespace: IO.Objects.RemoteIOAssembly: libremoteio (in libremoteio.dll) Version: 2.2024.165.1
Syntax public void Transaction(
byte[] cmd,
int cmdlen,
byte[] resp,
int resplen,
int delayus = 0
)
Parameters
- cmd Byte
- Command buffer.
- cmdlen Int32
- Number of bytes to write: 0 to 57.
- resp Byte
- Response buffer.
- resplen Int32
- Number of bytes to read: 0 to 60.
- delayus Int32 (Optional)
- Delay in microseconds between write and read
operations: 0 to 65535.
Implements
DeviceTransaction(Byte, Int32, Byte, Int32, Int32)See Also