|
|
| uint8_t saa1064_init |
( |
uint8_t |
i2c_address, |
|
|
uint8_t |
display_mode, |
|
|
uint8_t |
segment_current |
|
) |
| |
Initializes a SAA1064 chip with a given mode, performs a short segment test, switches all segments to off and checks configuration (reads control byte and data bytes).
This function is available for some startup tests and demo of the 7 segment LED displays. It is not really required for an initialization of 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) |
- Returns
- SAA1064_IO_SUCCESS: communication was successful
SAA1064_IO_ERROR: unknown or internal error occured
SAA1064_WRONG_ADDRESS: wrong I2C address –> see datasheet
SAA1064_INIT_ERROR: no valid config data from SAA1064 received (initialization was NOT successful)
other values: communication was NOT successful –> see "i2c.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 91 of file saa1064.c.
Referenced by rtc_setup_saa1064().
|