| Accessories |
|---|
| I2C Cable for U2C-12 with Clips and Crocodile |
| Documentation |
|---|
|
|
|
|
|
|
| Related products |
|---|
| USB-IO Interface Adapter - GPIO-24 |
U2C_RESULT U2C_SpiGetConfig( HANDLE hDevice, BYTE* pCPOL, BYTE* pCPHA );
The U2C_SpiGetConfig() function obtains SPI bus configuration (clock polarity and phase).
Parameters:
Handle to the U2C-12 device.
A pointer to the byte to be filled with current SPI bus clock polarity setting. Clock polarity determines the CLK line idle state, where:
A pointer to byte to be filled with current SPI bus clock phase setting. Clock phase value determines the clock edge when the data is valid on the bus, where:
Return values:
U2C_SUCCESS
The SPI bus configuration was successfully obtained.
U2C_HARDWARE_NOT_FOUND
U2C-12 device referenced by hDevice handle was not found.