//----------------------- my -------------------------- #define MAX_FADC250_CH 16 #define Nfa250 21 struct FADC250 { int group; //-- + int F_REV; //-- + f_rev; int B_REV; //-- + b_rev int TYPE; //-- ? b_ID int MODE; //-- + mode int W_OFFSET; //-- + winOffset int W_WIDTH; //-- + winWidth int NSB; //-- + nsb int NSA; //-- + nsa int NPEAK; //-- + npeak char SerNum[80]; //-- + //-- arrays int ADC_MASK; //-- ? chDisMask (int bits order ?) int TRG_MASK; //-- ? trigMask (int bits order ?) // int TET[MAX_FADC250_CH]; //-- + thr int DAC[MAX_FADC250_CH]; //-- + dac int PED[MAX_FADC250_CH]; //-- + ped // int NVAR; //-- - }; //struct FADC250 fadc250[Nfa250+1]; int vme_init(int flag); int slot_info(char *sndstr,int lenstr,int slot); int crate_info(char *sndstr,int lenstr,struct FADC250 *fadc250); int vme_fadc_scaler_print(char *sndstr,int slot, int rflag); int vme_fadc_scaler_getrates(double *rates, unsigned int *counters, int slot, int rflag); //---- discr --- int vme_discr_init(uint16_t THR1, uint16_t THR2, uint16_t pWidth, int *nslots, int *slots, int maxslots); //int vme_discr_init(int THR); int vme_discr_set_thresholds(uint32_t *thresholds, int type, int slot); int vme_discr_get_thresholds(int slot); int vme_discr_print(); int vme_discr_getrates(uint32_t *counters, uint32_t *counters2,int slot); int fa125Offset(int offset, int width); int fa250Offset(int offset, int width);