|
|
| 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_address | I2C adress of SAA1064 including write bit "0" |
| [in] | display_mode | SAA1064_STATIC_MODE or SAA1064_DYNAMIC_MODE |
| [in] | segment_current | value for segment current –> see datasheet: (Bits: X, X, X, X, X, C4, C5, C6) |
| [in] | figure | value, which contains the figure to display |
| [in] | decimal_points | bitfield - enables decimal point for digit |
| [in] | clear | if > 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().
|