#include #include #include #include #include "/usr/include/bsd/sys/time.h" #include "rd13liberrs.h" #include "MultiIntFlags.h" #include "VME_trig.h" #define CSR_CONF 0xE0 #define CSR_CONF1 0x8C /* #define CSR_CONF 0xec */ #define INBURST 0 #define OUTBURST 1 #define SIGNAL_EVENT 1 #define SIGNAL_SOB 2 #define SIGNAL_EOB 3 #define SIGNAL_SOFT 4 #define SIGNAL_DEBUG 1 static int state = OUTBURST; int i, flag[4]; int counter[4]; int value, mask; int sts; int badsob = 0; int badeob = 0; int offburst = 0; int evinburst = 0; int usemask = 0; int vr_value;