Write bytes to and read bytes from an SPI slave device.
Namespace: IO.Interfaces.SPIAssembly: libremoteio (in libremoteio.dll) Version: 2.2024.165.1
Syntax 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.
- resp Byte
- Response buffer.
- resplen Int32
- Number of bytes to read.
- delayus Int32 (Optional)
- Delay in microseconds between write and read
operations.
See Also