SWDatabase
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
epam.h
Go to the documentation of this file.
1 /* $Id: epam.h,v 1.8 1997/08/06 19:51:21 jeff Exp $ */
2 
3 #include "hdfi.h"
4 
5 #define NUMFRM 128 /* number of minor frames in a cycle */
6 #define BYTMIN 21 /* number of bytes of epam data per minor frame */
7 
8 /* reported every 8 major frames (128 minor frames)*/
9 /* some items are subcommed, hence there are only 2 of them in 8 frames */
10 
11 struct EpamData
12 {
13  uint32 sctime_readout; /* 32 bit spacecraft time at readout */
14  uint32 sctime_collection; /* 32 bit spacecraft time at collection*/
15 
16  uint32 QAC; /* indicates the number of missing frame in this cycle */
17  uint8 QACarr[NUMFRM]; /* each entry corresponds to a single minor frame */
18  /* if value =0 frame is OK. =1 frame contains fill data*/
19 
20  uint8 data[NUMFRM][BYTMIN]; /* 21 bytes data per minor frame */
21  /* 128 minor frames per cycle */
22 
23  /* sunpulse data */
24  uint16 PhaseAng[NUMFRM]; /* Phase angle for each frame in this cycle*/
25  uint16 SunPulLat[2][8]; /* sun pulse latched at mn frm 0&8 [2] */
26  /* over the 8 [8] major frame cycle */
27  uint32 SunPulDat[2][8]; /* Sun sensor data */
28  /* bits 31-24 : unused */
29  /* bits 23-20 : Mnr frame */
30  /* bits 19-10 : sub secont count (684.75 cnts=1 sec)*/
31  /* bits 9- 8 : ID bits, 00=err,01=top,10=side,11=neither */
32  /* bits 7- 0 : Y angle measurment (Grey code) */
33  /* */
34  /* From C&DH Specification (mf0:index1=0, mf8:index1=1) */
35  /* For the time tag in Science minor frame 0: for a minor */
36  /* frame ID of 0, the sun pulse would have occured in the */
37  /* current major frame. For a minor frame ID of 1 to 15, */
38  /* the sun pulse would have occured in the previous major */
39  /* frame */
40  /* For the time tag in Science minor frame 8: for a minor */
41  /* frame ID of 0-8, the sun pulse would have occured in the */
42  /* current major frame. For a minor frame ID of 9 to 15, */
43  /* the sun pulse would have occured in the previous major */
44  /* frame */
45 
46 
47  /* Housekeeping data is here */
48  uint8 Cal[8]; /* int/ext cal readout */
49  uint8 Ref10[2]; /* +10V Ref Monitor */
50  uint8 Mon10[2]; /* +10V Monitor */
51  uint8 Mon6[2]; /* +6V Monitor */
52  uint8 Bias[2]; /* Detector Bias Voltage Monitor */
53  uint8 AmpTemp[2]; /* Log Amp D Temperature */
54  uint8 MFSATemp[2]; /* MFSA Log Amp D Temperature */
55  uint8 DetTemp[2]; /* Detector D Temperature */
56  uint8 YTemp[2]; /* EPAM 2B Yoke Temperature */
57  uint8 InCur[8]; /* input current monitor */
58  uint8 E1Temp[8]; /* epam 1 electronics temp. */
59  uint8 Sen2ATemp[8]; /* epam 2a sensor temp. */
60  uint8 Sen2BTemp[8]; /* epam 2b sensor temp. */
61  uint8 DeckTemp[8]; /* Instrument Deck Temp near EPAM */
62  uint8 Cur[8]; /* epam current */
63  uint8 HtrCur[8]; /* epam heater current */
64  uint8 PowBits[8]; /* power switching and ordinance bits */
65  /*--- EPAM power switching and ordinance bits ---*/
66  /*--- bit position 7: Interface Heater at position 10 of 112 bits ---*/
67  /*--- bit position 6: Internal Heaters at position 11 of 112 bits ---*/
68  /*--- bit position 5: Main System Power at position 28 of 112 bits ---*/
69  /*--- bit position 4: PyroArm (LEMS 30) at position 56 of 112 bits ---*/
70  /*--- bit position 3: PyroArm (LEMS 120) at position 57 of 112 bits ---*/
71  /*--- bit position 2: PyroArm (CD) at position 58 of 112 bits ---*/
72  /*--- bit position 1: 0 ---*/
73  /*--- bit position 0: 0 ---*/
74 };
uint32 sctime_readout
Definition: epam.h:13
uint8 DetTemp[2]
Definition: epam.h:55
uint8 Sen2ATemp[8]
Definition: epam.h:59
uint8 InCur[8]
Definition: epam.h:57
uint8 Sen2BTemp[8]
Definition: epam.h:60
uint8 Bias[2]
Definition: epam.h:52
uint16 SunPulLat[2][8]
Definition: epam.h:25
uint8 Mon6[2]
Definition: epam.h:51
uint8 HtrCur[8]
Definition: epam.h:63
uint8 YTemp[2]
Definition: epam.h:56
uint8 AmpTemp[2]
Definition: epam.h:53
uint8 DeckTemp[8]
Definition: epam.h:61
uint8 E1Temp[8]
Definition: epam.h:58
uint8 Cal[8]
Definition: epam.h:48
uint8 MFSATemp[2]
Definition: epam.h:54
uint8 Mon10[2]
Definition: epam.h:50
uint8 data[NUMFRM][BYTMIN]
Definition: epam.h:20
uint32 sctime_collection
Definition: epam.h:14
Definition: qac.h:4
uint8 Cur[8]
Definition: epam.h:62
#define NUMFRM
Definition: epam.h:5
uint32 SunPulDat[2][8]
Definition: epam.h:27
uint8 PowBits[8]
Definition: epam.h:64
#define BYTMIN
Definition: epam.h:6
uint8 Ref10[2]
Definition: epam.h:49
Definition: epam.h:11
uint32 QAC
Definition: epam.h:16
uint16 PhaseAng[NUMFRM]
Definition: epam.h:24