mdVaReadout.h File Reference

Go to the source code of this file.

Defines

#define MAX_NUMBER_VA_CRATES   16
#define MAX_VARCS_PER_CRATE   3
#define MAX_VFBS_PER_VARC   12
#define MAX_VACHIPS_PER_VFB   3
#define VA_TICKS_IN_1_SEC   640000000
#define RDOUT_TOF_VMM_ID   6
#define RDOUT_PIN_VA_CHANNEL   18
#define RDOUT_MASK_VA_TIMESTAMP   0x3FFFFFFF
#define RDOUT_BITPOS_VA_TIMESTAMP   0
#define RDOUT_MASK_VA_ERROR_CODE   0x20000000
#define RDOUT_MASK_VA_CHAD   0x1FFF0000
#define RDOUT_MASK_VA_VARC_ID   0x18000000
#define RDOUT_MASK_VA_VARC_AND_VFB   0x1F800000
#define RDOUT_MASK_VA_VFB_AND_CHIP   0x7E00000
#define RDOUT_MASK_VA_VFB_ID   0x7800000
#define RDOUT_MASK_VA_VMM_ID   0x7000000
#define RDOUT_MASK_VA_ADCSEL   0x800000
#define RDOUT_MASK_VA_CHIP   0x600000
#define RDOUT_MASK_VA_CHANNEL   0x1F0000
#define RDOUT_MASK_VA_DATA_CODE   0X8000
#define RDOUT_MASK_VA_ADC_DATA   0x7FFF
#define RDOUT_BITPOS_VA_ADC_DATA   0
#define RDOUT_BITPOS_VA_DATA_CODE   15
#define RDOUT_BITPOS_VA_CHAD   16
#define RDOUT_BITPOS_VA_CHANNEL   16
#define RDOUT_BITPOS_VA_CHIP   21
#define RDOUT_BITPOS_VA_VFB_AND_CHIP   21
#define RDOUT_BITPOS_VA_ADCSEL   23
#define RDOUT_BITPOS_VA_VMM_ID   24
#define RDOUT_BITPOS_VA_VFB_ID   23
#define RDOUT_BITPOS_VA_VARC_AND_VFB   23
#define RDOUT_BITPOS_VA_VARC_ID   27
#define RDOUT_BITPOS_VA_ERROR_CODE   29
#define RDOUT_MASK_VA_WORD_ID   0x80000000
#define RDOUT_MASK_VA_PARITY_BIT   0x40000000
#define RDOUT_BITPOS_VA_WORD_ID   31
#define RDOUT_BITPOS_VA_PARITY_BIT   30
#define mdPullVaTimeStamp(r)   ((r)&RDOUT_MASK_VA_TIMESTAMP)
#define mdPullVaAdcData(r)   ((r)&RDOUT_MASK_VA_ADC_DATA)
#define mdPullVaDataCode(r)   (((r)&RDOUT_MASK_VA_DATA_CODE)>>RDOUT_BITPOS_VA_DATA_CODE)
#define mdPullVaChad(r)   (((r)&RDOUT_MASK_VA_CHAD)>>RDOUT_BITPOS_VA_CHAD)
#define mdPullVaChannel(r)   (((r)&RDOUT_MASK_VA_CHANNEL)>>RDOUT_BITPOS_VA_CHANNEL)
#define mdPullVaChip(r)   (((r)&RDOUT_MASK_VA_CHIP)>>RDOUT_BITPOS_VA_CHIP)
#define mdPullVaVfbAndChip(r)   (((r)&RDOUT_MASK_VA_VFB_AND_CHIP)>>RDOUT_BITPOS_VA_VFB_AND_CHIP)
#define mdPullVaAdcSel(r)   (((r)&RDOUT_MASK_VA_ADCSEL)>>RDOUT_BITPOS_VA_ADCSEL)
#define mdPullVaVmmId(r)   (((r)&RDOUT_MASK_VA_VMM_ID)>>RDOUT_BITPOS_VA_VMM_ID)
#define mdPullVaVfbId(r)   (((r)&RDOUT_MASK_VA_VFB_ID)>>RDOUT_BITPOS_VA_VFB_ID)
#define mdPullVaVarcAndVfb(r)   (((r)&RDOUT_MASK_VA_VARC_AND_VFB)>>RDOUT_BITPOS_VA_VARC_AND_VFB)
#define mdPullVaVarcId(r)   (((r)&RDOUT_MASK_VA_VARC_ID)>>RDOUT_BITPOS_VA_VARC_ID)
#define mdPullVaErrorCode(r)   (((r)&RDOUT_MASK_VA_ERROR_CODE)>>RDOUT_BITPOS_VA_ERROR_CODE)
#define mdPullVaParityBit(r)   (((r)&RDOUT_MASK_VA_PARITY_BIT)>>RDOUT_BITPOS_VA_PARITY_BIT)
#define mdPullVaWordId(r)   (((r)&RDOUT_MASK_VA_WORD_ID)>>RDOUT_BITPOS_VA_WORD_ID)

Define Documentation

#define MAX_NUMBER_VA_CRATES   16

Definition at line 22 of file mdVaReadout.h.

#define MAX_VACHIPS_PER_VFB   3

Definition at line 25 of file mdVaReadout.h.

#define MAX_VARCS_PER_CRATE   3

Definition at line 23 of file mdVaReadout.h.

#define MAX_VFBS_PER_VARC   12

Definition at line 24 of file mdVaReadout.h.

#define mdPullVaAdcData (  )     ((r)&RDOUT_MASK_VA_ADC_DATA)

Definition at line 87 of file mdVaReadout.h.

#define mdPullVaAdcSel (  )     (((r)&RDOUT_MASK_VA_ADCSEL)>>RDOUT_BITPOS_VA_ADCSEL)

Definition at line 93 of file mdVaReadout.h.

#define mdPullVaChad (  )     (((r)&RDOUT_MASK_VA_CHAD)>>RDOUT_BITPOS_VA_CHAD)

Definition at line 89 of file mdVaReadout.h.

#define mdPullVaChannel (  )     (((r)&RDOUT_MASK_VA_CHANNEL)>>RDOUT_BITPOS_VA_CHANNEL)

Definition at line 90 of file mdVaReadout.h.

#define mdPullVaChip (  )     (((r)&RDOUT_MASK_VA_CHIP)>>RDOUT_BITPOS_VA_CHIP)

Definition at line 91 of file mdVaReadout.h.

#define mdPullVaDataCode (  )     (((r)&RDOUT_MASK_VA_DATA_CODE)>>RDOUT_BITPOS_VA_DATA_CODE)

Definition at line 88 of file mdVaReadout.h.

#define mdPullVaErrorCode (  )     (((r)&RDOUT_MASK_VA_ERROR_CODE)>>RDOUT_BITPOS_VA_ERROR_CODE)

Definition at line 98 of file mdVaReadout.h.

#define mdPullVaParityBit (  )     (((r)&RDOUT_MASK_VA_PARITY_BIT)>>RDOUT_BITPOS_VA_PARITY_BIT)

Definition at line 99 of file mdVaReadout.h.

#define mdPullVaTimeStamp (  )     ((r)&RDOUT_MASK_VA_TIMESTAMP)

Definition at line 85 of file mdVaReadout.h.

#define mdPullVaVarcAndVfb (  )     (((r)&RDOUT_MASK_VA_VARC_AND_VFB)>>RDOUT_BITPOS_VA_VARC_AND_VFB)

Definition at line 96 of file mdVaReadout.h.

#define mdPullVaVarcId (  )     (((r)&RDOUT_MASK_VA_VARC_ID)>>RDOUT_BITPOS_VA_VARC_ID)

Definition at line 97 of file mdVaReadout.h.

#define mdPullVaVfbAndChip (  )     (((r)&RDOUT_MASK_VA_VFB_AND_CHIP)>>RDOUT_BITPOS_VA_VFB_AND_CHIP)

Definition at line 92 of file mdVaReadout.h.

#define mdPullVaVfbId (  )     (((r)&RDOUT_MASK_VA_VFB_ID)>>RDOUT_BITPOS_VA_VFB_ID)

Definition at line 95 of file mdVaReadout.h.

#define mdPullVaVmmId (  )     (((r)&RDOUT_MASK_VA_VMM_ID)>>RDOUT_BITPOS_VA_VMM_ID)

Definition at line 94 of file mdVaReadout.h.

#define mdPullVaWordId (  )     (((r)&RDOUT_MASK_VA_WORD_ID)>>RDOUT_BITPOS_VA_WORD_ID)

Definition at line 100 of file mdVaReadout.h.

#define RDOUT_BITPOS_VA_ADC_DATA   0

Definition at line 58 of file mdVaReadout.h.

#define RDOUT_BITPOS_VA_ADCSEL   23

Definition at line 64 of file mdVaReadout.h.

#define RDOUT_BITPOS_VA_CHAD   16

Definition at line 60 of file mdVaReadout.h.

#define RDOUT_BITPOS_VA_CHANNEL   16

Definition at line 61 of file mdVaReadout.h.

#define RDOUT_BITPOS_VA_CHIP   21

Definition at line 62 of file mdVaReadout.h.

#define RDOUT_BITPOS_VA_DATA_CODE   15

Definition at line 59 of file mdVaReadout.h.

#define RDOUT_BITPOS_VA_ERROR_CODE   29

Definition at line 69 of file mdVaReadout.h.

#define RDOUT_BITPOS_VA_PARITY_BIT   30

Definition at line 79 of file mdVaReadout.h.

#define RDOUT_BITPOS_VA_TIMESTAMP   0

Definition at line 39 of file mdVaReadout.h.

#define RDOUT_BITPOS_VA_VARC_AND_VFB   23

Definition at line 67 of file mdVaReadout.h.

#define RDOUT_BITPOS_VA_VARC_ID   27

Definition at line 68 of file mdVaReadout.h.

#define RDOUT_BITPOS_VA_VFB_AND_CHIP   21

Definition at line 63 of file mdVaReadout.h.

#define RDOUT_BITPOS_VA_VFB_ID   23

Definition at line 66 of file mdVaReadout.h.

#define RDOUT_BITPOS_VA_VMM_ID   24

Definition at line 65 of file mdVaReadout.h.

#define RDOUT_BITPOS_VA_WORD_ID   31

Definition at line 78 of file mdVaReadout.h.

#define RDOUT_MASK_VA_ADC_DATA   0x7FFF

Definition at line 56 of file mdVaReadout.h.

#define RDOUT_MASK_VA_ADCSEL   0x800000

Definition at line 52 of file mdVaReadout.h.

#define RDOUT_MASK_VA_CHAD   0x1FFF0000

Definition at line 46 of file mdVaReadout.h.

#define RDOUT_MASK_VA_CHANNEL   0x1F0000

Definition at line 54 of file mdVaReadout.h.

#define RDOUT_MASK_VA_CHIP   0x600000

Definition at line 53 of file mdVaReadout.h.

#define RDOUT_MASK_VA_DATA_CODE   0X8000

Definition at line 55 of file mdVaReadout.h.

#define RDOUT_MASK_VA_ERROR_CODE   0x20000000

Definition at line 45 of file mdVaReadout.h.

#define RDOUT_MASK_VA_PARITY_BIT   0x40000000

Definition at line 76 of file mdVaReadout.h.

#define RDOUT_MASK_VA_TIMESTAMP   0x3FFFFFFF

Definition at line 38 of file mdVaReadout.h.

#define RDOUT_MASK_VA_VARC_AND_VFB   0x1F800000

Definition at line 48 of file mdVaReadout.h.

#define RDOUT_MASK_VA_VARC_ID   0x18000000

Definition at line 47 of file mdVaReadout.h.

#define RDOUT_MASK_VA_VFB_AND_CHIP   0x7E00000

Definition at line 49 of file mdVaReadout.h.

#define RDOUT_MASK_VA_VFB_ID   0x7800000

Definition at line 50 of file mdVaReadout.h.

#define RDOUT_MASK_VA_VMM_ID   0x7000000

Definition at line 51 of file mdVaReadout.h.

#define RDOUT_MASK_VA_WORD_ID   0x80000000

Definition at line 75 of file mdVaReadout.h.

#define RDOUT_PIN_VA_CHANNEL   18

Definition at line 32 of file mdVaReadout.h.

#define RDOUT_TOF_VMM_ID   6

Definition at line 31 of file mdVaReadout.h.

#define VA_TICKS_IN_1_SEC   640000000

Definition at line 29 of file mdVaReadout.h.


Generated on 22 Nov 2017 for loon by  doxygen 1.6.1