Real Time Clock Module with I2C Interface  0.3
⇒ back to Project Page
 All Data Structures Files Functions Variables Typedefs Macros Pages
uint8_t saa1064_send_digits ( uint8_t  i2c_address,
uint8_t  display_mode,
uint8_t  segment_current,
uint16_t  figure,
uint8_t  decimal_points,
uint8_t  clear 
)

Sends digits (2 or 4 digits, depending on mode) to the SAA1064 chip.

Parameters
[in]i2c_addressI2C adress of SAA1064 including write bit "0"
[in]display_modeSAA1064_STATIC_MODE or SAA1064_DYNAMIC_MODE
[in]segment_currentvalue for segment current –> see datasheet: (Bits: X, X, X, X, X, C4, C5, C6)
[in]figurevalue, which contains the figure to display
[in]decimal_pointsbitfield - enables decimal point for digit
[in]clearif > 0, it clears the display
Returns
SAA1064_IO_SUCCESS: communication was successful
SAA1064_IO_ERROR: unknown or internal error occured
SAA1064_WRONG_ADDRESS: wrong I2C address –> see datasheet
other values: communication was NOT successful –> see "i2c.h"
See Also
value definition of numbers_bcd_table in file saa1064.h
Date
  • Created 22.08.2010
  • Modified 23.02.2013
Author
Michael Skutek, micha.nosp@m.el@s.nosp@m.kutek.nosp@m..de

Definition at line 469 of file saa1064.c.

Referenced by rtc_show_date_saa1064(), and rtc_show_time_saa1064().

Here is the call graph for this function:

Here is the caller graph for this function: