sub_i2c_freq |
Top Previous Next |
Got to SUB-20 page |
Synopsis int sub_i2c_freq( sub_handle hndl, int* freq )
Set and get SUB-20 I2C master clock frequency. If *freq is non zero I2C clock frequency will be set to value equal or close to *freq. SUB-20 has I2C frequency generator that can generate clock frequencies in range form 444,444 KHz down to 489 Hz. Function will calculate close possible frequency from the available range. If function succeed *freq will reflect the resulting I2C clock frequency. Some of available I2C clock frequencies are listed below 444444 Hz (Maximal) 421052 Hz 400000 Hz ... 100000 Hz ... 491 Hz 489 Hz (Minimal) Parameters •*freq - Desired frequency or zero. On return will be filled with resulting frequency Return value On success function returns 0. Otherwise error code.
|