vf48.c File Reference

Go to the source code of this file.

Functions

int vf48_EventRead (MVME_INTERFACE *mvme, DWORD base, DWORD *pdest, int *nentry)
int vf48_DataRead (MVME_INTERFACE *mvme, DWORD base, DWORD *pdest, int *nentry)
int vf48_ParameterRead (MVME_INTERFACE *mvme, DWORD base, int grp, int param)
int vf48_ExtTrgSet (MVME_INTERFACE *mvme, DWORD base)
int vf48_ExtTrgClr (MVME_INTERFACE *mvme, DWORD base)
int vf48_SegmentSizeSet (MVME_INTERFACE *mvme, DWORD base, DWORD size)
int vf48_SegmentSizeRead (MVME_INTERFACE *mvme, DWORD base, int grp)
int vf48_TrgThresholdSet (MVME_INTERFACE *mvme, DWORD base, int grp, DWORD size)
int vf48_TrgThresholdRead (MVME_INTERFACE *mvme, DWORD base, int grp)
int vf48_HitThresholdSet (MVME_INTERFACE *mvme, DWORD base, int grp, DWORD size)
int vf48_HitThresholdRead (MVME_INTERFACE *mvme, DWORD base, int grp)
int vf48_ActiveChMaskSet (MVME_INTERFACE *mvme, DWORD base, int grp, DWORD size)
int vf48_ActiveChMaskRead (MVME_INTERFACE *mvme, DWORD base, int grp)
int vf48_RawDataSuppSet (MVME_INTERFACE *mvme, DWORD base, int grp, DWORD size)
int vf48_RawDataSuppRead (MVME_INTERFACE *mvme, DWORD base, int grp)
int vf48_ChSuppSet (MVME_INTERFACE *mvme, DWORD base, int grp, DWORD value)
int vf48_ChSuppRead (MVME_INTERFACE *mvme, DWORD base, int grp)
int vf48_DivisorWrite (MVME_INTERFACE *mvme, DWORD base, DWORD value)
int vf48_DivisorRead (MVME_INTERFACE *mvme, DWORD base, int grp)
int vf48_Status (MVME_INTERFACE *mvme, DWORD base)
int vf48_isPresent (MVME_INTERFACE *mvme, DWORD base)

Variables

static int idx = 0


Function Documentation

int vf48_AcqStart ( MVME_INTERFACE mvme,
DWORD  base 
)

Definition at line 427 of file vf48.c.

int vf48_AcqStop ( MVME_INTERFACE mvme,
DWORD  base 
)

Definition at line 452 of file vf48.c.

int vf48_ActiveChMaskRead ( MVME_INTERFACE mvme,
DWORD  base,
int  grp 
)

Read the channel enable mask for a given group.

Definition at line 710 of file vf48.c.

int vf48_ActiveChMaskSet ( MVME_INTERFACE mvme,
DWORD  base,
int  grp,
DWORD  size 
)

Enable the channel within the given group. By default all 8 channels are enabled.

Definition at line 695 of file vf48.c.

int vf48_ChSuppRead ( MVME_INTERFACE mvme,
DWORD  base,
int  grp 
)

Read the channel suppression flag for a given group.

Definition at line 779 of file vf48.c.

int vf48_ChSuppSet ( MVME_INTERFACE mvme,
DWORD  base,
int  grp,
DWORD  value 
)

Enable the suppression of channel based on the hit threshold for a given group. Currently the MBIT2 contains the divisor parameter too. This function will overwrite this parameter. Apply this function prior the divisor.

Definition at line 760 of file vf48.c.

int vf48_CsrRead ( MVME_INTERFACE mvme,
DWORD  base 
)

Definition at line 530 of file vf48.c.

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

Parameters:
mvme vme structure
base VF48 base address
pdest Destination pointer
Returns:
nentry

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 
)

write the sub-sampling divisor factor to all 6 groups. Value of 0 : base sampling Value of x>0 : base sampling / x

Definition at line 796 of file vf48.c.

int vf48_EventRead ( MVME_INTERFACE mvme,
DWORD  base,
DWORD pdest,
int *  nentry 
)

vf48_EventRead Read one Event (in 32bit mode)

Parameters:
mvme vme structure
base VF48 base address
pdest Pointer to destination
nentry Number of DWORD to transfer
Returns:
status VF48_ERROR, SUCCESS

Definition at line 128 of file vf48.c.

int vf48_EventRead64 ( MVME_INTERFACE mvme,
DWORD  base,
DWORD pdest,
int *  nentry 
)

Definition at line 29 of file vf48.c.

int vf48_ExtTrgClr ( MVME_INTERFACE mvme,
DWORD  base 
)

Clear External Trigger enable

Parameters:
mvme vme structure
base VMEIO base address
Returns:
vf48_SUCCESS

Definition at line 502 of file vf48.c.

int vf48_ExtTrgSet ( MVME_INTERFACE mvme,
DWORD  base 
)

Set External Trigger enable

Parameters:
mvme vme structure
base VF48 base address
Returns:
VF48_SUCCESS

Definition at line 483 of file vf48.c.

Referenced by vf48_Setup().

int vf48_FeFull ( MVME_INTERFACE mvme,
DWORD  base 
)

Definition at line 542 of file vf48.c.

int vf48_FeNotEmpty ( MVME_INTERFACE mvme,
DWORD  base 
)

Definition at line 554 of file vf48.c.

int vf48_GrpEnable ( MVME_INTERFACE mvme,
DWORD  base,
int  grpbit 
)

Definition at line 566 of file vf48.c.

int vf48_GrpRead ( MVME_INTERFACE mvme,
DWORD  base 
)

Definition at line 579 of file vf48.c.

int vf48_HitThresholdRead ( MVME_INTERFACE mvme,
DWORD  base,
int  grp 
)

Read the hit threshold for a given group.

Definition at line 679 of file vf48.c.

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.

Definition at line 664 of file vf48.c.

int vf48_isPresent ( MVME_INTERFACE mvme,
DWORD  base 
)

vf48_isPresent

Parameters:
mvme vme structure
base VF48 base address
Returns:
status VF48_ERROR if module is not present, SUCCESS

Definition at line 948 of file vf48.c.

Referenced by vf48_ParameterRead(), and vf48_Reset().

int vf48_NFrameRead ( MVME_INTERFACE mvme,
DWORD  base 
)

Definition at line 516 of file vf48.c.

Referenced by vf48_EventRead64().

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.

Parameters:
mvme vme structure
base VMEIO base address
grp group number (0..5)
Returns:
VF48_SUCCESS, VF48_ERR_PARM

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 mvme,
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 
)

Read the flag of the raw data suppression of a given channel.

Definition at line 741 of file vf48.c.

int vf48_RawDataSuppSet ( MVME_INTERFACE mvme,
DWORD  base,
int  grp,
DWORD  size 
)

Suppress the transmission of the raw data (wave form) of all the channels of a given group. Feature Q,T are always present expect if channel masked.

Definition at line 726 of file vf48.c.

int vf48_Reset ( MVME_INTERFACE mvme,
DWORD  base 
)

Definition at line 396 of file vf48.c.

int vf48_SegmentSizeRead ( MVME_INTERFACE mvme,
DWORD  base,
int  grp 
)

Read the segment size from a given group. This value should be the same for all the groups.

Definition at line 611 of file vf48.c.

int vf48_SegmentSizeSet ( MVME_INTERFACE mvme,
DWORD  base,
DWORD  size 
)

Set the segment size for all 6 groups

Definition at line 594 of file vf48.c.

int vf48_Setup ( MVME_INTERFACE mvme,
DWORD  base,
int  mode 
)

Definition at line 851 of file vf48.c.

int vf48_Status ( MVME_INTERFACE mvme,
DWORD  base 
)

vf48_Status

Parameters:
mvme vme structure
base VF48 base address
Returns:
status VF48_ERROR, SUCCESS

Definition at line 891 of file vf48.c.

int vf48_TrgThresholdRead ( MVME_INTERFACE mvme,
DWORD  base,
int  grp 
)

Read the trigger threshold for a given group.

Definition at line 644 of file vf48.c.

int vf48_TrgThresholdSet ( MVME_INTERFACE mvme,
DWORD  base,
int  grp,
DWORD  size 
)

Set the trigger 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.

Definition at line 629 of file vf48.c.

int vf48_Trigger ( MVME_INTERFACE mvme,
DWORD  base 
)

Definition at line 840 of file vf48.c.


Variable Documentation

int idx = 0 [static]

vf48_EventRead64 Read one Event through the local buffer. MBLT64 is used for aquiring a buffer, the event is then extracted from this buffer until event incomplete which in this case a DMA is requested again.

Parameters:
mvme vme structure
base VF48 base address
pdest Pointer to destination
nentry Number of DWORD to transfer
Returns:
status VF48_ERROR, SUCCESS

Definition at line 28 of file vf48.c.

Referenced by bm_check_buffers(), bm_close_buffer(), bm_empty_buffers(), bm_request_event(), cm_set_client_info(), cm_set_watchdog_params(), cm_transition(), db_close_database(), el_submit(), register_equipment(), and vf48_EventRead64().

int inbuf [static]

Definition at line 28 of file vf48.c.

Referenced by vf48_EventRead64().


Midas DOC Version 2.0.2 ---- PSI Stefan Ritt ----
Contributions: Pierre-Andre Amaudruz - Sergio Ballestrero - Suzannah Daviel - Doxygen - Peter Green - Qing Gu - Greg Hackman - Gertjan Hofman - Paul Knowles - Exaos Lee - Rudi Meier - Glenn Moloney - Dave Morris - John M O'Donnell - Konstantin Olchanski - Renee Poutissou - Tamsen Schurman - Andreas Suter - Jan M.Wouters - Piotr Adam Zolnierczuk