1 #ifndef __ONCSSUB_IDTPCFEEV3_H__
2 #define __ONCSSUB_IDTPCFEEV3_H__
21 int iValue(
const int ch,
const int sample);
22 int iValue(
const int ,
const char * what);
25 long long lValue(
const int channel,
const char *what) ;
33 static const unsigned short MAGIC_KEY_0 = 0xfe;
34 static const unsigned short MAGIC_KEY_1 = 0x00;
36 static const unsigned short FEE_MAGIC_KEY = 0xba00;
37 static const unsigned short GTM_MAGIC_KEY = 0xbb00;
38 static const unsigned short GTM_LVL1_ACCEPT_MAGIC_KEY = 0xbbf0;
39 static const unsigned short GTM_ENDAT_MAGIC_KEY = 0xbbf1;
41 static const unsigned short MAX_FEECOUNT = 26;
42 static const unsigned short MAX_CHANNELS = 8*32;
45 unsigned short reverseBits(
const unsigned short x)
const;
46 unsigned short crc16(
const unsigned int fee,
const unsigned int index,
const int l)
const;
49 int find_header (
const unsigned int xx,
const std::vector<unsigned short> &orig);
50 int decode_gtm_data(
unsigned short gtm[16]);
73 unsigned long long bco;
94 typedef std::multiset< sampa_waveform* , bco_compare>
waveform_set;
102 int cacheIterator(
const int n);
107 std::vector<unsigned short> fee_data[MAX_FEECOUNT];