Go to the source code of this file.
#define VF48_ACTIVE_CH_MASK (DWORD) (9) |
Definition at line 106 of file vf48.h.
Referenced by vf48_ActiveChMaskRead(), and vf48_ActiveChMaskSet().
#define VF48_CSR_CRC_ERROR (DWORD) (0x00000020) |
#define VF48_CSR_EXT_TRIGGER (DWORD) (0x00000080) |
#define VF48_CSR_FE_FULL (DWORD) (0x00008000) |
#define VF48_CSR_FE_NOTEMPTY (DWORD) (0x00000008) |
#define VF48_CSR_PARM_DATA_RDY (DWORD) (0x00000004) |
Definition at line 119 of file vf48.h.
Referenced by vf48_ParameterRead(), and vf48_ParameterWrite().
#define VF48_CSR_PARM_ID_RDY (DWORD) (0x00000002) |
Definition at line 118 of file vf48.h.
Referenced by vf48_ParameterRead(), and vf48_ParameterWrite().
#define VF48_CSR_REG_RW (DWORD) (0) |
-RW-D16/32
Definition at line 29 of file vf48.h.
Referenced by vf48_AcqStart(), vf48_AcqStop(), vf48_CsrRead(), vf48_ExtTrgClr(), vf48_ExtTrgSet(), vf48_FeFull(), vf48_FeNotEmpty(), vf48_ParameterRead(), vf48_ParameterWrite(), vf48_Reset(), and vf48_Trigger().
#define VF48_CSR_START_ACQ (DWORD) (0x00000001) |
#define VF48_DATA_FIFO_R (DWORD) (0x1000) |
#define VF48_ERR_HW (603) |
Definition at line 28 of file vf48.h.
Referenced by vf48_AcqStart(), vf48_AcqStop(), and vf48_Reset().
#define VF48_ERR_NODATA (503) |
#define VF48_ERR_PARM (-1) |
Definition at line 26 of file vf48.h.
Referenced by vf48_ParameterRead(), and vf48_ParameterWrite().
#define VF48_ERROR (-1) |
Definition at line 25 of file vf48.h.
Referenced by vf48_EventRead(), vf48_EventRead64(), and vf48_isPresent().
#define VF48_GLOBAL_RESET_W (DWORD) (0x00B0) |
#define VF48_GRP_OFFSET (DWORD) (12) |
Definition at line 86 of file vf48.h.
Referenced by vf48_ParameterRead(), and vf48_ParameterWrite().
#define VF48_GRP_REG_RW (DWORD) (0x0090) |
#define VF48_HEADER (DWORD) (0x80000000) |
#define VF48_HIT_THRESHOLD (DWORD) (2) |
Definition at line 89 of file vf48.h.
Referenced by vf48_HitThresholdRead(), and vf48_HitThresholdSet().
#define VF48_IDXMAX 4096 |
#define VF48_LATENCY (DWORD) (12) |
#define VF48_MBIT1 (DWORD) (10) |
Definition at line 97 of file vf48.h.
Referenced by vf48_RawDataSuppRead(), and vf48_RawDataSuppSet().
#define VF48_MBIT2 (DWORD) (11) |
Definition at line 107 of file vf48.h.
Referenced by vf48_ChSuppRead(), vf48_ChSuppSet(), vf48_DivisorRead(), and vf48_DivisorWrite().
#define VF48_NFRAME_R (DWORD) (0x00A0) |
-R-D16/32
Definition at line 38 of file vf48.h.
Referenced by vf48_AcqStart(), vf48_AcqStop(), vf48_EventRead(), and vf48_NFrameRead().
#define VF48_PARAM_DATA_RW (DWORD) (0x0050) |
-RW-D16/32
Definition at line 34 of file vf48.h.
Referenced by vf48_ParameterRead(), and vf48_ParameterWrite().
#define VF48_PARAM_ID_W (DWORD) (0x0060) |
-W-D16/32
Definition at line 35 of file vf48.h.
Referenced by vf48_ParameterRead(), and vf48_ParameterWrite().
#define VF48_PARMA_BIT_RD (DWORD) (0x80) |
#define VF48_PRE_TRIGGER (DWORD) (4) |
#define VF48_SEGMENT_SIZE (DWORD) (5) |
Definition at line 92 of file vf48.h.
Referenced by vf48_ParameterWrite(), vf48_SegmentSizeRead(), vf48_SegmentSizeSet(), and vf48_Setup().
#define VF48_SELECTIVE_CLR_W (DWORD) (0x0014) |
#define VF48_SELECTIVE_SET_W (DWORD) (0x0010) |
#define VF48_SOFT_TRIG_W (DWORD) (0x0070) |
#define VF48_SUCCESS (1) |
Definition at line 24 of file vf48.h.
Referenced by vf48_AcqStart(), vf48_AcqStop(), vf48_EventRead(), vf48_ExtTrgClr(), vf48_ExtTrgSet(), vf48_GrpEnable(), vf48_isPresent(), vf48_ParameterRead(), vf48_ParameterWrite(), vf48_Reset(), vf48_Status(), and vf48_Trigger().
#define VF48_TEST_REG_RW (DWORD) (0x0020) |
#define VF48_TRAILER (DWORD) (0xE0000000) |
#define VF48_TRIG_THRESHOLD (DWORD) (15) |
Definition at line 102 of file vf48.h.
Referenced by vf48_TrgThresholdRead(), and vf48_TrgThresholdSet().
int vf48_AcqStart | ( | MVME_INTERFACE * | myvme, | |
DWORD | base | |||
) |
int vf48_AcqStop | ( | MVME_INTERFACE * | myvme, | |
DWORD | base | |||
) |
int vf48_ActiveChMaskRead | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
int | grp | |||
) |
int vf48_ActiveChMaskSet | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
int | grp, | |||
DWORD | size | |||
) |
int vf48_ChSuppRead | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
int | grp | |||
) |
int vf48_ChSuppSet | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
int | grp, | |||
DWORD | value | |||
) |
int vf48_CsrRead | ( | MVME_INTERFACE * | myvme, | |
DWORD | base | |||
) |
int vf48_DataRead | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
DWORD * | pdest, | |||
int * | nentry | |||
) |
vf48_DataRead Read N entries (32bit) from the VF48 data FIFO using the MBLT64 mode
mvme | vme structure | |
base | VF48 base address | |
pdest | Destination pointer |
Definition at line 185 of file vf48.c.
Referenced by vf48_EventRead64().
int vf48_DivisorRead | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
int | grp | |||
) |
Read the divisor parameter of the given group. All the groups should read the same value.
Definition at line 827 of file vf48.c.
Referenced by vf48_DivisorWrite().
int vf48_DivisorWrite | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
DWORD | value | |||
) |
int vf48_EventRead | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
DWORD * | pdest, | |||
int * | nentry | |||
) |
int vf48_EventRead64 | ( | MVME_INTERFACE * | myvme, | |
DWORD | base, | |||
DWORD * | event, | |||
int * | elements | |||
) |
int vf48_EvtEmpty | ( | MVME_INTERFACE * | myvme, | |
DWORD | base | |||
) |
int vf48_ExtTrgClr | ( | MVME_INTERFACE * | mvme, | |
DWORD | base | |||
) |
int vf48_ExtTrgSet | ( | MVME_INTERFACE * | mvme, | |
DWORD | base | |||
) |
Set External Trigger enable
mvme | vme structure | |
base | VF48 base address |
Definition at line 483 of file vf48.c.
Referenced by vf48_Setup().
int vf48_FeFull | ( | MVME_INTERFACE * | myvme, | |
DWORD | base | |||
) |
int vf48_GroupRead | ( | MVME_INTERFACE * | myvme, | |
DWORD | base, | |||
DWORD * | event, | |||
int | grp, | |||
int * | elements | |||
) |
int vf48_GrpEnable | ( | MVME_INTERFACE * | myvme, | |
DWORD | base, | |||
int | grpbit | |||
) |
int vf48_GrpOperationMode | ( | MVME_INTERFACE * | myvme, | |
DWORD | base, | |||
int | grp, | |||
int | opmode | |||
) |
int vf48_GrpRead | ( | MVME_INTERFACE * | myvme, | |
DWORD | base | |||
) |
int vf48_HitThresholdRead | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
int | grp | |||
) |
int vf48_HitThresholdSet | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
int | grp, | |||
DWORD | size | |||
) |
Set the hit threshold for the given group. the threshold value correspond to the difference of 2 sampling values separated by 2 points (s6-s3). It is compared to a positive value. If the slope of the signal is negative, the signal should be inverted. The hit threshold is used for channel suppression in case none of the described condition is satisfied.
int vf48_isPresent | ( | MVME_INTERFACE * | mvme, | |
DWORD | base | |||
) |
vf48_isPresent
mvme | vme structure | |
base | VF48 base address |
Definition at line 948 of file vf48.c.
Referenced by vf48_ParameterRead(), and vf48_Reset().
int vf48_NFrameRead | ( | MVME_INTERFACE * | myvme, | |
DWORD | base | |||
) |
int vf48_ParameterCheck | ( | MVME_INTERFACE * | myvme, | |
DWORD | base, | |||
int | what | |||
) |
int vf48_ParameterRead | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
int | grp, | |||
int | param | |||
) |
Read any Parameter for a given group. Each group (0..5) handles 8 consecutive input channels.
mvme | vme structure | |
base | VMEIO base address | |
grp | group number (0..5) |
Definition at line 293 of file vf48.c.
Referenced by vf48_ActiveChMaskRead(), vf48_ChSuppRead(), vf48_ChSuppSet(), vf48_DivisorRead(), vf48_DivisorWrite(), vf48_HitThresholdRead(), vf48_ParameterWrite(), vf48_RawDataSuppRead(), vf48_SegmentSizeRead(), vf48_Setup(), vf48_Status(), and vf48_TrgThresholdRead().
int vf48_ParameterWrite | ( | MVME_INTERFACE * | myvme, | |
DWORD | base, | |||
int | grp, | |||
int | param, | |||
int | value | |||
) |
Definition at line 205 of file vf48.c.
Referenced by vf48_ActiveChMaskSet(), vf48_ChSuppSet(), vf48_DivisorWrite(), vf48_HitThresholdSet(), vf48_RawDataSuppSet(), vf48_SegmentSizeSet(), vf48_Setup(), and vf48_TrgThresholdSet().
int vf48_RawDataSuppRead | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
int | grp | |||
) |
int vf48_RawDataSuppSet | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
int | grp, | |||
DWORD | size | |||
) |
int vf48_Reset | ( | MVME_INTERFACE * | myvme, | |
DWORD | base | |||
) |
int vf48_SegmentSizeRead | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
int | grp | |||
) |
int vf48_SegmentSizeSet | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
DWORD | size | |||
) |
int vf48_Setup | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
int | mode | |||
) |
int vf48_Status | ( | MVME_INTERFACE * | mvme, | |
DWORD | base | |||
) |
int vf48_TrgThresholdRead | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
int | grp | |||
) |
int vf48_TrgThresholdSet | ( | MVME_INTERFACE * | mvme, | |
DWORD | base, | |||
int | grp, | |||
DWORD | size | |||
) |
int vf48_Trigger | ( | MVME_INTERFACE * | mvme, | |
DWORD | base | |||
) |