19 typedef void * var_ptr;
27 const char *
const * names;
31 #define SUBSYS_COUNT 6
33 #define TOTAL_VAR_COUNT 99
35 #define TOTAL_VAR_SIZE 605
37 #define TOTAL_CFG_COUNT 26
39 #define TOTAL_CFG_SIZE 159
46 #define SYS_RUN_NUMBER 0x00127000
47 #define SYS_DOM_ID 0x00224000
48 #define SYS_TIME_SLICE_DUR 0x00327000
49 #define SYS_HW_DATE_REV 0x00624000
50 #define SYS_SW_DATE_REV 0x00724000
51 #define SYS_STMACH_PKTSIZE 0x00417000
52 #define SYS_PWR_MEAS 0x00514011
53 #define SYS_PWR_MEAS_12V_CUR 0
54 #define SYS_PWR_MEAS_1V_CUR 1
55 #define SYS_PWR_MEAS_1V8_CUR 2
56 #define SYS_PWR_MEAS_2V5_CUR 3
57 #define SYS_PWR_MEAS_3V3_CUR 4
58 #define SYS_PWR_MEAS_5V_CUR 5
59 #define SYS_PWR_MEAS_3V3PMT_CUR 6
60 #define SYS_PWR_MEAS_VLED_CUR 7
61 #define SYS_PWR_MEAS_VLED_LVL 8
62 #define SYS_PWR_MEAS_12V_LVL 9
63 #define SYS_PWR_MEAS_TEMP_LVL 10
64 #define SYS_PWR_MEAS_1V_LVL 11
65 #define SYS_PWR_MEAS_1V8_LVL 12
66 #define SYS_PWR_MEAS_2V5_LVL 13
67 #define SYS_PWR_MEAS_3V3_LVL 14
68 #define SYS_PWR_MEAS_5V_LVL 15
69 #define SYS_PWR_MEAS_3V3PMT_LVL 16
70 #define SYS_PWR_MEAS_DACCTL_LVL 17
71 #define SYS_SYS_TEMP_HUM 0x00854005
72 #define SYS_SYS_TEMP_HUM_FPGA 0
73 #define SYS_SYS_TEMP_HUM_CLB 1
74 #define SYS_SYS_TEMP_HUM_CLB_HUM 2
75 #define SYS_SYS_TEMP_HUM_PWR 3
76 #define SYS_SYS_TEMP_HUM_WR 4
77 #define SYS_SYS_TEMP_HUM_SFP 5
78 #define SYS_FPGA_TEMP 0x00d54000
79 #define SYS_POWER_TEMP 0x00e54000
80 #define SYS_TDC_TS_FIFOC 0x00f14000
81 #define SYS_AES_TS_FIFOC 0x01014000
82 #define SYS_SYS_DISABLE 0x00906000
83 #define SYS_SYS_DISABLE_AHRS 0x1
84 #define SYS_SYS_DISABLE_TEMP_HUM 0x2
85 #define SYS_SYS_DISABLE_HV 0x4
86 #define SYS_SYS_DISABLE_NANO_STEP_UP 0x8
87 #define SYS_SYS_DISABLE_PWR_MEAS 0x10
88 #define SYS_SYS_RUN_ENA 0x00a07000
89 #define SYS_SYS_RUN_ENA_TDC 0x1
90 #define SYS_SYS_RUN_ENA_ACS 0x2
91 #define SYS_SYS_RUN_ENA_MON 0x4
92 #define SYS_SYS_RUN_ENA_NANO 0x8
93 #define SYS_IMGTYPE 0x00b04000
94 #define SYS_IMGTYPE_GOLDEN 0x1
95 #define SYS_IMGTYPE_DETECTOR 0x2
96 #define SYS_IMGTYPE_BASE 0x3
97 #define SYS_IMGTYPE_CALIBRATION 0x4
98 #define SYS_SYS_FAIL 0x00c06000
99 #define SYS_SYS_FAIL_AHRS 0x1
100 #define SYS_SYS_FAIL_TEMP_HUM 0x2
101 #define SYS_SYS_FAIL_NANO_STEP_UP 0x8
102 #define SYS_SYS_FAIL_PWR_MEAS 0x10
127 uint16_t pwr_meas[18];
131 int16_t sys_temp_hum[6];
162 extern void *
sys_p[17];
166 extern const int32_t sys_id[17];
169 extern const char *
const sys_name[17];
176 #define NET_WR_MU 0x10834000
177 #define NET_CABLE_RTT 0x10c74000
178 #define NET_IPMUX_SRV_IP 0x10327000
179 #define NET_WR_DELTA 0x10664003
180 #define NET_WR_DELTA_SLAVE_TX 0
181 #define NET_WR_DELTA_SLAVE_RX 1
182 #define NET_WR_DELTA_MASTER_TX 2
183 #define NET_WR_DELTA_MASTER_RX 3
184 #define NET_MAC_ADDR 0x10114002
185 #define NET_IPMUX_PORTS 0x10217003
186 #define NET_IPMUX_SRV_MAC 0x10417002
187 #define NET_SC_PORT 0x10517000
188 #define NET_SC_PORT_DEFAULT 0xDACE
189 #define NET_WR_BITSLIDE 0x10714000
190 #define NET_RX_INPUT_POWER 0x10d14000
191 #define NET_TX_OUTPUT_POWER 0x10e14000
192 #define NET_WR_TEMP 0x10f54000
193 #define NET_SFP_TEMP 0x11054000
194 #define NET_WR_ST_PTP 0x10944000
195 #define NET_WR_ST_PTP_INITIALIZING 0
196 #define NET_WR_ST_PTP_FAULTY 1
197 #define NET_WR_ST_PTP_DISABLED 2
198 #define NET_WR_ST_PTP_LISTENING 3
199 #define NET_WR_ST_PTP_PRE_MASTER 4
200 #define NET_WR_ST_PTP_MASTER 5
201 #define NET_WR_ST_PTP_PASSIVE 6
202 #define NET_WR_ST_PTP_UNCALIBRATED 7
203 #define NET_WR_ST_PTP_SLAVE 8
204 #define NET_WR_ST_PTP_UNINITIALIZED -1
205 #define NET_WR_ST_GEN 0x10a44000
206 #define NET_WR_ST_GEN_PRESENT 0
207 #define NET_WR_ST_GEN_S_LOCK 1
208 #define NET_WR_ST_GEN_M_LOCK 2
209 #define NET_WR_ST_GEN_LOCKED 3
210 #define NET_WR_ST_GEN_CALIBRATION 4
211 #define NET_WR_ST_GEN_CALIBRATED 5
212 #define NET_WR_ST_GEN_RESP_CALIB_REQ 6
213 #define NET_WR_ST_GEN_WR_LINK_ON 7
214 #define NET_WR_ST_GEN_TIMER_ARRAY_SIZE 8
215 #define NET_WR_ST_GEN_IDLE 9
216 #define NET_WR_ST_GEN_S_LOCK_1 10
217 #define NET_WR_ST_GEN_S_LOCK_2 11
218 #define NET_WR_ST_GEN_CALIBRATION_1 12
219 #define NET_WR_ST_GEN_CALIBRATION_2 13
220 #define NET_WR_ST_GEN_CALIBRATION_3 14
221 #define NET_WR_ST_GEN_CALIBRATION_4 15
222 #define NET_WR_ST_GEN_CALIBRATION_5 16
223 #define NET_WR_ST_GEN_CALIBRATION_6 17
224 #define NET_WR_ST_GEN_CALIBRATION_7 18
225 #define NET_WR_ST_GEN_CALIBRATION_8 19
226 #define NET_WR_ST_GEN_RESP_CALIB_REQ_1 20
227 #define NET_WR_ST_GEN_RESP_CALIB_REQ_2 21
228 #define NET_WR_ST_GEN_RESP_CALIB_REQ_3 22
229 #define NET_WR_ST_GEN_UNINITIALIZED -1
230 #define NET_WR_ST_SERV 0x10b44000
231 #define NET_WR_ST_SERV_SYNC_NSEC 1
232 #define NET_WR_ST_SERV_SYNC_TAI 2
233 #define NET_WR_ST_SERV_SYNC_PHASE 3
234 #define NET_WR_ST_SERV_TRACK_PHASE 4
235 #define NET_WR_ST_SERV_WAIT_SYNC_IDLE 5
236 #define NET_WR_ST_SERV_WAIT_OFFSET_STABLE 6
237 #define NET_WR_ST_SERV_UNINITIALIZED -1
256 uint16_t mac_addr[3];
259 uint16_t ipmux_ports[4];
263 uint16_t ipmux_srv_mac[3];
297 extern void *
net_p[17];
301 extern const int32_t net_id[17];
304 extern const char *
const net_name[17];
311 #define OPT_PMT_ID 0x2052401e
312 #define OPT_HR_VETO_THRES 0x20627000
313 #define OPT_CHAN_ENABLE 0x20827000
314 #define OPT_HR_VETO_ENA_CH 0x20e27000
315 #define OPT_MULHIT_ENA_CH 0x20f27000
316 #define OPT_MIN_TOT 0x21027000
317 #define OPT_NANO_LENGTH 0x20917000
318 #define OPT_NANO_PERIOD 0x20a17000
319 #define OPT_NANO_VOLT 0x20b17000
320 #define OPT_NANO_DELAY 0x20c17000
321 #define OPT_NANO_PCOUNT 0x20d17000
322 #define OPT_CHAN_CONFIG 0x2010701e
323 #define OPT_CHAN_STATUS 0x2020401e
324 #define OPT_PMT_HIGHVOLT 0x2030701e
325 #define OPT_PMT_THRESHOLD 0x2040701e
326 #define OPT_NANO_ENABLE 0x20787000
365 uint8_t chan_config[31];
368 uint8_t chan_status[31];
372 uint8_t pmt_highvolt[31];
376 uint8_t pmt_threshold[31];
386 extern void *
opt_p[17];
390 extern const int32_t opt_id[17];
393 extern const char *
const opt_name[17];
400 #define INS_AHRS_PITCH 0x301a4000
401 #define INS_AHRS_ROLL 0x302a4000
402 #define INS_AHRS_YAW 0x303a4000
403 #define INS_AHRS_A 0x304a4002
404 #define INS_AHRS_G 0x305a4002
405 #define INS_AHRS_H 0x306a4002
406 #define INS_TEMP 0x30754000
407 #define INS_HUMID 0x30814000
408 #define INS_AHRS_ENABLE 0x30987000
409 #define INS_AHRS_VALID 0x30a84000
410 #define INS_COMPASS_VERSION 0x30b04000
456 extern void *
ins_p[12];
460 extern const int32_t ins_id[12];
463 extern const char *
const ins_name[12];
470 #define ACS_ACOU_ENABLE 0x40187000
471 #define ACS_ACOU_CHAN 0x40207000
472 #define ACS_ACOU_CHAN_BOTH 0
473 #define ACS_ACOU_CHAN_ONE 1
474 #define ACS_ACOU_CHAN_TWO 2
475 #define ACS_ACOU_RES 0x40307000
476 #define ACS_ACOU_RES_12_BITS 0
477 #define ACS_ACOU_RES_16_BITS 1
478 #define ACS_ACOU_RES_24_BITS 2
497 extern void *
acs_p[4];
501 extern const int32_t acs_id[4];
504 extern const char *
const acs_name[4];
511 #define BSE_EDFA_SETP_RD 0x50264000
512 #define BSE_EDFA_IOP 0x50364000
513 #define BSE_EDFA_OOP 0x50464000
514 #define BSE_EDFA_PUMPDC 0x50564000
515 #define BSE_EDFA_TEMP 0x50664000
516 #define BSE_EDFA_SETP_WR 0x508a2000
517 #define BSE_BPS_ALARM_FIRED 0x52524000
518 #define BSE_BPS_IBACK 0x50914000
519 #define BSE_BPS_I12 0x50a14000
520 #define BSE_BPS_V375 0x50b14000
521 #define BSE_BPS_I375 0x50c14000
522 #define BSE_BPS_V5 0x50d14000
523 #define BSE_BPS_BREAKER 0x50e14000
524 #define BSE_BPS_ALARM 0x50f14000
525 #define BSE_ACDC_VOLT 0x51014000
526 #define BSE_ACDC_CUR 0x51114000
527 #define BSE_BPS_5V_I_M 0x51414000
528 #define BSE_BPS_LBL_I_M 0x51514000
529 #define BSE_BPS_DU_I_M 0x51614000
530 #define BSE_BPS_DU_IRTN_M 0x51714000
531 #define BSE_BPS_V_M 0x51814000
532 #define BSE_BPS_HYDRO_I_M 0x51914000
533 #define BSE_BPS_MON_THEATSINK_M 0x51a14000
534 #define BSE_BPS_TBOARD_M 0x51b14000
535 #define BSE_BPS_5V_I_MAX 0x51c14000
536 #define BSE_BPS_LBL_I_MAX 0x51d14000
537 #define BSE_BPS_DU_I_MAX 0x51e14000
538 #define BSE_BPS_DU_IRTN_MAX 0x51f14000
539 #define BSE_BPS_V_MAX 0x52014000
540 #define BSE_BPS_HYDRO_I_MAX 0x52114000
541 #define BSE_BPS_MON_THEATSINK_MAX 0x52214000
542 #define BSE_BPS_TBOARD_MAX 0x52314000
543 #define BSE_BPS_ALARM_MAX 0x52414000
544 #define BSE_EDFA_EMI 0x50186000
545 #define BSE_EDFA_SN 0x5070401f
546 #define BSE_ACDC_TEMP 0x51244000
547 #define BSE_INST_FAIL 0x51306000
548 #define BSE_INST_FAIL_EDFA 0x1
549 #define BSE_INST_FAIL_BPS 0x2
550 #define BSE_INST_FAIL_ACDC 0x4
672 extern void *
bse_p[38];
676 extern const int32_t bse_id[38];
679 extern const char *
const bse_name[38];
uint16_t bps_i12
Current of 12V line (0 to 1023 ADC raw)
uint32_t hw_date_rev
Hardware revision (YYMMDDBB hex)
uint16_t acdc_cur
ACDC Current, between 0 and 2560A.
uint8_t inst_fail
Bitmask containing error devices.
uint16_t bps_hydro_i_m
MON_HYDRO_I_VALUE from 0 to 1023 ADC raw.
uint16_t stmach_pktsize
Max packet size in bytes as chopped by the HW-StateMachine.
uint16_t bps_mon_theatsink_max
MON_THEATSINK_MAX_VALUE.
f32_t ahrs_roll
Roll in degrees.
uint16_t bps_tboard_m
MON_TBOARD_VALUE.
void * bse_p[38]
Pointer look up table for all process variables of Base.
uint16_t bps_du_irtn_max
MON_DU_IRTN_MAX_VALUE.
int8_t acdc_temp
ACDC Temperature in degrees Centigrade.
uint32_t time_slice_dur
Timeslice duration in microseconds.
f32_t ahrs_pitch
Pitch in degrees.
uint16_t nano_pcount
Nano-beacon pulse train count, each second.
uint16_t bps_du_irtn_m
MON_DU_IRTN_VALUE.
uint32_t chan_enable
Channel enable, bit per channel.
uint32_t hr_veto_ena_ch
High-rate veto enable, bit per channel.
int16_t sfp_temp
SFP module temperature, in 1/100th of a degree.
uint16_t humid
Humidity in 1/100th RH.
uint16_t tx_output_power
Receiver output power in steps of 0.1 uW per count.
uint16_t aes_ts_fifoc
AES timestamp fifo count.
uint16_t bps_lbl_i_max
MON_LBL_I_MAX_VALUE line 0 to 1023 ADC raw.
uint8_t sys_fail
Failure bitmask, same bits as SYS_DISABLE.
Structure defining all process variables for subsystem Optics.
uint16_t bps_alarm_max
Alarm Status: ALRMNEG2 ALRMNEG1 ALRMPOS2 ALRMPOS1.
Special library for primitive IEEE 754 floating point handling without dragging all float support alo...
uint16_t nano_length
Length of pulse in 16 ns ticks, default is 4 ticks.
Structure defining all process variables for subsystem System.
uint32_t mulhit_ena_ch
Multi-hit enable, bit per channel.
uint16_t nano_period
Period of beacon in 16 ns ticks, default is 0xC35 ticks, or 50us.
bool acou_enable
Acoustic enable (deprecated, see SYS_RUN_ENA)
Structure defining all process variables for subsystem Networking & IPMux.
f32_t edfa_setp_wr
Settings for Power Setpoint (in dBm)
int16_t power_temp
Power board temperature in 1/100th of a degree.
uint16_t bps_v_max
MON_BPS_V_MAX_VALUE 375V line from 0 to 1023 ADC raw.
void * opt_p[17]
Pointer look up table for all process variables of Optics.
uint16_t bps_lbl_i_m
MON_LBL_I_VALUE line 0 to 1023 ADC raw.
uint16_t sc_port
Slow control port.
uint32_t ipmux_srv_ip
Server IP address (0xAABBCCDD = AA.BB.CC.DD)
uint32_t run_number
The current run number 20160704 Made run number configurable.
uint16_t bps_du_i_max
MON_DU_I_MAX_VALUE from 0 to 1023 ADC raw.
int8_t wr_st_gen
White Rabbit general state.
int32_t edfa_iop
Input Optical Power (in milli dBm)
int32_t edfa_temp
Temperature (in milli degrees celsius)
Structure defining all process variables for subsystem Base.
sys_t sys
Provides access to all process variables of subsystem System.
uint16_t tdc_ts_fifoc
TDC timestamp fifo count.
uint8_t compass_version
Compass version: 0 if not available or very old version.
uint32_t hr_veto_thres
High-rate veto (hits per timeslice)
uint16_t acdc_volt
ACDC Voltage, between 300 and 556.
const subsys_info_t subsys_info[6]
array of subsystem meta objects
int16_t temp
Temperature in 1/100th of a degree.
uint8_t sys_disable
Disable parts of the system.
uint16_t bps_v375
Voltage of 375V line (0 to 1023 ADC raw)
uint32_t sw_date_rev
Software revision (YYMMDDBB hex)
bool ahrs_valid
Compass data are valid.
void * net_p[17]
Pointer look up table for all process variables of Networking & IPMux.
acs_t acs
Provides access to all process variables of subsystem Acoustics.
uint8_t imgtype
Currently running image type.
uint16_t bps_5v_i_max
MON_5V_I_MAX_VALUE 0 to 1023 ADC raw.
net_t net
Provides access to all process variables of subsystem Networking & IPMux.
int8_t wr_st_ptp
White Rabbit PTP State.
uint16_t bps_iback
Backbone current (0 to 1023 ADC raw)
uint32_t f32_t
32 bit representation for float.
uint32_t bps_alarm_fired
Alarm Fired.
uint8_t sys_run_ena
Run-state Enable mask.
void * ins_p[12]
Pointer look up table for all process variables of Instrumentation.
uint16_t wr_bitslide
White Rabbit Bitslide value.
uint16_t rx_input_power
Receiver input power in steps of 0.1 uW per count.
int16_t fpga_temp
FPGA core temperature in 1/100th of a degree.
uint64_t wr_mu
White Rabbit Round-Trip time.
uint16_t bps_tboard_max
MON_TBOARD_MAX_VALUE.
uint8_t acou_res
Acoustic resolution.
opt_t opt
Provides access to all process variables of subsystem Optics.
uint16_t nano_volt
Nano-beacon voltage in millivolts, 0-30000V.
uint16_t nano_delay
Nano-beacon delay in 16 ns ticks.
int32_t edfa_oop
Output Optical Power (in milli dBm)
ins_t ins
Provides access to all process variables of subsystem Instrumentation.
Structure defining all process variables for subsystem Instrumentation.
int32_t edfa_pumpdc
Diode Pump Current (in micro A)
uint32_t dom_id
DOM identifier.
void * sys_p[17]
Pointer look up table for all process variables of System.
uint16_t bps_mon_theatsink_m
MON_THEATSINK_VALUE.
uint16_t bps_v5
Voltage of 5V line (0 to 1023 ADC raw)
bool ahrs_enable
Compass enable (deprecated, see SYS_DISABLE)
Structure defining all process variables for subsystem Acoustics.
bse_t bse
Provides access to all process variables of subsystem Base.
uint16_t bps_du_i_m
MON_DU_I_VALUE from 0 to 1023 ADC raw.
int16_t wr_temp
White Rabbit temperature (DS18S20), in 1/100th of a degree.
uint16_t bps_i375
Current of 375V line (0 to 1023 ADC raw)
void * acs_p[4]
Pointer look up table for all process variables of Acoustics.
f32_t ahrs_yaw
Yaw in degrees.
uint16_t bps_hydro_i_max
MON_HYDRO_I_MAX_VALUE from 0 to 1023 ADC raw.
int32_t edfa_setp_rd
Monitored Power Setpoint for APC mode (in milli dBm)
uint8_t acou_chan
Acoustics channel config.
uint16_t bps_5v_i_m
MON_5V_I_VALUE 0 to 1023 ADC raw.
uint16_t bps_v_m
MON_BPS_V_VALUE 375V line from 0 to 1023 ADC raw.
int64_t cable_rtt
Cable roundtrip time in ps.
uint16_t bps_alarm
Alarm Status.
bool nano_enable
Enable nano-beacon (deprecated, see SYS_RUN_ENA)
uint16_t bps_breaker
Breaker status.
int8_t wr_st_serv
White Rabbit servo state.