00001 /*************************************************************************** 00002 * ntp.h 00003 * 00004 * Mon Aug 28 11:41:21 2006 00005 * Copyright 2006 User 00006 * Email 00007 ****************************************************************************/ 00008 00009 /* 00010 * This program is free software; you can redistribute it and/or modify 00011 * it under the terms of the GNU General Public License as published by 00012 * the Free Software Foundation; either version 2 of the License, or 00013 * (at your option) any later version. 00014 * 00015 * This program is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 * GNU General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU General Public License 00021 * along with this program; if not, write to the Free Software 00022 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00023 */ 00024 00025 #ifndef _NTP_H 00026 #define _NTP_H 00027 00028 unsigned int NTP_GetTime( void ); 00029 00030 #define NTP_OK 0 00031 #define NTP_ERROR 0xffff 00032 00033 #define MAX_NTP_FAILED 8 00034 00035 #define SecondsPerDay 86400 00036 #define SecondsPerHour 3600 00037 #define SecondsPerMin 60 00038 #define TimeZone 7200 00039 00040 union DATE { 00041 unsigned char DateByte[4]; 00042 unsigned long Date; 00043 }; 00044 00045 #endif /* _NTP_H */