U2C_RESULT U2C_SpiRead (
HANDLE hDevice,
BYTE* pInBuffer,
unsigned short Length
);
The U2C_SpiRead function shifts in (reads) a stream of bytes from the SPI slave device.
- Parameters:
-
| hDevice | Handle to the U2C-12 device. |
| pInBuffer | Pointer to the buffer that receives the data shifted in from the SPI slave device. |
| Length | Number of bytes to be shifted in. |
- Return values:
-
| U2C_SUCCESS | The data was successfully read. |
| U2C_HARDWARE_NOT_FOUND | U2C-12 device referenced by hDevice handle was not found. |
|