Josef Kager
/
rtc_class2
added GetDay() GetYear() GetWeek()
Fork of rtc_class by
const.h@2:ce174a86d215, 2015-04-23 (annotated)
- Committer:
- KagerJ
- Date:
- Thu Apr 23 09:42:34 2015 +0000
- Revision:
- 2:ce174a86d215
added GetWeek() GetDays() GetMonths() GetYears()
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
KagerJ | 2:ce174a86d215 | 1 | /*********************************** |
KagerJ | 2:ce174a86d215 | 2 | name: const.h Version: 0.1 |
KagerJ | 2:ce174a86d215 | 3 | author: PE HTL BULME |
KagerJ | 2:ce174a86d215 | 4 | email: pe@bulme.at |
KagerJ | 2:ce174a86d215 | 5 | description: |
KagerJ | 2:ce174a86d215 | 6 | Named constants definitions for registers |
KagerJ | 2:ce174a86d215 | 7 | PCF8563 RTC on HIMBED M0 - LPC11U24 |
KagerJ | 2:ce174a86d215 | 8 | ***********************************/ |
KagerJ | 2:ce174a86d215 | 9 | |
KagerJ | 2:ce174a86d215 | 10 | #ifndef CONST_H |
KagerJ | 2:ce174a86d215 | 11 | #define CONST_H |
KagerJ | 2:ce174a86d215 | 12 | |
KagerJ | 2:ce174a86d215 | 13 | // Address of RTC |
KagerJ | 2:ce174a86d215 | 14 | const int RTC8563_ADR = 0xA2; |
KagerJ | 2:ce174a86d215 | 15 | // Control and status |
KagerJ | 2:ce174a86d215 | 16 | const int CONTROL1 = 0x00; |
KagerJ | 2:ce174a86d215 | 17 | const int CONTROL2 = 0x01; |
KagerJ | 2:ce174a86d215 | 18 | // Time and date |
KagerJ | 2:ce174a86d215 | 19 | const int SECONDS = 0x02; |
KagerJ | 2:ce174a86d215 | 20 | const int MINUTES = 0x03; |
KagerJ | 2:ce174a86d215 | 21 | const int HOURS = 0x04; |
KagerJ | 2:ce174a86d215 | 22 | const int DAYS = 0x05; |
KagerJ | 2:ce174a86d215 | 23 | const int WEEKDAYS = 0x06; |
KagerJ | 2:ce174a86d215 | 24 | const int MONTHS = 0x07; |
KagerJ | 2:ce174a86d215 | 25 | const int YEARS = 0x08; |
KagerJ | 2:ce174a86d215 | 26 | // Alarm |
KagerJ | 2:ce174a86d215 | 27 | const int MINUTE_ALARM = 0x09; |
KagerJ | 2:ce174a86d215 | 28 | const int HOUR_ALARM = 0x0A; |
KagerJ | 2:ce174a86d215 | 29 | const int DAY_ALARM = 0x0B; |
KagerJ | 2:ce174a86d215 | 30 | const int WEEKDAY_ALARM = 0x0C; |
KagerJ | 2:ce174a86d215 | 31 | // Clock and timer |
KagerJ | 2:ce174a86d215 | 32 | const int CLOCKOUT_FREQ = 0x0D; |
KagerJ | 2:ce174a86d215 | 33 | const int TIMER_CINTROL = 0x0E; |
KagerJ | 2:ce174a86d215 | 34 | const int _READ = 0x01; |
KagerJ | 2:ce174a86d215 | 35 | |
KagerJ | 2:ce174a86d215 | 36 | #endif |