Real Time Clock Module with I2C Interface  0.3
⇒ back to Project Page
 All Data Structures Files Functions Variables Typedefs Macros Pages
void rtc_show_date_saa1064 ( uint8_t  current_day,
uint8_t  current_month,
uint16_t  current_year,
uint8_t  current_hour,
uint8_t  current_minute,
uint8_t  current_second,
uint8_t  reset 
)

This function shows the current date via SAA1064. It switches the date for each function call from day/month to year and back. Therefore this function should be called for 4 times to go through all the states.
Depending on the day and night time cycles, it uses two different LED current values (dimmed night mode) and two different types of date information changing.

Parameters
[in]current_daycurrent day value
[in]current_monthcurrent month value
[in]current_yearcurrent year value
[in]current_hourcurrent hour value (for day/night mode)
[in]current_minutecurrent minute value (for day/night mode)
[in]current_secondcurrent second value (for day/night mode)
[in]resetif > 0, the functions resets the internal state and clears all digits
Date
  • Created 25.02.2013
  • Modified 25.02.2013
Author
Michael Skutek, micha.nosp@m.el@s.nosp@m.kutek.nosp@m..de

Definition at line 469 of file i2c_rtc_control_operation.c.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function: