Low-Energy Muon (LEM) Experiment  0.5.2
v1190.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  V1190_DATA
 

Macros

#define V1190_DATA_MASK   0x0007FFFF
 
#define V1190_CHANNEL_MASK   0x01F80000
 
#define V1190_EDGE_MASK   0x02000000
 
#define V1190_ERROR_BIT_MASK   0x20000000
 
#define V1190_ERROR_TDC_MASK   0x03000000
 
#define V1190_ERROR_FLAG_MASK   0x00007FFF
 
#define V1190_OUTPUT_BUFFER_SIZE   32768
 
#define V1190_OUTPUT_BUFFER   0x0000
 
#define V1190_CONTROL_REGISTER   0x1000
 
#define V1190_STATUS_REGISTER   0x1002
 
#define V1190_INTERRUPT_LEVEL   0x100A
 
#define V1190_INTERRUPT_VECTOR   0x100C
 
#define V1190_GEO_ADDRESS   0x100E
 
#define V1190_MCST_BASE_ADDRESS   0x1010
 
#define V1190_MCST_CBLT_CTRL   0x1012
 
#define V1190_MODULE_RESET   0x1014
 
#define V1190_SOFTWARE_CLEAR   0x1016
 
#define V1190_SOFTWARE_EVENT_RESET   0x1018
 
#define V1190_SOFTWARE_TRIGGER   0x101A
 
#define V1190_EVENT_COUNTER   0x101C
 
#define V1190_EVENT_STORED   0x1020
 
#define V1190_ALMOST_FULL_LEVEL   0x1022
 
#define V1190_BLT_EVENT_NUMBER   0x1024
 
#define V1190_FIRMWARE_REVISION   0x1026
 
#define V1190_TESTREG   0x1028
 
#define V1190_OUT_PROG_CONTROL   0x102C
 
#define V1190_OPCODE_ADDRESS   0x102E
 
#define V1190_MICRO_HANDSHAKE   0x1030
 
#define V1190_SEL_FLASH   0x1032
 
#define V1190_FLASH   0x1034
 
#define V1190_COMPENSATION_SRAM   0x1036
 
#define V1190_EVENT_FIFO   0x1038
 
#define V1190_EVENT_FIFO_STORED   0x103C
 
#define V1190_EVENT_FIFO_STATUS   0x103E
 
#define V1190_DUMMY32   0x1200
 
#define V1190_DUMMY16   0x1204
 
#define V1190_TRG_MATCH   0x0000
 
#define V1190_CONT_STOR   0x0100
 
#define V1190_READ_ACQ_MOD   0x0200
 
#define V1190_SET_KEEP_TOKEN   0x0300
 
#define V1190_CLEAR_KEEP_TOKEN   0x0400
 
#define V1190_LOAD_DEF_CONFIG   0x0500
 
#define V1190_SAVE_USER_CONFIG   0x0600
 
#define V1190_LOAD_USER_CONFIG   0x0700
 
#define V1190_AUTOLOAD_USER_CONFIG   0x0800
 
#define V1190_AUTOLOAD_DEF_CONFIG   0x0900
 
#define V1190_SET_WIN_WIDTH   0x1000
 
#define V1190_SET_WIN_OFFS   0x1100
 
#define V1190_SET_SW_MARGIN   0x1200
 
#define V1190_SET_REJ_MARGIN   0x1300
 
#define V1190_EN_SUB_TRG   0x1400
 
#define V1190_DIS_SUB_TRG   0x1500
 
#define V1190_READ_TRG_CONF   0x1600
 
#define V1190_SET_DETECTION   0x2200
 
#define V1190_READ_DETECTION   0x2300
 
#define V1190_SET_TR_LEAD_LSB   0x2400
 
#define V1190_SET_PAIR_RES   0x2500
 
#define V1190_READ_RES   0x2600
 
#define V1190_SET_DEAD_TIME   0x2800
 
#define V1190_READ_DEAD_TIME   0x2900
 
#define V1190_ENABLE_HEADER   0x3000
 
#define V1190_DISABLE_HEADER   0x3100
 
#define V1190_READ_HEADER   0x3200
 
#define V1190_SET_EVENT_SIZE   0x3300
 
#define V1190_READ_EVENT_SIZE   0x3400
 
#define V1190_ENABLE_ERROR_MARK   0x3500
 
#define V1190_DISABLE_ERROR_MARK   0x3600
 
#define V1190_ENABLE_ERROR_BYPASS   0x3700
 
#define V1190_DISABLE_ERROR_BYPASS   0x3800
 
#define V1190_SET_ERROR_TYPES   0x3900
 
#define V1190_READ_ERROR_TYPES   0x3A00
 
#define V1190_SET_FIFO_SIZE   0x3B00
 
#define V1190_READ_FIFO_SIZE   0x3C00
 
#define V1190_ENABLE_CHANNEL   0x4000 /* 40nn enable channel nn */
 
#define V1190_DISABLE_CHANNEL   0x4100 /* 41nn disable channel nn */
 
#define V1190_ENABLE_ALL_CHANNEL   0x4200
 
#define V1190_DISABLE_ALL_CHANNEL   0x4300
 
#define V1190_WRITE_ENABLE_PATTERN   0x4400
 
#define V1190_READ_ENABLE_PATTERN   0x4500
 
#define V1190_WRITE_ENABLE_PATTERN32   0x4600
 
#define V1190_READ_ENABLE_PATTERN32   0x4700
 
#define V1190_SET_GLOB_OFFS   0x5000
 
#define V1190_READ_GLOB_OFSS   0x5100
 
#define V1190_SET_ADJUST_CHANNEL   0x5200 /* 52nn set channel nn adjust */
 
#define V1190_READ_ADJUST_CHANNEL   0x5300 /* 53nn read channel nn adjust */
 
#define V1190_SET_RC_ADJ   0x5400 /* 540n set rc adjust of tdc 0n */
 
#define V1190_READ_RC_ADJ   0x5500 /* 550n */
 
#define V1190_SAVE_RC_ADJ   0x5600 /* 560n */
 
#define V1190_READ_TDC_ID   0x6000 /* 600n read programmed ID of TDC 0n */
 
#define V1190_READ_MICRO_REV   0x6100 /* read firmware revision of micro controller */
 
#define V1190_RESET_DLL_PLL   0x6200
 
#define V1190_WRITE_SETUP_REG   0x7000 /* 70nn */
 
#define V1190_READ_SETUP_REG   0x7100 /* 71nn */
 
#define V1190_UPDATE_SETUP_REG   0x7200
 
#define V1190_DEFAULT_SETUP_REG   0x7300
 
#define V1190_READ_ERROR_STATUS   0x7400 /* 740n read error status of TDC n*/
 
#define V1190_READ_DLL_LOCK   0x7500 /* 750n DLL lock bit of TDC n */
 
#define V1190_READ_STATUS_STREAM   0x7600 /* 760n read TDC n status */
 
#define V1190_UPDATE_SETUP_TDC   0x7700 /* 770n setup on TDC n */
 
#define V1190_WRITE_EEPROM   0xC000 /* write 1 byte into EEPROM */
 
#define V1190_READ_EEPROM   0xC100 /* read 1 byte */
 
#define V1190_REVISION_MICRO_CONTROLLER   0xC200
 
#define V1190_WRITE_SPARE   0xC300
 
#define V1190_READ_SPARE   0xC400
 
#define V1190_ENABLE_TEST_MODE   0xC500
 
#define V1190_DISABLE_TEST_MODE   0xC600
 
#define V1190_SET_TDC_TEST_OUTPUT   0xC700 /* C70n set TDC n signal test output */
 
#define V1190_SET_DLL_CLOCK   0xC800
 
#define V1190_READ_TDC_SETUP_SCAN_PATH   0xC900 /* C90n for TDC n */
 
#define V1190_TRG_MATCH_MASK   0x01
 
#define V1190_CONT_STOR_MASK   0x00
 
#define V1190_EDGE_PAIR_MODE   0x00
 
#define V1190_EDGE_TRAILING_MODE   0x01
 
#define V1190_EDGE_LEADING_MODE   0x02
 
#define V1190_EDGE_TRAILING_LEADING_MODE   0x03
 
#define V1190_LSB_800PS   0x00
 
#define V1190_LSB_200PS   0x01
 
#define V1190_LSB_100PS   0x02 /* default */
 
#define V1190_DEAD_TIME_5NS   0x00 /* default */
 
#define V1190_DEAD_TIME_10NS   0x01
 
#define V1190_DEAD_TIME_30NS   0x02
 
#define V1190_DEAD_TIME_100NS   0x03
 
#define V1190_HEADER_DISABLED   0x00
 
#define V1190_HEADER_ENABLED   0x01
 
#define V1190_MAX_EVENTS_0   0x0000
 
#define V1190_MAX_EVENTS_1   0x0001
 
#define V1190_MAX_EVENTS_2   0x0002
 
#define V1190_MAX_EVENTS_4   0x0003
 
#define V1190_MAX_EVENTS_8   0x0004
 
#define V1190_MAX_EVENTS_16   0x0005
 
#define V1190_MAX_EVENTS_32   0x0006
 
#define V1190_MAX_EVENTS_64   0x0007
 
#define V1190_MAX_EVENTS_128   0x0008
 
#define V1190_MAX_EVENTS_NOLIMIT   0x0009 /* default */
 
#define A32D32   0
 
#define A32BLT32   1
 
#define A32MBLT64   2
 
#define A32_2eVME   3
 
#define V1190_DATAREADY_BIT   0x0001
 
#define V1190_ALMFULL_BIT   0x0002
 
#define V1190_FULL_BIT   0x0004
 

Macro Definition Documentation

#define A32_2eVME   3

Definition at line 189 of file v1190.h.

#define A32BLT32   1

Definition at line 187 of file v1190.h.

#define A32D32   0

Definition at line 186 of file v1190.h.

#define A32MBLT64   2

Definition at line 188 of file v1190.h.

#define V1190_ALMFULL_BIT   0x0002

Definition at line 193 of file v1190.h.

Referenced by frontend_loop().

#define V1190_ALMOST_FULL_LEVEL   0x1022

Definition at line 45 of file v1190.h.

Referenced by init_v1190().

#define V1190_AUTOLOAD_DEF_CONFIG   0x0900

Definition at line 72 of file v1190.h.

#define V1190_AUTOLOAD_USER_CONFIG   0x0800

Definition at line 71 of file v1190.h.

#define V1190_BLT_EVENT_NUMBER   0x1024

Definition at line 46 of file v1190.h.

#define V1190_CHANNEL_MASK   0x01F80000

Definition at line 21 of file v1190.h.

#define V1190_CLEAR_KEEP_TOKEN   0x0400

Definition at line 67 of file v1190.h.

#define V1190_COMPENSATION_SRAM   0x1036

Definition at line 55 of file v1190.h.

#define V1190_CONT_STOR   0x0100

Definition at line 64 of file v1190.h.

Referenced by init_v1190().

#define V1190_CONT_STOR_MASK   0x00

Definition at line 155 of file v1190.h.

#define V1190_CONTROL_REGISTER   0x1000

Definition at line 31 of file v1190.h.

Referenced by init_v1190().

#define V1190_DATA_MASK   0x0007FFFF

Definition at line 20 of file v1190.h.

#define V1190_DATAREADY_BIT   0x0001

Definition at line 192 of file v1190.h.

#define V1190_DEAD_TIME_100NS   0x03

Definition at line 169 of file v1190.h.

#define V1190_DEAD_TIME_10NS   0x01

Definition at line 167 of file v1190.h.

#define V1190_DEAD_TIME_30NS   0x02

Definition at line 168 of file v1190.h.

#define V1190_DEAD_TIME_5NS   0x00 /* default */

Definition at line 166 of file v1190.h.

#define V1190_DEFAULT_SETUP_REG   0x7300

Definition at line 135 of file v1190.h.

#define V1190_DIS_SUB_TRG   0x1500

Definition at line 80 of file v1190.h.

#define V1190_DISABLE_ALL_CHANNEL   0x4300

Definition at line 111 of file v1190.h.

Referenced by end_of_run(), and init_v1190().

#define V1190_DISABLE_CHANNEL   0x4100 /* 41nn disable channel nn */

Definition at line 109 of file v1190.h.

#define V1190_DISABLE_ERROR_BYPASS   0x3800

Definition at line 101 of file v1190.h.

#define V1190_DISABLE_ERROR_MARK   0x3600

Definition at line 99 of file v1190.h.

#define V1190_DISABLE_HEADER   0x3100

Definition at line 94 of file v1190.h.

#define V1190_DISABLE_TEST_MODE   0xC600

Definition at line 148 of file v1190.h.

#define V1190_DUMMY16   0x1204

Definition at line 60 of file v1190.h.

#define V1190_DUMMY32   0x1200

Definition at line 59 of file v1190.h.

#define V1190_EDGE_LEADING_MODE   0x02

Definition at line 159 of file v1190.h.

Referenced by init_v1190().

#define V1190_EDGE_MASK   0x02000000

Definition at line 22 of file v1190.h.

#define V1190_EDGE_PAIR_MODE   0x00

Definition at line 157 of file v1190.h.

#define V1190_EDGE_TRAILING_LEADING_MODE   0x03

Definition at line 160 of file v1190.h.

#define V1190_EDGE_TRAILING_MODE   0x01

Definition at line 158 of file v1190.h.

#define V1190_EN_SUB_TRG   0x1400

Definition at line 79 of file v1190.h.

#define V1190_ENABLE_ALL_CHANNEL   0x4200

Definition at line 110 of file v1190.h.

#define V1190_ENABLE_CHANNEL   0x4000 /* 40nn enable channel nn */

Definition at line 108 of file v1190.h.

#define V1190_ENABLE_ERROR_BYPASS   0x3700

Definition at line 100 of file v1190.h.

#define V1190_ENABLE_ERROR_MARK   0x3500

Definition at line 98 of file v1190.h.

#define V1190_ENABLE_HEADER   0x3000

Definition at line 93 of file v1190.h.

#define V1190_ENABLE_TEST_MODE   0xC500

Definition at line 147 of file v1190.h.

#define V1190_ERROR_BIT_MASK   0x20000000

Definition at line 23 of file v1190.h.

#define V1190_ERROR_FLAG_MASK   0x00007FFF

Definition at line 25 of file v1190.h.

#define V1190_ERROR_TDC_MASK   0x03000000

Definition at line 24 of file v1190.h.

#define V1190_EVENT_COUNTER   0x101C

Definition at line 43 of file v1190.h.

#define V1190_EVENT_FIFO   0x1038

Definition at line 56 of file v1190.h.

#define V1190_EVENT_FIFO_STATUS   0x103E

Definition at line 58 of file v1190.h.

#define V1190_EVENT_FIFO_STORED   0x103C

Definition at line 57 of file v1190.h.

#define V1190_EVENT_STORED   0x1020

Definition at line 44 of file v1190.h.

#define V1190_FIRMWARE_REVISION   0x1026

Definition at line 48 of file v1190.h.

#define V1190_FLASH   0x1034

Definition at line 54 of file v1190.h.

#define V1190_FULL_BIT   0x0004

Definition at line 194 of file v1190.h.

#define V1190_GEO_ADDRESS   0x100E

Definition at line 35 of file v1190.h.

#define V1190_HEADER_DISABLED   0x00

Definition at line 171 of file v1190.h.

#define V1190_HEADER_ENABLED   0x01

Definition at line 172 of file v1190.h.

#define V1190_INTERRUPT_LEVEL   0x100A

Definition at line 33 of file v1190.h.

#define V1190_INTERRUPT_VECTOR   0x100C

Definition at line 34 of file v1190.h.

#define V1190_LOAD_DEF_CONFIG   0x0500

Definition at line 68 of file v1190.h.

#define V1190_LOAD_USER_CONFIG   0x0700

Definition at line 70 of file v1190.h.

#define V1190_LSB_100PS   0x02 /* default */

Definition at line 164 of file v1190.h.

#define V1190_LSB_200PS   0x01

Definition at line 163 of file v1190.h.

Referenced by init_v1190().

#define V1190_LSB_800PS   0x00

Definition at line 162 of file v1190.h.

#define V1190_MAX_EVENTS_0   0x0000

Definition at line 174 of file v1190.h.

#define V1190_MAX_EVENTS_1   0x0001

Definition at line 175 of file v1190.h.

#define V1190_MAX_EVENTS_128   0x0008

Definition at line 182 of file v1190.h.

#define V1190_MAX_EVENTS_16   0x0005

Definition at line 179 of file v1190.h.

#define V1190_MAX_EVENTS_2   0x0002

Definition at line 176 of file v1190.h.

#define V1190_MAX_EVENTS_32   0x0006

Definition at line 180 of file v1190.h.

#define V1190_MAX_EVENTS_4   0x0003

Definition at line 177 of file v1190.h.

#define V1190_MAX_EVENTS_64   0x0007

Definition at line 181 of file v1190.h.

#define V1190_MAX_EVENTS_8   0x0004

Definition at line 178 of file v1190.h.

#define V1190_MAX_EVENTS_NOLIMIT   0x0009 /* default */

Definition at line 183 of file v1190.h.

#define V1190_MCST_BASE_ADDRESS   0x1010

Definition at line 36 of file v1190.h.

#define V1190_MCST_CBLT_CTRL   0x1012

Definition at line 37 of file v1190.h.

#define V1190_MICRO_HANDSHAKE   0x1030

Definition at line 52 of file v1190.h.

#define V1190_MODULE_RESET   0x1014

Definition at line 39 of file v1190.h.

Referenced by init_v1190().

#define V1190_OPCODE_ADDRESS   0x102E

Definition at line 51 of file v1190.h.

Referenced by begin_of_run(), end_of_run(), and init_v1190().

#define V1190_OUT_PROG_CONTROL   0x102C

Definition at line 50 of file v1190.h.

#define V1190_OUTPUT_BUFFER   0x0000

Definition at line 30 of file v1190.h.

#define V1190_OUTPUT_BUFFER_SIZE   32768

Definition at line 27 of file v1190.h.

Referenced by frontend_loop().

#define V1190_READ_ACQ_MOD   0x0200

Definition at line 65 of file v1190.h.

#define V1190_READ_ADJUST_CHANNEL   0x5300 /* 53nn read channel nn adjust */

Definition at line 121 of file v1190.h.

#define V1190_READ_DEAD_TIME   0x2900

Definition at line 90 of file v1190.h.

#define V1190_READ_DETECTION   0x2300

Definition at line 85 of file v1190.h.

#define V1190_READ_DLL_LOCK   0x7500 /* 750n DLL lock bit of TDC n */

Definition at line 137 of file v1190.h.

#define V1190_READ_EEPROM   0xC100 /* read 1 byte */

Definition at line 143 of file v1190.h.

#define V1190_READ_ENABLE_PATTERN   0x4500

Definition at line 113 of file v1190.h.

#define V1190_READ_ENABLE_PATTERN32   0x4700

Definition at line 115 of file v1190.h.

#define V1190_READ_ERROR_STATUS   0x7400 /* 740n read error status of TDC n*/

Definition at line 136 of file v1190.h.

#define V1190_READ_ERROR_TYPES   0x3A00

Definition at line 103 of file v1190.h.

#define V1190_READ_EVENT_SIZE   0x3400

Definition at line 97 of file v1190.h.

#define V1190_READ_FIFO_SIZE   0x3C00

Definition at line 105 of file v1190.h.

#define V1190_READ_GLOB_OFSS   0x5100

Definition at line 119 of file v1190.h.

#define V1190_READ_HEADER   0x3200

Definition at line 95 of file v1190.h.

#define V1190_READ_MICRO_REV   0x6100 /* read firmware revision of micro controller */

Definition at line 128 of file v1190.h.

#define V1190_READ_RC_ADJ   0x5500 /* 550n */

Definition at line 123 of file v1190.h.

#define V1190_READ_RES   0x2600

Definition at line 88 of file v1190.h.

#define V1190_READ_SETUP_REG   0x7100 /* 71nn */

Definition at line 133 of file v1190.h.

#define V1190_READ_SPARE   0xC400

Definition at line 146 of file v1190.h.

#define V1190_READ_STATUS_STREAM   0x7600 /* 760n read TDC n status */

Definition at line 138 of file v1190.h.

#define V1190_READ_TDC_ID   0x6000 /* 600n read programmed ID of TDC 0n */

Definition at line 127 of file v1190.h.

#define V1190_READ_TDC_SETUP_SCAN_PATH   0xC900 /* C90n for TDC n */

Definition at line 151 of file v1190.h.

#define V1190_READ_TRG_CONF   0x1600

Definition at line 81 of file v1190.h.

#define V1190_RESET_DLL_PLL   0x6200

Definition at line 129 of file v1190.h.

#define V1190_REVISION_MICRO_CONTROLLER   0xC200

Definition at line 144 of file v1190.h.

#define V1190_SAVE_RC_ADJ   0x5600 /* 560n */

Definition at line 124 of file v1190.h.

#define V1190_SAVE_USER_CONFIG   0x0600

Definition at line 69 of file v1190.h.

#define V1190_SEL_FLASH   0x1032

Definition at line 53 of file v1190.h.

#define V1190_SET_ADJUST_CHANNEL   0x5200 /* 52nn set channel nn adjust */

Definition at line 120 of file v1190.h.

#define V1190_SET_DEAD_TIME   0x2800

Definition at line 89 of file v1190.h.

#define V1190_SET_DETECTION   0x2200

Definition at line 84 of file v1190.h.

Referenced by init_v1190().

#define V1190_SET_DLL_CLOCK   0xC800

Definition at line 150 of file v1190.h.

#define V1190_SET_ERROR_TYPES   0x3900

Definition at line 102 of file v1190.h.

#define V1190_SET_EVENT_SIZE   0x3300

Definition at line 96 of file v1190.h.

#define V1190_SET_FIFO_SIZE   0x3B00

Definition at line 104 of file v1190.h.

#define V1190_SET_GLOB_OFFS   0x5000

Definition at line 118 of file v1190.h.

#define V1190_SET_KEEP_TOKEN   0x0300

Definition at line 66 of file v1190.h.

#define V1190_SET_PAIR_RES   0x2500

Definition at line 87 of file v1190.h.

#define V1190_SET_RC_ADJ   0x5400 /* 540n set rc adjust of tdc 0n */

Definition at line 122 of file v1190.h.

#define V1190_SET_REJ_MARGIN   0x1300

Definition at line 78 of file v1190.h.

#define V1190_SET_SW_MARGIN   0x1200

Definition at line 77 of file v1190.h.

#define V1190_SET_TDC_TEST_OUTPUT   0xC700 /* C70n set TDC n signal test output */

Definition at line 149 of file v1190.h.

#define V1190_SET_TR_LEAD_LSB   0x2400

Definition at line 86 of file v1190.h.

Referenced by init_v1190().

#define V1190_SET_WIN_OFFS   0x1100

Definition at line 76 of file v1190.h.

#define V1190_SET_WIN_WIDTH   0x1000

Definition at line 75 of file v1190.h.

#define V1190_SOFTWARE_CLEAR   0x1016

Definition at line 40 of file v1190.h.

Referenced by begin_of_run(), and resume_run().

#define V1190_SOFTWARE_EVENT_RESET   0x1018

Definition at line 41 of file v1190.h.

#define V1190_SOFTWARE_TRIGGER   0x101A

Definition at line 42 of file v1190.h.

#define V1190_STATUS_REGISTER   0x1002

Definition at line 32 of file v1190.h.

Referenced by frontend_loop(), and init_v1190().

#define V1190_TESTREG   0x1028

Definition at line 49 of file v1190.h.

#define V1190_TRG_MATCH   0x0000

Definition at line 63 of file v1190.h.

#define V1190_TRG_MATCH_MASK   0x01

Definition at line 154 of file v1190.h.

#define V1190_UPDATE_SETUP_REG   0x7200

Definition at line 134 of file v1190.h.

#define V1190_UPDATE_SETUP_TDC   0x7700 /* 770n setup on TDC n */

Definition at line 139 of file v1190.h.

#define V1190_WRITE_EEPROM   0xC000 /* write 1 byte into EEPROM */

Definition at line 142 of file v1190.h.

#define V1190_WRITE_ENABLE_PATTERN   0x4400

Definition at line 112 of file v1190.h.

#define V1190_WRITE_ENABLE_PATTERN32   0x4600

Definition at line 114 of file v1190.h.

#define V1190_WRITE_SETUP_REG   0x7000 /* 70nn */

Definition at line 132 of file v1190.h.

#define V1190_WRITE_SPARE   0xC300

Definition at line 145 of file v1190.h.