SWDatabase
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
s3_smatrix.h
Go to the documentation of this file.
1 /* $Id: s3_smatrix.h,v 1.6 1998/12/07 18:12:39 ad Exp $ */
2 #include "hdfi.h"
3 
4 #define SMAT_N 60 /* number of matrix rate channels */
5 #define SMAT_S 1 /* number of sectors */
6 #define SMAT_CYC 6 /* number of cycles per SR = 60 / 10 */
7 
8  /* total size (in bytes) of SMAT data (including slack) in a full SR */
9 #define SMAT_TSZ 540
10 
11 /* size (in bytes) of SMAT cycle (including slack) */
12 #define SMAT_CSZ SMAT_TSZ/SMAT_CYC
13 #define SMAT_ESZ SMAT_TSZ/60 /* size (in bytes) of SMAT area in EDB */
14 
15 /* Matrix rates are collected over 10 spins and output during the next */
16 /* 10 spins(or edb's). There are 6 matrix rate collection cycles per */
17 /* Science Record */
18 
19 /* sctime_readout: spacecraft clock of first minor frame of the */
20 /* first edb of the matrix rate output cycle */
21 
22 /* sctime_collection: time of the start of the first spin in the */
23 /* collection cycle, in spacecraft clock time units */
24 
25 /* smatrix structure contains SEPICA matrix rates for 1 10-spin collection cycle */
26 
27 struct smatrix{
28  uint32 sctime_readout; /* 32 bit spacecraft time */
29  float64 sctime_collection; /* spacecraft time, sub-second resolution */
30  uint32 QAC; /* number of missing frames in this 10-spin cycle */
31 
32  uint16 MATRIX[SMAT_N]; /* 49 Matrix rates, 11 fill */
33 };
34 
uint16 MATRIX[SMAT_N]
Definition: s3_smatrix.h:32
uint32 sctime_readout
Definition: s3_smatrix.h:28
float64 sctime_collection
Definition: s3_smatrix.h:29
uint32 QAC
Definition: s3_smatrix.h:30
Definition: s3_smatrix.h:27
#define SMAT_N
Definition: s3_smatrix.h:4