FX3ConnectionI2CReadBytes Method |
Read bytes from an I2C slave device attached to the FX3.
Namespace:
FX3Api
Assembly:
FX3Api (in FX3Api.dll) Version: 2.9.4.0 (2.9.4)
Syntaxpublic byte[] I2CReadBytes(
I2CPreamble Preamble,
uint NumBytes,
uint TimeoutInMs
)
Public Function I2CReadBytes (
Preamble As I2CPreamble,
NumBytes As UInteger,
TimeoutInMs As UInteger
) As Byte()
public:
array<unsigned char>^ I2CReadBytes(
I2CPreamble^ Preamble,
unsigned int NumBytes,
unsigned int TimeoutInMs
)
member I2CReadBytes :
Preamble : I2CPreamble *
NumBytes : uint32 *
TimeoutInMs : uint32 -> byte[]
Parameters
- Preamble
- Type: FX3ApiI2CPreamble
The I2C preamble to transmit at the start of the read operation - NumBytes
- Type: SystemUInt32
The number of bytes to read over I2C after sending the preamble - TimeoutInMs
- Type: SystemUInt32
Read timeout period, in ms
Return Value
Type:
ByteThe data read from the I2C slave device
See Also