Dependents: Bulme-Timer Mbed-21-Clock-to-7Segment WS_7_Seg_mit_LM1635 WS_7_Seg_mit_LM1635 ... more
Fork of PCF8563 by
const.h
- Committer:
- fpucher
- Date:
- 2016-03-11
- Revision:
- 1:43c0cae8d6b0
- Parent:
- 0:6b91b76ec6c3
- Child:
- 3:d7f120bcedd7
File content as of revision 1:43c0cae8d6b0:
/*********************************** name: const.h Version: 0.3 author: PE HTL BULME email: pe@bulme.at description: Named constants definitions for registers PCF8563 RTC on HIMBED M0 - LPC11U24 ***********************************/ #ifndef CONST_H #define CONST_H // Address of RTC const uint8_t PCF8563_ADR_WR = 0xA2; const uint8_t PCF8563_ADR_RD = 0xA3; // Control and status const uint8_t CONTROL1 = 0x00; const uint8_t CONTROL2 = 0x01; // Time and date const uint8_t SECONDS = 0x02; const uint8_t MINUTES = 0x03; const uint8_t HOURS = 0x04; const uint8_t DAYS = 0x05; const uint8_t WEEKDAYS = 0x06; const uint8_t MONTHS = 0x07; const uint8_t YEARS = 0x08; // Alarm const uint8_t MINUTE_ALARM = 0x09; const uint8_t HOUR_ALARM = 0x0A; const uint8_t DAY_ALARM = 0x0B; const uint8_t WEEKDAY_ALARM = 0x0C; // Clock and timer const uint8_t CLOCKOUT_FREQ = 0x0D; const uint8_t TIMER_CINTROL = 0x0E; // Alternativ addressing: base + next address //const uint8_t PCF8563_ADR = 0xA2; //const uint8_t _READ = 0x01; #endif