RTC8563 libray for real time clock PCF8563

Dependents:   rtc_class3 rtc_class2 rtc_class rtc_class ... more

Goto Inhalt

Committer:
perrytieku
Date:
Thu Apr 30 10:52:45 2015 +0000
Revision:
1:1125339234de
Parent:
0:e7072e1b5fa5
hgfjhg

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bulmecisco 0:e7072e1b5fa5 1 /***********************************
bulmecisco 0:e7072e1b5fa5 2 name: const.h Version: 0.1
bulmecisco 0:e7072e1b5fa5 3 author: PE HTL BULME
bulmecisco 0:e7072e1b5fa5 4 email: pe@bulme.at
bulmecisco 0:e7072e1b5fa5 5 description:
bulmecisco 0:e7072e1b5fa5 6 Named constants definitions for registers
bulmecisco 0:e7072e1b5fa5 7 PCF8563 RTC on HIMBED M0 - LPC11U24
bulmecisco 0:e7072e1b5fa5 8 ***********************************/
bulmecisco 0:e7072e1b5fa5 9
bulmecisco 0:e7072e1b5fa5 10 #ifndef CONST_H
bulmecisco 0:e7072e1b5fa5 11 #define CONST_H
bulmecisco 0:e7072e1b5fa5 12
bulmecisco 0:e7072e1b5fa5 13 // Address of RTC
bulmecisco 0:e7072e1b5fa5 14 const int RTC8563_ADR = 0xA2;
bulmecisco 0:e7072e1b5fa5 15 // Control and status
bulmecisco 0:e7072e1b5fa5 16 const int CONTROL1 = 0x00;
bulmecisco 0:e7072e1b5fa5 17 const int CONTROL2 = 0x01;
bulmecisco 0:e7072e1b5fa5 18 // Time and date
bulmecisco 0:e7072e1b5fa5 19 const int SECONDS = 0x02;
bulmecisco 0:e7072e1b5fa5 20 const int MINUTES = 0x03;
bulmecisco 0:e7072e1b5fa5 21 const int HOURS = 0x04;
bulmecisco 0:e7072e1b5fa5 22 const int DAYS = 0x05;
bulmecisco 0:e7072e1b5fa5 23 const int WEEKDAYS = 0x06;
bulmecisco 0:e7072e1b5fa5 24 const int MONTHS = 0x07;
bulmecisco 0:e7072e1b5fa5 25 const int YEARS = 0x08;
bulmecisco 0:e7072e1b5fa5 26 // Alarm
bulmecisco 0:e7072e1b5fa5 27 const int MINUTE_ALARM = 0x09;
bulmecisco 0:e7072e1b5fa5 28 const int HOUR_ALARM = 0x0A;
bulmecisco 0:e7072e1b5fa5 29 const int DAY_ALARM = 0x0B;
bulmecisco 0:e7072e1b5fa5 30 const int WEEKDAY_ALARM = 0x0C;
bulmecisco 0:e7072e1b5fa5 31 // Clock and timer
bulmecisco 0:e7072e1b5fa5 32 const int CLOCKOUT_FREQ = 0x0D;
bulmecisco 0:e7072e1b5fa5 33 const int TIMER_CINTROL = 0x0E;
bulmecisco 0:e7072e1b5fa5 34 const int _READ = 0x01;
bulmecisco 0:e7072e1b5fa5 35
bulmecisco 0:e7072e1b5fa5 36 #endif