CARMA C++
Constants.h
1 /*
2  * Fault System Constants
3  *
4  * Copyright (c) 2010 Ira W. Snyder <iws@ovro.caltech.edu>
5  */
6 
7 #ifndef FAULT_SYSTEM_CONSTANTS_H
8 #define FAULT_SYSTEM_CONSTANTS_H
9 
10 /*
11  * Subarray Number Constants
12  *
13  * These are used in two places:
14  *
15  * 1) Subarray Numbers
16  *
17  * Used as an attribute of a <subarray> node to generate the true monitor
18  * point name underlying a <bf_output> node.
19  *
20  * 2) Alarm Prefix Numbers
21  *
22  * Used to carry data from the XML all the way through the FaultTransport
23  * IPQ and up to the RTD display. This allows us to add a prefix in the
24  * alarm RTD display to help users understand what is going on better.
25  */
26 #define SUBARRAY_SYS 0
27 #define SUBARRAY_SCI1 1
28 #define SUBARRAY_SCI2 2
29 #define SUBARRAY_ENG1 3
30 #define SUBARRAY_ENG2 4
31 #define SUBARRAY_OFFLINE 5
32 
33 /*
34  * Subarray counts
35  *
36  * These are used in loops and structure initialization. At least we keep
37  * them in one place which is easy to find...
38  */
39 #define SUBARRAY_NUM_START 1
40 #define SUBARRAY_NUM_END 5
41 #define NUM_SUBARRAYS 5
42 
43 /*
44  * Maximum number of astrobands and astroinputs
45  *
46  * These are used to verify the <bf_output> nodes in the DAG files so that
47  * we don't have the possibility of overflowing vectors in the FaultTransport
48  * classes, and elsewhere.
49  */
50 #define NUM_ASTROBANDS 24
51 #define NUM_ASTROINPUTS 32
52 
53 #endif /* FAULT_SYSTEM_CONSTANTS_H */