U2C_RESULT U2C_SpiRead( HANDLE hDevice, BYTE* pInBuffer, unsigned short Length );
The U2C_SpiRead() function shifts in (reads) a stream of up to 256 bytes from the SPI slave device.
Handle to the U2C-12 device.
Pointer to the buffer that receives the data shifted in from the SPI slave device.
Number of bytes to be shifted in. Maximum value is 256.
The data was successfully read.
U2C-12 device referenced by hDevice handle was not found.
Length parameter is out of range.