mdQieReadout.h File Reference

Go to the source code of this file.

Defines

#define MAX_NUMBER_MASTER_CRATES   8
#define MAX_MASTERS_PER_CRATE   12
#define MAX_MINDERS_PER_MASTER   8
#define MAX_MENUS_PER_MINDER   16
#define QIE_TICKS_IN_1_SEC   53100057
#define QIE_DATA_TYPE_PEDESTAL   0
#define QIE_DATA_TYPE_CURRENT_INJECT   1
#define QIE_DATA_TYPE_DIAGNOSTIC   2
#define QIE_DATA_TYPE_TCAL   3
#define QIE_DATA_TYPE_SPILL   4
#define QIE_DATA_TYPE_DYNODE   5
#define QIE_DATA_TYPE_EXT_FLASHER   6
#define QIE_DATA_TYPE_EXTERNAL   7
#define RDOUT_MASK_QIE_CHAD   (0x1FEF0000)
#define RDOUT_MASK_QIE_ERROR_CODE   (0xE0000000)
#define RDOUT_MASK_QIE_MASTER_ADDRESS_AND_CHANNEL   (0x1FE00000)
#define RDOUT_MASK_QIE_MASTER_ADDRESS   (0x1F000000)
#define RDOUT_MASK_QIE_MASTER_CHANNEL   (0x00E00000)
#define RDOUT_MASK_QIE_TRUNCATION_FLAG   (0x00100000)
#define RDOUT_MASK_QIE_MINDER_CHANNEL   (0x000F0000)
#define RDOUT_MASK_QIE_ADC_DATA   (0x0000FFFF)
#define RDOUT_MASK_QIE_WORDCOUNT_ERROR   (0x80000000)
#define RDOUT_MASK_QIE_CAPID_ERROR   (0x40000000)
#define RDOUT_MASK_QIE_PARITY_ERROR   (0x20000000)
#define RDOUT_BITPOS_QIE_WORDCOUNT_ERROR   31
#define RDOUT_BITPOS_QIE_CAPID_ERROR   30
#define RDOUT_BITPOS_QIE_PARITY_ERROR   29
#define RDOUT_BITPOS_QIE_ERROR_CODE   29
#define RDOUT_BITPOS_QIE_MASTER_ADDRESS   24
#define RDOUT_BITPOS_QIE_MASTER_CHANNEL   21
#define RDOUT_BITPOS_QIE_TRUNCATION_FLAG   20
#define RDOUT_BITPOS_QIE_MINDER_CHANNEL   16
#define RDOUT_BITPOS_QIE_CHAD   16
#define RDOUT_BITPOS_QIE_ADC_DATA   0
#define RDOUT_MASK_QIE_DATA_TYPE   0xE0000000
#define RDOUT_MASK_QIE_TIMESTAMP   0x07FFFFFF
#define RDOUT_BITPOS_QIE_DATA_TYPE   29
#define RDOUT_BITPOS_QIE_TIMESTAMP   0
#define mdPullQieChad(r)   (((r)&RDOUT_MASK_QIE_CHAD)>>RDOUT_BITPOS_QIE_CHAD)
#define mdPullQieMasterAddressAndChannel(r)   (((r)&RDOUT_MASK_QIE_MASTER_ADDRESS_AND_CHANNEL)>>RDOUT_BITPOS_QIE_MASTER_CHANNEL)
#define mdPullQieMasterAddress(r)   (((r)&RDOUT_MASK_QIE_MASTER_ADDRESS)>>RDOUT_BITPOS_QIE_MASTER_ADDRESS)
#define mdPullQieMasterChannel(r)   (((r)&RDOUT_MASK_QIE_MASTER_CHANNEL)>>RDOUT_BITPOS_QIE_MASTER_CHANNEL)
#define mdPullQieMinderChannel(r)   (((r)&RDOUT_MASK_QIE_MINDER_CHANNEL)>>RDOUT_BITPOS_QIE_MINDER_CHANNEL)
#define mdPullQieAdcData(r)   ((r)&RDOUT_MASK_QIE_ADC_DATA)
#define mdPullQieErrorCode(r)   (((r)&RDOUT_MASK_QIE_ERROR_CODE)>>RDOUT_BITPOS_QIE_ERROR_CODE)
#define mdPullQieTruncationFlag(r)   (((r)&RDOUT_MASK_QIE_TRUNCATION_FLAG)>>RDOUT_BITPOS_QIE_TRUNCATION_FLAG)
#define mdPullQieWordCountError(r)   (((r)&RDOUT_MASK_QIE_WORDCOUNT_ERROR)>>RDOUT_BITPOS_QIE_WORDCOUNT_ERROR)
#define mdPullQieCapIdError(r)   (((r)&RDOUT_MASK_QIE_CAPID_ERROR)>>RDOUT_BITPOS_QIE_CAPID_ERROR)
#define mdPullQieParityError(r)   (((r)&RDOUT_MASK_QIE_PARITY_ERROR)>>RDOUT_BITPOS_QIE_PARITY_ERROR)
#define mdPullQieDataType(r)   (((r)&RDOUT_MASK_QIE_DATA_TYPE)>>RDOUT_BITPOS_QIE_DATA_TYPE)
#define mdPullQieTimeStamp(r)   ((r)&RDOUT_MASK_QIE_TIMESTAMP)

Define Documentation

#define MAX_MASTERS_PER_CRATE   12

Definition at line 23 of file mdQieReadout.h.

#define MAX_MENUS_PER_MINDER   16

Definition at line 25 of file mdQieReadout.h.

#define MAX_MINDERS_PER_MASTER   8

Definition at line 24 of file mdQieReadout.h.

#define MAX_NUMBER_MASTER_CRATES   8

Definition at line 22 of file mdQieReadout.h.

#define mdPullQieAdcData (  )     ((r)&RDOUT_MASK_QIE_ADC_DATA)

Definition at line 92 of file mdQieReadout.h.

#define mdPullQieCapIdError (  )     (((r)&RDOUT_MASK_QIE_CAPID_ERROR)>>RDOUT_BITPOS_QIE_CAPID_ERROR)

Definition at line 96 of file mdQieReadout.h.

#define mdPullQieChad (  )     (((r)&RDOUT_MASK_QIE_CHAD)>>RDOUT_BITPOS_QIE_CHAD)

Definition at line 87 of file mdQieReadout.h.

#define mdPullQieDataType (  )     (((r)&RDOUT_MASK_QIE_DATA_TYPE)>>RDOUT_BITPOS_QIE_DATA_TYPE)

Definition at line 103 of file mdQieReadout.h.

#define mdPullQieErrorCode (  )     (((r)&RDOUT_MASK_QIE_ERROR_CODE)>>RDOUT_BITPOS_QIE_ERROR_CODE)

Definition at line 93 of file mdQieReadout.h.

#define mdPullQieMasterAddress (  )     (((r)&RDOUT_MASK_QIE_MASTER_ADDRESS)>>RDOUT_BITPOS_QIE_MASTER_ADDRESS)

Definition at line 89 of file mdQieReadout.h.

#define mdPullQieMasterAddressAndChannel (  )     (((r)&RDOUT_MASK_QIE_MASTER_ADDRESS_AND_CHANNEL)>>RDOUT_BITPOS_QIE_MASTER_CHANNEL)

Definition at line 88 of file mdQieReadout.h.

#define mdPullQieMasterChannel (  )     (((r)&RDOUT_MASK_QIE_MASTER_CHANNEL)>>RDOUT_BITPOS_QIE_MASTER_CHANNEL)

Definition at line 90 of file mdQieReadout.h.

#define mdPullQieMinderChannel (  )     (((r)&RDOUT_MASK_QIE_MINDER_CHANNEL)>>RDOUT_BITPOS_QIE_MINDER_CHANNEL)

Definition at line 91 of file mdQieReadout.h.

#define mdPullQieParityError (  )     (((r)&RDOUT_MASK_QIE_PARITY_ERROR)>>RDOUT_BITPOS_QIE_PARITY_ERROR)

Definition at line 97 of file mdQieReadout.h.

#define mdPullQieTimeStamp (  )     ((r)&RDOUT_MASK_QIE_TIMESTAMP)

Definition at line 104 of file mdQieReadout.h.

#define mdPullQieTruncationFlag (  )     (((r)&RDOUT_MASK_QIE_TRUNCATION_FLAG)>>RDOUT_BITPOS_QIE_TRUNCATION_FLAG)

Definition at line 94 of file mdQieReadout.h.

#define mdPullQieWordCountError (  )     (((r)&RDOUT_MASK_QIE_WORDCOUNT_ERROR)>>RDOUT_BITPOS_QIE_WORDCOUNT_ERROR)

Definition at line 95 of file mdQieReadout.h.

#define QIE_DATA_TYPE_CURRENT_INJECT   1

Definition at line 37 of file mdQieReadout.h.

#define QIE_DATA_TYPE_DIAGNOSTIC   2

Definition at line 38 of file mdQieReadout.h.

#define QIE_DATA_TYPE_DYNODE   5

Definition at line 41 of file mdQieReadout.h.

#define QIE_DATA_TYPE_EXT_FLASHER   6

Definition at line 42 of file mdQieReadout.h.

#define QIE_DATA_TYPE_EXTERNAL   7

Definition at line 43 of file mdQieReadout.h.

#define QIE_DATA_TYPE_PEDESTAL   0

Definition at line 36 of file mdQieReadout.h.

#define QIE_DATA_TYPE_SPILL   4

Definition at line 40 of file mdQieReadout.h.

#define QIE_DATA_TYPE_TCAL   3

Definition at line 39 of file mdQieReadout.h.

#define QIE_TICKS_IN_1_SEC   53100057

Definition at line 30 of file mdQieReadout.h.

#define RDOUT_BITPOS_QIE_ADC_DATA   0

Definition at line 71 of file mdQieReadout.h.

#define RDOUT_BITPOS_QIE_CAPID_ERROR   30

Definition at line 62 of file mdQieReadout.h.

#define RDOUT_BITPOS_QIE_CHAD   16

Definition at line 70 of file mdQieReadout.h.

#define RDOUT_BITPOS_QIE_DATA_TYPE   29

Definition at line 80 of file mdQieReadout.h.

#define RDOUT_BITPOS_QIE_ERROR_CODE   29

Definition at line 65 of file mdQieReadout.h.

#define RDOUT_BITPOS_QIE_MASTER_ADDRESS   24

Definition at line 66 of file mdQieReadout.h.

#define RDOUT_BITPOS_QIE_MASTER_CHANNEL   21

Definition at line 67 of file mdQieReadout.h.

#define RDOUT_BITPOS_QIE_MINDER_CHANNEL   16

Definition at line 69 of file mdQieReadout.h.

#define RDOUT_BITPOS_QIE_PARITY_ERROR   29

Definition at line 63 of file mdQieReadout.h.

#define RDOUT_BITPOS_QIE_TIMESTAMP   0

Definition at line 81 of file mdQieReadout.h.

#define RDOUT_BITPOS_QIE_TRUNCATION_FLAG   20

Definition at line 68 of file mdQieReadout.h.

#define RDOUT_BITPOS_QIE_WORDCOUNT_ERROR   31

Definition at line 61 of file mdQieReadout.h.

#define RDOUT_MASK_QIE_ADC_DATA   (0x0000FFFF)

Definition at line 56 of file mdQieReadout.h.

#define RDOUT_MASK_QIE_CAPID_ERROR   (0x40000000)

Definition at line 58 of file mdQieReadout.h.

#define RDOUT_MASK_QIE_CHAD   (0x1FEF0000)

Definition at line 49 of file mdQieReadout.h.

#define RDOUT_MASK_QIE_DATA_TYPE   0xE0000000

Definition at line 77 of file mdQieReadout.h.

#define RDOUT_MASK_QIE_ERROR_CODE   (0xE0000000)

Definition at line 50 of file mdQieReadout.h.

#define RDOUT_MASK_QIE_MASTER_ADDRESS   (0x1F000000)

Definition at line 52 of file mdQieReadout.h.

#define RDOUT_MASK_QIE_MASTER_ADDRESS_AND_CHANNEL   (0x1FE00000)

Definition at line 51 of file mdQieReadout.h.

#define RDOUT_MASK_QIE_MASTER_CHANNEL   (0x00E00000)

Definition at line 53 of file mdQieReadout.h.

#define RDOUT_MASK_QIE_MINDER_CHANNEL   (0x000F0000)

Definition at line 55 of file mdQieReadout.h.

#define RDOUT_MASK_QIE_PARITY_ERROR   (0x20000000)

Definition at line 59 of file mdQieReadout.h.

#define RDOUT_MASK_QIE_TIMESTAMP   0x07FFFFFF

Definition at line 78 of file mdQieReadout.h.

#define RDOUT_MASK_QIE_TRUNCATION_FLAG   (0x00100000)

Definition at line 54 of file mdQieReadout.h.

#define RDOUT_MASK_QIE_WORDCOUNT_ERROR   (0x80000000)

Definition at line 57 of file mdQieReadout.h.


Generated on 2 Nov 2017 for loon by  doxygen 1.6.1