.

Dependencies:   mbed

Fork of rtc_func by HIMBED_3AHELI

Committer:
bulmecisco
Date:
Thu Apr 16 10:25:33 2015 +0000
Revision:
3:f75062350241
rtc functions in class RTC8563 transferred

Who changed what in which revision?

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