 /***********************************************************
  *   Program:    AVRGCC - I2C Test
  *   Created:    31.8.99 17:23
  *   Author:     vlado.barjer@kks.s-net.net
  *   Comments:   let see what we can do whit this stuff
  ************************************************************/
#include "i2c.h"


#define RTCAddress 0xa0
#define ControlReg 0

void setRTCTimer(void);

void SetRTC (unsigned char *p);

void setTime(unsigned char year, unsigned char month, unsigned char day,
			unsigned char hours, unsigned char minutes, unsigned char seconds, unsigned char hundredths);

void GetRTC (unsigned char *p);

void getTime(unsigned char *year, unsigned char *month, unsigned char *day,
			unsigned char *hours, unsigned char *minutes, unsigned char *seconds, unsigned char *hundredths);

void decodeTime(unsigned char *RtcBuffer, unsigned char *year, unsigned char *month, unsigned char *day,
			unsigned char *hours, unsigned char *minutes, unsigned char *seconds, unsigned char *hundredths);
