#ifndef FILE #include #endif #define DAS_CLOCK 50.0 #define CPU_CLOCK 16.0 static double ClockRatio = CPU_CLOCK / DAS_CLOCK; struct reference { unsigned char type, special; unsigned long address, time; } current_ref; struct das_record{ unsigned short events; unsigned ignore :4; unsigned timestamp_a :12; unsigned short timestamp_b[2]; unsigned short clkqual; unsigned short addr[2]; unsigned short data[2]; unsigned short control; } ; #define ethernet_hdr 4608 /* 1200 in Hex */ #define size_offset 100 /* offset from the beginning of data record to the long word stored the # of samples */ #define data_rcd_off 4620 /* offset from the long word stored the # of samples to the first data record */ extern unsigned long get_size(); extern int next_ref();