Dani Hevi / RTC8563

Dependents:   rtc_class2

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers const.h Source File

const.h

00001 /***********************************
00002 name:   const.h    Version: 0.1
00003 //  @ Author : Daniel Hevesy
00004 //  @ Copyright : daniel.hevesy-szetty@bulme.at
00005 description:
00006   Named constants definitions for registers 
00007   PCF8563 RTC on HIMBED M0 - LPC11U24 
00008 ***********************************/
00009  
00010 #ifndef CONST_H
00011 #define CONST_H
00012  
00013 // Address of RTC
00014 const int RTC8563_ADR = 0xA2;
00015 // Control and status
00016 const int CONTROL1 = 0x00;
00017 const int CONTROL2 = 0x01;
00018 // Time and date
00019 const int SECONDS = 0x02;   
00020 const int MINUTES = 0x03;
00021 const int HOURS = 0x04;
00022 const int DAYS = 0x05;
00023 const int WEEKDAYS = 0x06;
00024 const int MONTHS = 0x07;
00025 const int YEARS = 0x08;
00026 // Alarm
00027 const int MINUTE_ALARM = 0x09;
00028 const int HOUR_ALARM = 0x0A;
00029 const int DAY_ALARM = 0x0B;
00030 const int WEEKDAY_ALARM = 0x0C;
00031 // Clock and timer
00032 const int CLOCKOUT_FREQ = 0x0D;
00033 const int TIMER_CINTROL = 0x0E;
00034 const int _READ = 0x01;
00035  
00036 #endif