libsimpleioSPI_transaction Method |
Send bytes to and/or receive bytes from a Linux SPI device.
Namespace: IO.BindingsAssembly: libsimpleio (in libsimpleio.dll) Version: 2.2024.167.1
Syntax public static void SPI_transaction(
int fd,
int csfd,
byte[] cmd,
int cmdlen,
int delayus,
byte[] resp,
int resplen,
out int error
)
Parameters
- fd Int32
- File descriptor.
- csfd Int32
- Chip select file descriptor.
- cmd Byte
- Source buffer.
- cmdlen Int32
- Source buffer size.
- delayus Int32
- Delay in microseconds between the write and read operations.
- resp Byte
- Destination buffer.
- resplen Int32
- Destination buffer size.
- error Int32
- Error code. Zero upon success or an errno
value upon failure.
See Also