OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
packet_stats.h
Go to the documentation of this file.
1 #ifndef PACKET_STATS
2 #define PACKET_STATS
3 
43 extern struct packet_stats
44 {
45  unsigned long packets;
46  /* Single field validity checks */
47  unsigned long version; /* Must be 0. */
48  unsigned long type; /* Must be 0 (normal). */
49  unsigned long seq_flag; /* Must be non-zero. */
50  unsigned long sec_hdr_flag; /* Must be 1 (secondary header). */
51  unsigned long apid; /* 64 or 127(?) (MODIS). */
52  unsigned long time_tag;
53  unsigned long quick_look; /* Must be 0 (not selected) */
54  unsigned long pkt_type; /* 0, 1, 2, 4 */
55 
56  /* Single packet consistency checks */
57  unsigned long seq_type; /* == 3 only iff pkt_type == night */
58  unsigned long length_type; /* short length iff pkt_type == night */
59  unsigned long type_flag; /* type_flag non-zero only if pkt_type == Day */
60  unsigned long frame_count; /* Consistent with type_flag, calib_type. */
61  unsigned long cksum; /* Matches checksum of data field. */
62 } stats;
63 
64 void print_stats(void);
65 #endif
unsigned long length_type
Definition: packet_stats.h:58
unsigned long version
Definition: packet_stats.h:47
unsigned long frame_count
Definition: packet_stats.h:60
unsigned long quick_look
Definition: packet_stats.h:53
unsigned long time_tag
Definition: packet_stats.h:52
struct packet_stats stats
unsigned long type
Definition: packet_stats.h:48
unsigned long packets
Definition: packet_stats.h:45
unsigned long cksum
Definition: packet_stats.h:61
unsigned long apid
Definition: packet_stats.h:51
unsigned long sec_hdr_flag
Definition: packet_stats.h:50
unsigned long seq_flag
Definition: packet_stats.h:49
void print_stats(void)
Definition: print_stats.c:6
unsigned long type_flag
Definition: packet_stats.h:59
unsigned long seq_type
Definition: packet_stats.h:57
unsigned long pkt_type
Definition: packet_stats.h:54