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