U2C_RESULT U2C_SpiGetFreq(
      HANDLE hDevice,
      BYTE* pFrequency
);
The U2C_SpiGetFreq() function obtains SPI bus frequency.
Parameters:
Handle to the U2C-12 device.
A pointer to byte to be filled with the current SPI bus frequency, where:
| U2C_SPI_FREQ_200KHZ | 200 kHz | 
| U2C_SPI_FREQ_100KHZ | 100 kHz | 
| U2C_SPI_FREQ_83KHZ | 83 kHz | 
| U2C_SPI_FREQ_71KHZ | 71 kHz | 
| U2C_SPI_FREQ_62KHZ | 62 kHz | 
| U2C_SPI_FREQ_50KHZ | 50 kHz | 
| U2C_SPI_FREQ_25KHZ | 25 kHz | 
| U2C_SPI_FREQ_10KHZ | 10 kHz | 
| U2C_SPI_FREQ_5KHZ | 5 kHz | 
| U2C_SPI_FREQ_2KHZ | 2 kHz | 
Return values:
U2C_SUCCESS
The SPI bus frequency value was successfully retrieved.
U2C_HARDWARE_NOT_FOUND
U2C-12 device referenced by hDevice handle was not found.