Dimax English Dimax French Dimax English Dimax Translations
USB-I2C/SPI/GPIO Interface Adapter - U2C-12
Reference Manual

U2C_SpiWrite


U2C_RESULT U2C_SpiWrite (
            HANDLE hDevice,
             BYTE* pOutBuffer,
             unsigned short Length
);
 

The U2C_SpiWrite function shifts out (writes) a stream of bytes to the SPI slave device.

Parameters:
hDevice Handle to the U2C-12 device.
pOutBuffer Pointer to the buffer containing the data to be shifted out to the SPI slave device.
Length Number of bytes to be shifted out to the SPI slave device.
Return values:
U2C_SUCCESS The data was successfully written to the SPI slave device.
U2C_HARDWARE_NOT_FOUND U2C-12 device referenced by hDevice handle was not found.
            Copyright DIMAX 2002-2012