00001 #ifndef __SAVE_PACKET_TO_DAYFILE_H
00002 #define __SAVE_PACKET_TO_DAYFILE_H
00003
00004
00005 #define HK_DF_CHECK_FOUND 1
00006 #define HK_DF_CHECK_NOT_FOUND 0
00007 #define HK_DF_LOAD_PACKET_SUCCESS 1
00008 #define HK_DF_DAYFILE_LOAD_SUCCESS 1
00009
00010
00011
00012 typedef struct HK_Dayfile_Packet_struct
00013 {
00014 unsigned short length;
00015 unsigned short value[2000];
00016 struct HK_Dayfile_Packet_struct *next;
00017
00018 } HK_Dayfile_Packet_t;
00019
00020
00021 typedef struct HK_Dayfile_Data_struct
00022 {
00023
00024
00025 int short apid;
00026 char dayfile[100];
00027 short year;
00028 short day_yr;
00029 short month;
00030 short day;
00031 short hour;
00032 short minute;
00033 short second;
00034 short version;
00035
00036
00037
00038 unsigned short length;
00039
00040
00041 struct HK_Dayfile_Packet_struct *pkt;
00042
00043
00044 struct HK_Dayfile_Data_struct *next;
00045
00046 } HK_Dayfile_Data_t;
00047
00048
00049 #endif