This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
resources:no-os:drivers:i2c [27 Sep 2022 16:30] Darius B fix page title in search results |
resources:no-os:drivers:i2c [28 Sep 2022 09:45] Darius B fix typo |
||
---|---|---|---|
Line 35: | Line 35: | ||
Such a descriptor is needed for each slave because each slave requires different communication settings (address, speed). When performing transfers, the I2C peripheral is reconfigured with the I2C settings of the particular slave being targeted. | Such a descriptor is needed for each slave because each slave requires different communication settings (address, speed). When performing transfers, the I2C peripheral is reconfigured with the I2C settings of the particular slave being targeted. | ||
- | In the above example, the max_speed_hz parameter given is 100 kHz. The no_os_i2c_init() function will choose such an I2C peripheral prescaler so that SCK is guaranteed to be the closest possible value but not greated than 100 kHz, provided a fixed input clock and the range of available prescalers. | + | In the above example, the max_speed_hz parameter given is 100 kHz. The no_os_i2c_init() function will choose such an I2C peripheral prescaler so that SCK is guaranteed to be the closest possible value but not greater than 100 kHz, provided a fixed input clock and the range of available prescalers. |
==== Transfers ==== | ==== Transfers ==== |