/**************************************************************************** * * dsc2Config.h - configuration library header file for dsc2 board * * SP, 02-Dec-2013 * */ #ifndef __DSC2CONFIG__ #define __DSC2CONFIG__ #define NCHAN 16 /** DSC2 configuration parameters **/ typedef struct { int group; int f_rev; UINT32 b_ID; char SerNum[12]; UINT16 TDCChMask; UINT16 TRGChMask; UINT16 TDCORMask; UINT16 TRGORMask; int TDCWidth; int TRGWidth; int TDCThreshold [NCHAN]; int TRGThreshold [NCHAN]; int TRGDigitalWidth [NCHAN]; int TRGDigitalDelay [NCHAN]; } DSC2_CONF; /* Function Prototypes */ int dsc2Config(char *fname); void dsc2InitGlobals(); int dsc2ReadConfigFile(char *filename); int dsc2DownloadAll(); void dsc2Mon(int slot); #endif /* __DSC2CONFIG__ */