SWDatabase
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
s3_smonitor.h
Go to the documentation of this file.
1 /* $Id: s3_smonitor.h,v 1.6 1998/12/07 18:12:39 ad Exp $ */
2 #include "hdfi.h"
3 
4 #define SMON_N 12 /* number of monitor rates */
5 #define SMON_S 8 /* number of sectors */
6 #define SMON_CYC 12 /* number of cycles per SR = 60 / 5 */
7 #define SMON_NFILL 4 /* amount of fill data elements */
8 
9  /* total size (in bytes) of SMON data (including slack) in a full SR */
10 #define SMON_TSZ 1800
11 
12  /* size (in bytes) of SMON cycle (including slack) */
13 #define SMON_CSZ SMON_TSZ/SMON_CYC
14 #define SMON_ESZ SMON_TSZ/60 /* size (in bytes) of SMON in EDB */
15 
16 /* monitor rates are collected over 5 spins and output during the next */
17 /* 5 spins(or edb's). There are 12 matrix rate collection cycles per */
18 /* Science Record */
19 
20 /* sctime_readout: spacecraft clock of first minor frame of the */
21 /* first edb of the monitor rate output cycle */
22 
23 /* sctime_collection: time of the start of the first spin in the */
24 /* collection cycle, in spacecraft clock time units */
25 
26 struct smonitor{
27 
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 5-spin cycle */
31 
32  uint16 MONITOR[SMON_N][SMON_S];/* 12 Monitor rates, 8 sectors */
33  uint16 FILL[SMON_NFILL]; /* Fill data */
34 };
Definition: s3_smonitor.h:26
uint16 FILL[SMON_NFILL]
Definition: s3_smonitor.h:33
#define SMON_S
Definition: s3_smonitor.h:5
#define SMON_N
Definition: s3_smonitor.h:4
#define SMON_NFILL
Definition: s3_smonitor.h:7
uint32 sctime_readout
Definition: s3_smonitor.h:28
uint32 QAC
Definition: s3_smonitor.h:30
float64 sctime_collection
Definition: s3_smonitor.h:29
uint16 MONITOR[SMON_N][SMON_S]
Definition: s3_smonitor.h:32