CAEN FERS Library v1.1.4
SDK for FERS systems
FERS_Registers_520X.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  XR_Cfg_t
 
struct  picoTDC_Cfg_t
 

Macros

#define _REGISTERS_H
 
#define INDIV_ADDR(addr, ch)   (0x02000000 | ((addr) & 0xFFFF) | ((ch)<<16))
 
#define BCAST_ADDR(addr)   (0x03000000 | ((addr) & 0xFFFF))
 
#define STATUS_READY   (1 << 0)
 
#define STATUS_FAIL   (1 << 1)
 
#define STATUS_RUNNING   (1 << 2)
 
#define STATUS_TDL_SYNC   (1 << 3)
 
#define STATUS_FPGA_OVERTEMP   (1 << 4)
 
#define STATUS_TDC_RO_ERR   (1 << 5)
 
#define STATUS_TDLINK_LOL   (1 << 6)
 
#define STATUS_TDC0_LOL   (1 << 7)
 
#define STATUS_TDC1_LOL   (1 << 8)
 
#define STATUS_RO_CLK_LOL   (1 << 9)
 
#define STATUS_TDL_DISABLED   (1 << 10)
 
#define STATUS_TDC0_OVERTEMP   (1 << 11)
 
#define STATUS_TDC1_OVERTEMP   (1 << 12)
 
#define STATUS_BOARD_OVERTEMP   (1 << 13)
 
#define STATUS_CRC_ERROR   (1 << 14)
 
#define STATUS_UNUSED_15   (1 << 15)
 
#define STATUS_SPI_BUSY   (1 << 16)
 
#define STATUS_I2C_BUSY   (1 << 17)
 
#define STATUS_I2C_FAIL   (1 << 18)
 
#define CMD_TIME_RESET   0x11
 Absolute Time reset. More...
 
#define CMD_ACQ_START   0x12
 Start acquisition. More...
 
#define CMD_ACQ_STOP   0x13
 Stop acquisition. More...
 
#define CMD_TRG   0x14
 Send software trigger. More...
 
#define CMD_RESET   0x15
 Global Reset (clear data, set all regs to default) More...
 
#define CMD_TPULSE   0x16
 Send a test pulse. More...
 
#define CMD_RES_PTRG   0x17
 Reset periodic trigger counter (and rearm PTRG in single pulse mode) More...
 
#define CMD_CLEAR   0x18
 Clear Data. More...
 
#define CMD_VALIDATION   0x19
 Trigger Validation (either positive = accept or negative = reject) More...
 
#define CMD_SET_VETO   0x1A
 Set Veto. More...
 
#define CMD_CLEAR_VETO   0x1B
 Clear Veto. More...
 
#define CMD_TDL_SYNC   0x1C
 Sync signal from TDL. More...
 
#define CMD_USE_ICLK   0x1E
 Use internal CLK for FPGA. More...
 
#define CMD_USE_ECLK   0x1F
 Use external CLK for FPGA. More...
 
#define CMD_CFG_ASIC   0x20
 Configure ASIC (load shift register) More...
 
#define crcfg_qdiscr_latch   0
 Qdiscr output: 0=latched, 1=direct (bit 258 of SR) More...
 
#define crcfg_sca_bias   1
 SCA bias: 0=high (5MHz readout speed), 1=weak (bit 301 of SR) More...
 
#define crcfg_pdet_mode_hg   2
 Peak_det mode HighGain: 0=peak detector, 1=T&H (bit 306 of SR) More...
 
#define crcfg_pdet_mode_lg   3
 Peak_det mode LowGain: 0=peak detector, 1=T&H (bit 307 of SR) More...
 
#define crcfg_ps_ctrl_logic   4
 Peak Sens Ctrl Logic: 0=internal, 1=external=PS_modeb_ext (bit 308 of SR) More...
 
#define crcfg_ps_trg_source   5
 Peak Sens Trg source: 0=internal, 1=external (bit 309 of SR) More...
 
#define crcfg_lg_pa_bias   6
 LG Preamp bias: 0=normal, 1=weak (bit 323 of SR) More...
 
#define crcfg_pa_fast_sh   7
 Fast shaper connection: 0=high gain pa, 1=low gain pa (bit 328 of SR) More...
 
#define crcfg_8bit_dac_ref   8
 HV adjust DAC reference: 0=2.5V, 1=4.5V (bit 330 of SR) More...
 
#define crcfg_ota_bias   9
 Output OTA buffer bias auto off: 0=auto, 1=force on (bit 1133 of SR) More...
 
#define crcfg_trg_polarity   10
 Trigger polarity: 0=pos, 1=neg (bit 1141 of SR) More...
 
#define crcfg_enable_chtrg   11
 Enable channel triggers (bit 1143 of SR) More...
 
#define crcfg_enable_gtrg   16
 Enable propagation of gtrg to the Citiroc pin global_trig. More...
 
#define crcfg_enable_veto   17
 Enable propagation of gate (= not veto) to the Citiroc pin val_evt. More...
 
#define crcfg_repeat_raz   18
 Enable loop asserting raz_chn until nor_charge stays active. More...
 
#define SHAPING_TIME_12_5NS   6
 
#define SHAPING_TIME_25NS   5
 
#define SHAPING_TIME_37_5NS   4
 
#define SHAPING_TIME_50NS   3
 
#define SHAPING_TIME_62_5NS   2
 
#define SHAPING_TIME_75NS   1
 
#define SHAPING_TIME_87_5NS   0
 
#define TEST_PULSE_SOURCE_EXT   0
 
#define TEST_PULSE_SOURCE_T0_IN   1
 
#define TEST_PULSE_SOURCE_T1_IN   2
 
#define TEST_PULSE_SOURCE_PTRG   3
 
#define TEST_PULSE_SOURCE_SW_CMD   4
 
#define TEST_PULSE_PREAMP_LG   1
 
#define TEST_PULSE_PREAMP_HG   2
 
#define TEST_PULSE_PREAMP_BOTH   3
 
#define TEST_PULSE_DEST_ALL   -1
 
#define TEST_PULSE_DEST_EVEN   -2
 
#define TEST_PULSE_DEST_ODD   -3
 
#define TEST_PULSE_DEST_NONE   -4
 
#define DPROBE_OFF   0
 
#define DPROBE_PEAK_LG   1
 
#define DPROBE_PEAK_HG   2
 
#define DPROBE_HOLD   3
 
#define DPROBE_START_CONV   4
 
#define DPROBE_DATA_COMMIT   5
 
#define DPROBE_DATA_VALID   6
 
#define DPROBE_CLK_1024   7
 
#define DPROBE_VAL_WINDOW   8
 
#define DPROBE_T_OR   9
 
#define DPROBE_Q_OR   10
 
#define DPROBE_XROC_TRG   11
 
#define GAIN_SEL_AUTO   0
 
#define GAIN_SEL_HIGH   1
 
#define GAIN_SEL_LOW   2
 
#define GAIN_SEL_BOTH   3
 
#define FAST_SHAPER_INPUT_HGPA   0
 
#define FAST_SHAPER_INPUT_LGPA   1
 
#define a_XR_ChControl(i)   (0x0000 + (63-i))
 Channel Settings (XROC channels are swapped on PCB => ch0 goes in ch63...) More...
 
#define a_XR_ASIC_bias   0x0040
 ASIC biasing. More...
 
#define a_XR_common_cfg   0x0041
 Common settings. More...
 
#define a_XR_out_cfg   0x0042
 Output settings. More...
 
#define a_XR_event_val   0x0043
 Event validation gating. More...
 
#define a_pTDC_Control   0x0004
 R/W - Magic word + reset bits. More...
 
#define a_pTDC_Enable   0x0008
 R/W - Enable bits. More...
 
#define a_pTDC_Header   0x000C
 R/W - Event data format (header) More...
 
#define a_pTDC_TrgWindow   0x0010
 R/W - Trg Window Latency + Width. More...
 
#define a_pTDC_Trg0Del_ToT   0x0014
 R/W - Trg_Ch0 Delay + ToT. More...
 
#define a_pTDC_BunchCount   0x0018
 R/W - Bunch Count Overflow + Offset. More...
 
#define a_pTDC_EventID   0x001C
 R/W - EventID. More...
 
#define a_pTDC_Ch_Control(i)   (0x0020 + (i)*4)
 R/W - Channel offset + some Ctrl bits. More...
 
#define a_pTDC_Buffers   0x0120
 R/W - Buffer settings. More...
 
#define a_pTDC_Hit_RX_TX   0x0124
 R/W - Hit RX/TX. More...
 
#define a_pTDC_DLL_TG   0x0128
 R/W - DLL/TG. More...
 
#define a_pTDC_PLL1   0x0130
 R/W - PLL1. More...
 
#define a_pTDC_PLL2   0x0134
 R/W - PLL2. More...
 
#define a_pTDC_Clocks   0x0138
 
#define a_pTDC_ClockShift   0x013C
 
#define a_pTDC_Hit_RXen_T   0x0140
 
#define a_pTDC_Hit_RXen_B   0x0144
 
#define a_pTDC_PulseGen1   0x0148
 
#define a_pTDC_PulseGen2   0x014C
 
#define a_pTDC_PulseGen3   0x0150
 
#define a_pTDC_ErrorFlagCtrl   0x0154
 
#define a_pTDC_Ch_Status(i)   (0x0160 + (i)*4)
 
#define a_pTDC_Trg_Status(i)   (0x0260 + (i)*4)
 
#define a_pTDC_RO_Status(i)   (0x0270 + (i)*4)
 
#define a_pTDC_Cfg_Parity(i)   (0x0280 + (i)*4)
 
#define a_pTDC_PLL_Caps   0x28C
 
#define a_pTDC_DelayAdjust   0xFFFC
 
#define I2C_ADDR_TDC(i)   (0x63 - (i))
 
#define I2C_ADDR_PLL0   0x68
 
#define I2C_ADDR_PLL1   0x69
 
#define I2C_ADDR_PLL2   0x70
 
#define I2C_ADDR_EEPROM_MEM   0x57
 
#define I2C_ADDR_XR   0x78
 
#define a_acq_ctrl   0x01000000
 FERS configuration registers. More...
 
#define a_run_mask   0x01000004
 Run mask: bit[0]=SW, bit[1]=T0-IN. More...
 
#define a_trg_mask   0x01000008
 Global trigger mask: bit[0]=SW, bit[1]=T1-IN, bit[2]=Q-OR, bit[3]=Maj, bit[4]=Periodic. More...
 
#define a_tref_mask   0x0100000C
 Tref mask: bit[0]=T0-IN, bit[1]=T1-IN, bit[2]=Q-OR, bit[3]=T-OR, bit[5]=Periodic. More...
 
#define a_t0_out_mask   0x01000014
 T0 out mask. More...
 
#define a_t1_out_mask   0x01000018
 T1 out mask. More...
 
#define a_veto_mask   0x0100001C
 Veto mask: bit[0]=Cmd from TDL, bit[1]=T0-IN, bit[2]=T1-IN,. More...
 
#define a_tref_delay   0x01000048
 Delay of the time reference for the coincidences. More...
 
#define a_tref_window   0x0100004C
 Tref coincidence window (for list mode) More...
 
#define a_dwell_time   0x01000050
 Dwell time (periodic trigger) in clk cyclces. 0 => OFF. More...
 
#define a_list_size   0x01000054
 Number of 32 bit words in a packet in timing mode (list mode) More...
 
#define a_pck_maxcnt   0x01000064
 Max num of packets transmitted to the TDL. More...
 
#define a_channel_mask_0   0x01000100
 Input Channel Mask (ch 0 to 31) More...
 
#define a_channel_mask_1   0x01000104
 Input Channel Mask (ch 32 to 63) More...
 
#define a_fw_rev   0x01000300
 Firmware Revision. More...
 
#define a_acq_status   0x01000304
 Acquisition Status. More...
 
#define a_real_time   0x01000308
 Real Time in ms. More...
 
#define a_dead_time   0x01000310
 Dead Time in ms. More...
 
#define a_fpga_temp   0x01000348
 FPGA die Temperature. More...
 
#define a_pid   0x01000400
 PID. More...
 
#define a_pcb_rev   0x01000404
 PCB revision. More...
 
#define a_fers_code   0x01000408
 Fers CODE (5202) More...
 
#define a_rebootfpga   0x0100FFF0
 reboot FPGA from FW uploader More...
 
#define a_test_led   0x01000228
 LED test mode. More...
 
#define a_tdc_mode   0x0100022C
 TDC Mode. More...
 
#define a_tdc_data   0x01000230
 TDC Data. More...
 
#define a_sw_compatib   0x01004000
 SW compatibility. More...
 
#define a_commands   0x01008000
 Send Commands (for Eth and USB) More...
 
#define a_validation_mask   0x01000010
 Validation mask: bit[0]=Cmd from TDL, bit[1]=T0-IN, bit[2]=T1-IN. More...
 
#define a_acq_ctrl2   0x01000020
 Acquisition Control Register 2. More...
 
#define a_dprobe_5202   0x01000068
 Digital probes (signal inspector) More...
 
#define a_citiroc_cfg   0x01000108
 Citiroc common configuration bits. More...
 
#define a_citiroc_en   0x0100010C
 Citiroc internal parts enable mask. More...
 
#define a_citiroc_probe   0x01000110
 Citiroc probes (signal inspector) More...
 
#define a_qd_coarse_thr   0x01000114
 Coarse threshold for the Citiroc Qdiscr (10 bit DAC) More...
 
#define a_td_coarse_thr   0x01000118
 Coarse threshold for the Citiroc Tdiscr (10 bit DAC) More...
 
#define a_lg_sh_time   0x0100011C
 Low gain shaper time constant. More...
 
#define a_hg_sh_time   0x01000120
 High gain shaper time constant. More...
 
#define a_hold_delay   0x01000124
 Time from gtrg to peak hold. More...
 
#define a_amux_seq_ctrl   0x01000128
 Timing parameters for the analog mux readout and conversion. More...
 
#define a_wave_length   0x0100012C
 Waveform Length. More...
 
#define a_scbs_ctrl   0x01000130
 Citiroc SC bit stream index and select. More...
 
#define a_scbs_data   0x01000134
 Citiroc SC bit stream data. More...
 
#define a_qdiscr_mask_0   0x01000138
 Charge Discriminator mask. More...
 
#define a_qdiscr_mask_1   0x0100013C
 Charge Discriminator mask. More...
 
#define a_tdiscr_mask_0   0x01000140
 Time Discriminator mask. More...
 
#define a_tdiscr_mask_1   0x01000144
 Time Discriminator mask. More...
 
#define a_tpulse_ctrl   0x01000200
 Test pulse mask. More...
 
#define a_tpulse_dac   0x01000204
 Internal Test Pulse amplitude. More...
 
#define a_hv_regaddr   0x01000210
 HV Register Address and Data Type. More...
 
#define a_hv_regdata   0x01000214
 HV Register Data. More...
 
#define a_trgho   0x01000218
 Trigger Hold off. More...
 
#define a_dc_offset   0x01000220
 DAC for DC offset. More...
 
#define a_spi_data   0x01000224
 SPI R/W data (for Flash Memory access) More...
 
#define a_test_led   0x01000228
 LED test mode. More...
 
#define a_tdc_mode   0x0100022C
 TDC Mode. More...
 
#define a_tdc_data   0x01000230
 TDC Data. More...
 
#define a_tlogic_def   0x01000234
 Trigger Logic Definition. More...
 
#define a_tlogic_width   0x0100023C
 Monostable for Trigger logic output. More...
 
#define a_hit_width   0x01000238
 Monostable for CR triggers. More...
 
#define a_i2c_addr_5202   0x01000240
 I2C Addr. More...
 
#define a_i2c_data_5202   0x01000244
 I2C Data. More...
 
#define a_t_or_cnt   0x01000350
 T-OR counter. More...
 
#define a_q_or_cnt   0x01000354
 Q-OR counter. More...
 
#define a_hv_Vmon   0x01000356
 HV Vmon. More...
 
#define a_hv_Imon   0x01000358
 HV Imon. More...
 
#define a_hv_status   0x01000360
 HV Status. More...
 
#define a_uC_status   0x01000600
 uC status More...
 
#define a_uC_shutdown   0x01000604
 uC shutdown More...
 
#define a_zs_lgthr   0x02000000
 Threshold for zero suppression (LG) More...
 
#define a_zs_hgthr   0x02000004
 Threshold for zero suppression (HG) More...
 
#define a_qd_fine_thr   0x02000008
 Fine individual threshold for the Citiroc Qdiscr (4 bit DAC) More...
 
#define a_td_fine_thr   0x0200000C
 Fine individual threshold for the Citiroc Tdiscr (4 bit DAC) More...
 
#define a_lg_gain   0x02000010
 Preamp Low Gain Setting. More...
 
#define a_hg_gain   0x02000014
 Preamp High Gain Setting. More...
 
#define a_hv_adj   0x02000018
 HV individual adjust (8 bit DAC) More...
 
#define a_hitcnt   0x02000800
 Hit counters. More...
 
#define a_io_ctrl   0x01000020
 I/O control. More...
 
#define a_trg_delay   0x01000060
 Trigger delay. More...
 
#define a_dprobe_5203   0x01000110
 Digital probe selection. More...
 
#define a_lsof_almfull_bsy   0x01000068
 Almost Full level of LSOF (Event Data FIFO) to assert Busy. More...
 
#define a_lsof_almfull_skp   0x0100006C
 Almost Full level of LSOF (Event Data FIFO) to skip data. More...
 
#define a_trgf_almfull   0x01000070
 Almost Full level of Trigger FIFO. More...
 
#define a_tot_rej_lthr   0x01000074
 ToT Reject Lower Threshold (0=disabled) More...
 
#define a_tot_rej_hthr   0x01000078
 ToT Reject Higer Threshold (0=disabled) More...
 
#define a_trg_hold_off   0x0100007A
 Retrigger protection time. Set the busy active for N clock cycles (0=disabled) More...
 
#define a_strm_ptrg   0x0100007C
 Periodic trigger for streaming mode. More...
 
#define a_i2c_addr_5203   0x01000200
 I2C Addr. More...
 
#define a_i2c_data_5203   0x01000204
 I2C Data. More...
 
#define a_trg_cnt   0x01000318
 Trigger counter. More...
 
#define a_tdcro_status   0x0100031A
 TDC readout Status. More...
 
#define a_rej_trg_cnt   0x0100031C
 Rejected Trigger counter. More...
 
#define a_zs_trg_cnt   0x01000320
 Zero Suppressed Trigger counter. More...
 
#define a_clk_out_phase   0x01000330
 Phase between TDC clock and FPGA clock (0x0000 = 0 deg; 0xFFFF = 180 deg) More...
 
#define a_board_temp   0x01000350
 Board Temp. More...
 
#define a_tdc0_temp   0x01000354
 TDC0 Temperature. More...
 
#define a_tdc1_temp   0x01000358
 TDC1 Temperature. More...
 
#define a_spi_data   0x01000224
 SPI R/W data (for Flash Memory access) More...
 
#define a_tlogic_mask_0   0x01000140
 Trigger FPGA-Tlogic mask (in A5202 it corresponds to a_tdiscr_mask_0) More...
 
#define a_tlogic_mask_1   0x01000144
 Trigger FPGA-Tlogic mask (in A5202 it corresponds to a_tdiscr_mask_1) More...
 

Macro Definition Documentation

◆ _REGISTERS_H

#define _REGISTERS_H

CAEN SpA - Front End Division Via Vetraia, 11 - 55049 - Viareggio ITALY +390594388398 - www.caen.it

Note
TERMS OF USE: This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. The user relies on the software, documentation and results solely at his own risk.

Definition at line 18 of file FERS_Registers_520X.h.

◆ INDIV_ADDR

#define INDIV_ADDR (   addr,
  ch 
)    (0x02000000 | ((addr) & 0xFFFF) | ((ch)<<16))

Definition at line 29 of file FERS_Registers_520X.h.

◆ BCAST_ADDR

#define BCAST_ADDR (   addr)    (0x03000000 | ((addr) & 0xFFFF))

Definition at line 30 of file FERS_Registers_520X.h.

◆ STATUS_READY

#define STATUS_READY   (1 << 0)

Definition at line 160 of file FERS_Registers_520X.h.

◆ STATUS_FAIL

#define STATUS_FAIL   (1 << 1)

Definition at line 161 of file FERS_Registers_520X.h.

◆ STATUS_RUNNING

#define STATUS_RUNNING   (1 << 2)

Definition at line 162 of file FERS_Registers_520X.h.

◆ STATUS_TDL_SYNC

#define STATUS_TDL_SYNC   (1 << 3)

Definition at line 163 of file FERS_Registers_520X.h.

◆ STATUS_FPGA_OVERTEMP

#define STATUS_FPGA_OVERTEMP   (1 << 4)

Definition at line 164 of file FERS_Registers_520X.h.

◆ STATUS_TDC_RO_ERR

#define STATUS_TDC_RO_ERR   (1 << 5)

Definition at line 165 of file FERS_Registers_520X.h.

◆ STATUS_TDLINK_LOL

#define STATUS_TDLINK_LOL   (1 << 6)

Definition at line 166 of file FERS_Registers_520X.h.

◆ STATUS_TDC0_LOL

#define STATUS_TDC0_LOL   (1 << 7)

Definition at line 167 of file FERS_Registers_520X.h.

◆ STATUS_TDC1_LOL

#define STATUS_TDC1_LOL   (1 << 8)

Definition at line 168 of file FERS_Registers_520X.h.

◆ STATUS_RO_CLK_LOL

#define STATUS_RO_CLK_LOL   (1 << 9)

Definition at line 169 of file FERS_Registers_520X.h.

◆ STATUS_TDL_DISABLED

#define STATUS_TDL_DISABLED   (1 << 10)

Definition at line 170 of file FERS_Registers_520X.h.

◆ STATUS_TDC0_OVERTEMP

#define STATUS_TDC0_OVERTEMP   (1 << 11)

Definition at line 171 of file FERS_Registers_520X.h.

◆ STATUS_TDC1_OVERTEMP

#define STATUS_TDC1_OVERTEMP   (1 << 12)

Definition at line 172 of file FERS_Registers_520X.h.

◆ STATUS_BOARD_OVERTEMP

#define STATUS_BOARD_OVERTEMP   (1 << 13)

Definition at line 173 of file FERS_Registers_520X.h.

◆ STATUS_CRC_ERROR

#define STATUS_CRC_ERROR   (1 << 14)

Definition at line 174 of file FERS_Registers_520X.h.

◆ STATUS_UNUSED_15

#define STATUS_UNUSED_15   (1 << 15)

Definition at line 175 of file FERS_Registers_520X.h.

◆ STATUS_SPI_BUSY

#define STATUS_SPI_BUSY   (1 << 16)

Definition at line 176 of file FERS_Registers_520X.h.

◆ STATUS_I2C_BUSY

#define STATUS_I2C_BUSY   (1 << 17)

Definition at line 177 of file FERS_Registers_520X.h.

◆ STATUS_I2C_FAIL

#define STATUS_I2C_FAIL   (1 << 18)

Definition at line 178 of file FERS_Registers_520X.h.

◆ CMD_TIME_RESET

#define CMD_TIME_RESET   0x11

Absolute Time reset.

Definition at line 184 of file FERS_Registers_520X.h.

◆ CMD_ACQ_START

#define CMD_ACQ_START   0x12

Start acquisition.

Definition at line 185 of file FERS_Registers_520X.h.

◆ CMD_ACQ_STOP

#define CMD_ACQ_STOP   0x13

Stop acquisition.

Definition at line 186 of file FERS_Registers_520X.h.

◆ CMD_TRG

#define CMD_TRG   0x14

Send software trigger.

Definition at line 187 of file FERS_Registers_520X.h.

◆ CMD_RESET

#define CMD_RESET   0x15

Global Reset (clear data, set all regs to default)

Definition at line 188 of file FERS_Registers_520X.h.

◆ CMD_TPULSE

#define CMD_TPULSE   0x16

Send a test pulse.

Definition at line 189 of file FERS_Registers_520X.h.

◆ CMD_RES_PTRG

#define CMD_RES_PTRG   0x17

Reset periodic trigger counter (and rearm PTRG in single pulse mode)

Definition at line 190 of file FERS_Registers_520X.h.

◆ CMD_CLEAR

#define CMD_CLEAR   0x18

Clear Data.

Definition at line 191 of file FERS_Registers_520X.h.

◆ CMD_VALIDATION

#define CMD_VALIDATION   0x19

Trigger Validation (either positive = accept or negative = reject)

Definition at line 192 of file FERS_Registers_520X.h.

◆ CMD_SET_VETO

#define CMD_SET_VETO   0x1A

Set Veto.

Definition at line 193 of file FERS_Registers_520X.h.

◆ CMD_CLEAR_VETO

#define CMD_CLEAR_VETO   0x1B

Clear Veto.

Definition at line 194 of file FERS_Registers_520X.h.

◆ CMD_TDL_SYNC

#define CMD_TDL_SYNC   0x1C

Sync signal from TDL.

Definition at line 195 of file FERS_Registers_520X.h.

◆ CMD_USE_ICLK

#define CMD_USE_ICLK   0x1E

Use internal CLK for FPGA.

Definition at line 196 of file FERS_Registers_520X.h.

◆ CMD_USE_ECLK

#define CMD_USE_ECLK   0x1F

Use external CLK for FPGA.

Definition at line 197 of file FERS_Registers_520X.h.

◆ CMD_CFG_ASIC

#define CMD_CFG_ASIC   0x20

Configure ASIC (load shift register)

Definition at line 198 of file FERS_Registers_520X.h.

◆ crcfg_qdiscr_latch

#define crcfg_qdiscr_latch   0

Qdiscr output: 0=latched, 1=direct (bit 258 of SR)

Definition at line 205 of file FERS_Registers_520X.h.

◆ crcfg_sca_bias

#define crcfg_sca_bias   1

SCA bias: 0=high (5MHz readout speed), 1=weak (bit 301 of SR)

Definition at line 206 of file FERS_Registers_520X.h.

◆ crcfg_pdet_mode_hg

#define crcfg_pdet_mode_hg   2

Peak_det mode HighGain: 0=peak detector, 1=T&H (bit 306 of SR)

Definition at line 207 of file FERS_Registers_520X.h.

◆ crcfg_pdet_mode_lg

#define crcfg_pdet_mode_lg   3

Peak_det mode LowGain: 0=peak detector, 1=T&H (bit 307 of SR)

Definition at line 208 of file FERS_Registers_520X.h.

◆ crcfg_ps_ctrl_logic

#define crcfg_ps_ctrl_logic   4

Peak Sens Ctrl Logic: 0=internal, 1=external=PS_modeb_ext (bit 308 of SR)

Definition at line 209 of file FERS_Registers_520X.h.

◆ crcfg_ps_trg_source

#define crcfg_ps_trg_source   5

Peak Sens Trg source: 0=internal, 1=external (bit 309 of SR)

Definition at line 210 of file FERS_Registers_520X.h.

◆ crcfg_lg_pa_bias

#define crcfg_lg_pa_bias   6

LG Preamp bias: 0=normal, 1=weak (bit 323 of SR)

Definition at line 211 of file FERS_Registers_520X.h.

◆ crcfg_pa_fast_sh

#define crcfg_pa_fast_sh   7

Fast shaper connection: 0=high gain pa, 1=low gain pa (bit 328 of SR)

Definition at line 212 of file FERS_Registers_520X.h.

◆ crcfg_8bit_dac_ref

#define crcfg_8bit_dac_ref   8

HV adjust DAC reference: 0=2.5V, 1=4.5V (bit 330 of SR)

Definition at line 213 of file FERS_Registers_520X.h.

◆ crcfg_ota_bias

#define crcfg_ota_bias   9

Output OTA buffer bias auto off: 0=auto, 1=force on (bit 1133 of SR)

Definition at line 214 of file FERS_Registers_520X.h.

◆ crcfg_trg_polarity

#define crcfg_trg_polarity   10

Trigger polarity: 0=pos, 1=neg (bit 1141 of SR)

Definition at line 215 of file FERS_Registers_520X.h.

◆ crcfg_enable_chtrg

#define crcfg_enable_chtrg   11

Enable channel triggers (bit 1143 of SR)

Definition at line 216 of file FERS_Registers_520X.h.

◆ crcfg_enable_gtrg

#define crcfg_enable_gtrg   16

Enable propagation of gtrg to the Citiroc pin global_trig.

Definition at line 217 of file FERS_Registers_520X.h.

◆ crcfg_enable_veto

#define crcfg_enable_veto   17

Enable propagation of gate (= not veto) to the Citiroc pin val_evt.

Definition at line 218 of file FERS_Registers_520X.h.

◆ crcfg_repeat_raz

#define crcfg_repeat_raz   18

Enable loop asserting raz_chn until nor_charge stays active.

Definition at line 219 of file FERS_Registers_520X.h.

◆ SHAPING_TIME_12_5NS

#define SHAPING_TIME_12_5NS   6

Definition at line 221 of file FERS_Registers_520X.h.

◆ SHAPING_TIME_25NS

#define SHAPING_TIME_25NS   5

Definition at line 222 of file FERS_Registers_520X.h.

◆ SHAPING_TIME_37_5NS

#define SHAPING_TIME_37_5NS   4

Definition at line 223 of file FERS_Registers_520X.h.

◆ SHAPING_TIME_50NS

#define SHAPING_TIME_50NS   3

Definition at line 224 of file FERS_Registers_520X.h.

◆ SHAPING_TIME_62_5NS

#define SHAPING_TIME_62_5NS   2

Definition at line 225 of file FERS_Registers_520X.h.

◆ SHAPING_TIME_75NS

#define SHAPING_TIME_75NS   1

Definition at line 226 of file FERS_Registers_520X.h.

◆ SHAPING_TIME_87_5NS

#define SHAPING_TIME_87_5NS   0

Definition at line 227 of file FERS_Registers_520X.h.

◆ TEST_PULSE_SOURCE_EXT

#define TEST_PULSE_SOURCE_EXT   0

Definition at line 229 of file FERS_Registers_520X.h.

◆ TEST_PULSE_SOURCE_T0_IN

#define TEST_PULSE_SOURCE_T0_IN   1

Definition at line 230 of file FERS_Registers_520X.h.

◆ TEST_PULSE_SOURCE_T1_IN

#define TEST_PULSE_SOURCE_T1_IN   2

Definition at line 231 of file FERS_Registers_520X.h.

◆ TEST_PULSE_SOURCE_PTRG

#define TEST_PULSE_SOURCE_PTRG   3

Definition at line 232 of file FERS_Registers_520X.h.

◆ TEST_PULSE_SOURCE_SW_CMD

#define TEST_PULSE_SOURCE_SW_CMD   4

Definition at line 233 of file FERS_Registers_520X.h.

◆ TEST_PULSE_PREAMP_LG

#define TEST_PULSE_PREAMP_LG   1

Definition at line 235 of file FERS_Registers_520X.h.

◆ TEST_PULSE_PREAMP_HG

#define TEST_PULSE_PREAMP_HG   2

Definition at line 236 of file FERS_Registers_520X.h.

◆ TEST_PULSE_PREAMP_BOTH

#define TEST_PULSE_PREAMP_BOTH   3

Definition at line 237 of file FERS_Registers_520X.h.

◆ TEST_PULSE_DEST_ALL

#define TEST_PULSE_DEST_ALL   -1

Definition at line 239 of file FERS_Registers_520X.h.

◆ TEST_PULSE_DEST_EVEN

#define TEST_PULSE_DEST_EVEN   -2

Definition at line 240 of file FERS_Registers_520X.h.

◆ TEST_PULSE_DEST_ODD

#define TEST_PULSE_DEST_ODD   -3

Definition at line 241 of file FERS_Registers_520X.h.

◆ TEST_PULSE_DEST_NONE

#define TEST_PULSE_DEST_NONE   -4

Definition at line 242 of file FERS_Registers_520X.h.

◆ DPROBE_OFF

#define DPROBE_OFF   0

Definition at line 244 of file FERS_Registers_520X.h.

◆ DPROBE_PEAK_LG

#define DPROBE_PEAK_LG   1

Definition at line 245 of file FERS_Registers_520X.h.

◆ DPROBE_PEAK_HG

#define DPROBE_PEAK_HG   2

Definition at line 246 of file FERS_Registers_520X.h.

◆ DPROBE_HOLD

#define DPROBE_HOLD   3

Definition at line 247 of file FERS_Registers_520X.h.

◆ DPROBE_START_CONV

#define DPROBE_START_CONV   4

Definition at line 248 of file FERS_Registers_520X.h.

◆ DPROBE_DATA_COMMIT

#define DPROBE_DATA_COMMIT   5

Definition at line 249 of file FERS_Registers_520X.h.

◆ DPROBE_DATA_VALID

#define DPROBE_DATA_VALID   6

Definition at line 250 of file FERS_Registers_520X.h.

◆ DPROBE_CLK_1024

#define DPROBE_CLK_1024   7

Definition at line 251 of file FERS_Registers_520X.h.

◆ DPROBE_VAL_WINDOW

#define DPROBE_VAL_WINDOW   8

Definition at line 252 of file FERS_Registers_520X.h.

◆ DPROBE_T_OR

#define DPROBE_T_OR   9

Definition at line 253 of file FERS_Registers_520X.h.

◆ DPROBE_Q_OR

#define DPROBE_Q_OR   10

Definition at line 254 of file FERS_Registers_520X.h.

◆ DPROBE_XROC_TRG

#define DPROBE_XROC_TRG   11

Definition at line 255 of file FERS_Registers_520X.h.

◆ GAIN_SEL_AUTO

#define GAIN_SEL_AUTO   0

Definition at line 257 of file FERS_Registers_520X.h.

◆ GAIN_SEL_HIGH

#define GAIN_SEL_HIGH   1

Definition at line 258 of file FERS_Registers_520X.h.

◆ GAIN_SEL_LOW

#define GAIN_SEL_LOW   2

Definition at line 259 of file FERS_Registers_520X.h.

◆ GAIN_SEL_BOTH

#define GAIN_SEL_BOTH   3

Definition at line 260 of file FERS_Registers_520X.h.

◆ FAST_SHAPER_INPUT_HGPA

#define FAST_SHAPER_INPUT_HGPA   0

Definition at line 262 of file FERS_Registers_520X.h.

◆ FAST_SHAPER_INPUT_LGPA

#define FAST_SHAPER_INPUT_LGPA   1

Definition at line 263 of file FERS_Registers_520X.h.

◆ a_XR_ChControl

#define a_XR_ChControl (   i)    (0x0000 + (63-i))

Channel Settings (XROC channels are swapped on PCB => ch0 goes in ch63...)

Definition at line 275 of file FERS_Registers_520X.h.

◆ a_XR_ASIC_bias

#define a_XR_ASIC_bias   0x0040

ASIC biasing.

Definition at line 276 of file FERS_Registers_520X.h.

◆ a_XR_common_cfg

#define a_XR_common_cfg   0x0041

Common settings.

Definition at line 277 of file FERS_Registers_520X.h.

◆ a_XR_out_cfg

#define a_XR_out_cfg   0x0042

Output settings.

Definition at line 278 of file FERS_Registers_520X.h.

◆ a_XR_event_val

#define a_XR_event_val   0x0043

Event validation gating.

Definition at line 279 of file FERS_Registers_520X.h.

◆ a_pTDC_Control

#define a_pTDC_Control   0x0004

R/W - Magic word + reset bits.

Definition at line 357 of file FERS_Registers_520X.h.

◆ a_pTDC_Enable

#define a_pTDC_Enable   0x0008

R/W - Enable bits.

Definition at line 358 of file FERS_Registers_520X.h.

◆ a_pTDC_Header

#define a_pTDC_Header   0x000C

R/W - Event data format (header)

Definition at line 359 of file FERS_Registers_520X.h.

◆ a_pTDC_TrgWindow

#define a_pTDC_TrgWindow   0x0010

R/W - Trg Window Latency + Width.

Definition at line 360 of file FERS_Registers_520X.h.

◆ a_pTDC_Trg0Del_ToT

#define a_pTDC_Trg0Del_ToT   0x0014

R/W - Trg_Ch0 Delay + ToT.

Definition at line 361 of file FERS_Registers_520X.h.

◆ a_pTDC_BunchCount

#define a_pTDC_BunchCount   0x0018

R/W - Bunch Count Overflow + Offset.

Definition at line 362 of file FERS_Registers_520X.h.

◆ a_pTDC_EventID

#define a_pTDC_EventID   0x001C

R/W - EventID.

Definition at line 363 of file FERS_Registers_520X.h.

◆ a_pTDC_Ch_Control

#define a_pTDC_Ch_Control (   i)    (0x0020 + (i)*4)

R/W - Channel offset + some Ctrl bits.

Definition at line 364 of file FERS_Registers_520X.h.

◆ a_pTDC_Buffers

#define a_pTDC_Buffers   0x0120

R/W - Buffer settings.

Definition at line 365 of file FERS_Registers_520X.h.

◆ a_pTDC_Hit_RX_TX

#define a_pTDC_Hit_RX_TX   0x0124

R/W - Hit RX/TX.

Definition at line 366 of file FERS_Registers_520X.h.

◆ a_pTDC_DLL_TG

#define a_pTDC_DLL_TG   0x0128

R/W - DLL/TG.

Definition at line 367 of file FERS_Registers_520X.h.

◆ a_pTDC_PLL1

#define a_pTDC_PLL1   0x0130

R/W - PLL1.

Definition at line 368 of file FERS_Registers_520X.h.

◆ a_pTDC_PLL2

#define a_pTDC_PLL2   0x0134

R/W - PLL2.

Definition at line 369 of file FERS_Registers_520X.h.

◆ a_pTDC_Clocks

#define a_pTDC_Clocks   0x0138

Definition at line 370 of file FERS_Registers_520X.h.

◆ a_pTDC_ClockShift

#define a_pTDC_ClockShift   0x013C

Definition at line 371 of file FERS_Registers_520X.h.

◆ a_pTDC_Hit_RXen_T

#define a_pTDC_Hit_RXen_T   0x0140

Definition at line 372 of file FERS_Registers_520X.h.

◆ a_pTDC_Hit_RXen_B

#define a_pTDC_Hit_RXen_B   0x0144

Definition at line 373 of file FERS_Registers_520X.h.

◆ a_pTDC_PulseGen1

#define a_pTDC_PulseGen1   0x0148

Definition at line 374 of file FERS_Registers_520X.h.

◆ a_pTDC_PulseGen2

#define a_pTDC_PulseGen2   0x014C

Definition at line 375 of file FERS_Registers_520X.h.

◆ a_pTDC_PulseGen3

#define a_pTDC_PulseGen3   0x0150

Definition at line 376 of file FERS_Registers_520X.h.

◆ a_pTDC_ErrorFlagCtrl

#define a_pTDC_ErrorFlagCtrl   0x0154

Definition at line 377 of file FERS_Registers_520X.h.

◆ a_pTDC_Ch_Status

#define a_pTDC_Ch_Status (   i)    (0x0160 + (i)*4)

Definition at line 378 of file FERS_Registers_520X.h.

◆ a_pTDC_Trg_Status

#define a_pTDC_Trg_Status (   i)    (0x0260 + (i)*4)

Definition at line 379 of file FERS_Registers_520X.h.

◆ a_pTDC_RO_Status

#define a_pTDC_RO_Status (   i)    (0x0270 + (i)*4)

Definition at line 380 of file FERS_Registers_520X.h.

◆ a_pTDC_Cfg_Parity

#define a_pTDC_Cfg_Parity (   i)    (0x0280 + (i)*4)

Definition at line 381 of file FERS_Registers_520X.h.

◆ a_pTDC_PLL_Caps

#define a_pTDC_PLL_Caps   0x28C

Definition at line 382 of file FERS_Registers_520X.h.

◆ a_pTDC_DelayAdjust

#define a_pTDC_DelayAdjust   0xFFFC

Definition at line 383 of file FERS_Registers_520X.h.

◆ I2C_ADDR_TDC

#define I2C_ADDR_TDC (   i)    (0x63 - (i))

Definition at line 764 of file FERS_Registers_520X.h.

◆ I2C_ADDR_PLL0

#define I2C_ADDR_PLL0   0x68

Definition at line 765 of file FERS_Registers_520X.h.

◆ I2C_ADDR_PLL1

#define I2C_ADDR_PLL1   0x69

Definition at line 766 of file FERS_Registers_520X.h.

◆ I2C_ADDR_PLL2

#define I2C_ADDR_PLL2   0x70

Definition at line 767 of file FERS_Registers_520X.h.

◆ I2C_ADDR_EEPROM_MEM

#define I2C_ADDR_EEPROM_MEM   0x57

Definition at line 768 of file FERS_Registers_520X.h.

◆ I2C_ADDR_XR

#define I2C_ADDR_XR   0x78

Definition at line 769 of file FERS_Registers_520X.h.