U2C_RESULT U2C_SpiWrite( HANDLE hDevice, BYTE* pOutBuffer, unsigned short Length );
The U2C_SpiWrite() function shifts out (writes) a stream of up to 256 bytes to the SPI slave device.
Handle to the U2C-12 device.
Pointer to the buffer containing the data to be shifted out to the SPI slave device.
Number of bytes to be shifted out to the SPI slave device. Maximum value is 256.
The data was successfully written to the SPI slave device.
U2C-12 device referenced by hDevice handle was not found.
Length parameter is out of range.