libsimpleioI2C_transaction Method |
Send bytes to and/or receive bytes from an I2C slave device.
Namespace: IO.BindingsAssembly: libsimpleio (in libsimpleio.dll) Version: 2.2024.167.1
Syntax public static void I2C_transaction(
int fd,
int slaveaddr,
byte[] cmd,
int cmdlen,
byte[] resp,
int resplen,
out int error
)
Parameters
- fd Int32
- File descriptor.
- slaveaddr Int32
- Slave address.
- cmd Byte
- Source buffer.
- cmdlen Int32
- Source buffer size.
- resp Byte
- Response buffer.
- resplen Int32
- Response buffer size.
- error Int32
- Error code. Zero upon success or an errno
value upon failure.
See Also