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