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