library

Dependents:   RTC_class

Committer:
matthiaskosch
Date:
Thu Apr 30 10:11:49 2015 +0000
Revision:
0:b5f59b23bbef
RTC_class

Who changed what in which revision?

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