U2C_RESULT U2C_SpiSetConfig( HANDLE hDevice, BYTE CPOL, BYTE CPHA );
The U2C_SpiSetConfig() function configures SPI bus clock polarity and phase.
Parameters:
Handle to the U2C-12 device.
Clock polarity value determines the CLK line idle state, where:
Clock phase value determines the clock edge when the data is valid on the bus, where:
Return values:
U2C_SUCCESS
The SPI bus was successfully configured.
U2C_HARDWARE_NOT_FOUND
U2C-12 device referenced by hDevice handle was not found.