Version 0.3

Committer:
fpucher
Date:
Fri Mar 11 20:44:37 2016 +0000
Revision:
2:39c99dbc6368
Parent:
1:43c0cae8d6b0
Only comments

Who changed what in which revision?

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