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_read_status ( uint8_t  i2c_address,
uint8_t *  register_data 
)

Reads all data registers of the SAA1064 chip.

Parameters
[in]i2c_addressI2C adress of SAA1064 including read bit "1"
[in]register_datapointer to bytes which contains the status register data after reading (length: I2C_SAA1064_NUMBER_STAT)
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
I2C_SAA1064_NUMBER_STAT
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 361 of file saa1064.c.

Referenced by rtc_setup_saa1064().

Here is the call graph for this function:

Here is the caller graph for this function: