Real Time Clock Module with I2C Interface  0.3
⇒ back to Project Page
 All Data Structures Files Functions Variables Typedefs Macros Pages
uint8_t i2c_set_scl ( uint32_t  f_cpu,
uint32_t  f_scl 
)

Sets the SCL frequency (registers according to requested frequency in master mode). This function must be called BEFORE any I2C interface function can be used in master mode. For slave mode, the SCL frequency is set automatically.

Parameters
[in]f_cpuCPU frequency [Hz]
[in]f_sclSCL frequency [Hz]
Date
  • Created 16.05.2010
  • Modified 16.05.2010
Author
Michael Skutek, micha.nosp@m.el@s.nosp@m.kutek.nosp@m..de

Definition at line 115 of file i2c.c.

Referenced by main().

Here is the caller graph for this function: