Main Page   Compound List   File List   Compound Members   File Members  

rtc.h

Go to the documentation of this file.
00001 
00002 //*****************************************************************************
00003 //
00004 // File Name    : 'rtc.h'
00005 // Title                        : real-time clock function library
00006 // Author               : Pascal Stang - Copyright (C) 2002
00007 // Created              : 5/10/2002
00008 // Revised              : 7/12/2002
00009 // Version              : 0.5
00010 // Target MCU   : Atmel AVR Series
00011 // Editor Tabs  : 3
00012 //
00013 // NOTE: This code is currently below version 1.0, and therefore is considered
00014 // to be lacking in some functionality or documentation, or may not be fully
00015 // tested.  Nonetheless, you can expect most functions to work.
00016 //
00017 // This code is distributed under the GNU Public License
00018 //              which can be found at http://www.gnu.org/licenses/gpl.txt
00019 //
00020 //*****************************************************************************
00021 
00022 #ifndef RTC_H
00023 #define RTC_H
00024 
00025 #include "global.h"
00026 
00027 // constants/macros/typdefs
00028 typedef struct struct_RtcTime
00029 {       
00030         // hardware
00031         u08 tics;
00032         u16 totaltics;
00033         // time of day
00034         u08 hours;
00035         u08 minutes;
00036         u08 seconds;
00037         // date
00038         u08 day;
00039         u08 month;
00040         u16 year;
00041 } RtcTimeType;
00042 
00043 
00044 // functions
00045 void rtcInit(void);
00046 void rtcService(void);
00047 RtcTimeType* rtcGetTime(void);
00048 
00049 #endif

Generated at Fri Oct 25 15:36:38 2002 for avrlib by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001