SWDatabase
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
s3_sdiag.h
Go to the documentation of this file.
1 /* $Id: s3_sdiag.h,v 1.4 1998/12/07 18:12:39 ad Exp $ */
2 #include "hdfi.h"
3 
4 #define SEP_DIAG_CYCLEN 88
5 
6 #define SEP_DIAG_CYCPERSR 60 /* number of diag collection cycles per Science Rec */
7 
8 /* sctime_readout: spacecraft clock of first minor frame of the EDB */
9 
10 /* sctime_collection: diag data are collected over 1 spin and output */
11 /* during the next spin. There are 60 diag collection cycles per SR. */
12 /* sctime_collection contains the time of the start of the */
13 /* collection cycle (spin), in spacecraft clock time units */
14 
15 
16 struct sdiag{
17  uint32 sctime_readout; /* 32 bit spacecraft time */
18  float64 sctime_collection; /* spacecraft time, sub-second resolution */
19 
20  uint16 QAC; /* number of missing frames in this EDB */
21 
22  uint16 concat; /* Sequence number for this structure will be */
23  /* greater than 1 for cases where the number of */
24  /* events in the EDB exceeds SEP_PHA_MAX. In these */
25  /* cases, concat will count down from N to 1, where N */
26  /* is the total number of spha structures for the */
27  /* current EDB. */
28 
29  uint16 numevts; /* Number of diag events in this structure. */
30  /* Should be SEP_DIAG_MAX when concat > 1. */
31  /* When concat == 1, numevts <= SEP_DIAG_MAX */
32 
33  uint16 numevtsedb; /* Number of diag events in the whole EDB */
34 
35  uint16 edb; /* sequence number of EDB in Science Record (0-59) */
36 
37  uint16 DIAG[4][SEP_DIAG_CYCLEN]; /* engineering data */
38 };
uint16 numevts
Definition: s3_sdiag.h:29
#define SEP_DIAG_CYCLEN
Definition: s3_sdiag.h:4
Definition: s3_sdiag.h:16
uint16 edb
Definition: s3_sdiag.h:35
uint32 sctime_readout
Definition: s3_sdiag.h:17
uint16 numevtsedb
Definition: s3_sdiag.h:33
uint16 QAC
Definition: s3_sdiag.h:20
uint16 concat
Definition: s3_sdiag.h:22
uint16 DIAG[4][SEP_DIAG_CYCLEN]
Definition: s3_sdiag.h:37
float64 sctime_collection
Definition: s3_sdiag.h:18