21 #if defined(__APPLE__)
23 #include <libkern/OSByteOrder.h>
24 #define bswap_16(x) OSSwapInt16(x)
25 #define bswap_32(x) OSSwapInt32(x)
26 #define bswap_64(x) OSSwapInt64(x)
65 printf(
" SubEv ID %6u Type %2u/%1u Length %5u[w] Control %2u Subcrate %2u\n",
72 uint32_t* pl_data = (uint32_t*) RawData();
73 uint32_t ll = RawDataSize() / 4;
75 for(uint32_t l=0; l<ll; l++) {
76 if(l%8 == 0) printf(
" ");
78 printf(
"%04x.%04x ",(
unsigned) ((*pl_data>>16) & 0xffff), (
unsigned) (*pl_data & 0xffff));
80 printf(
"%8u ", (
unsigned) *pl_data);
82 if(l%8 == 7) printf(
"\n");
85 if (ll%8 != 0) printf(
"\n");
88 uint16_t* pl_data = (uint16_t*) RawData();
89 uint32_t ll = RawDataSize() / 2;
91 for(uint32_t l=0; l<ll; l++) {
92 if(l%8 == 0) printf(
" ");
93 printf(
"%8u ", (
unsigned) *pl_data);
95 if(l%8 == 7) printf(
"\n");
98 if (ll%8 != 0) printf(
"\n");
106 while ((sub = NextSubEvent(sub)) != 0) cnt++;
113 printf(
"Event %9u Type %2u/%1u Length %5u[w] Trigger %2u\n",
114 (
unsigned) EventNumber(), (
unsigned) Type(), (
unsigned) SubType(), (
unsigned) FullSize()/2, (
unsigned) TriggerNumber());
116 printf(
"Event type %u, subtype %u, data longwords %u",
117 (
unsigned) Type(), (
unsigned) SubType(), (
unsigned) FullSize()/2);
156 case MBS_TYPE(100,1):
return iUsedWords * 2;
159 case MBS_TYPE(10,1):
return i_used * 2;
173 iUsedWords = len / 2;
193 unsigned cnt = bytessize / 4;
194 uint32_t* d = (uint32_t*) data;
#define MBS_TYPE(typ, subtyp)
const char * comStartServer
const char * protocolMbst
void SwapData(void *data, unsigned bytessize)
const char * comStartFile
const char * xmlCombineCompleteOnly
const char * xmlServerLimit
const char * xmlSpecialTriggerLimit
const char * protocolMbss
int DefualtServerPort(int kind)
const char * xmlTextCharBuffer
int StrToServerKind(const std::string &str)
const char * comStopServer
const char * xmlServerScale
const char * xmlCheckSubeventIds
const char * xmlCombinerRatesPrefix
const char * xmlTextNumData
const char * xmlServerKind
const char * xmlEvidTolerance
const char * xmlServerPort
const char * ServerKindToStr(int kind)
const char * xmlTextHeaderLines
const char * xmlTextDataFormat
const char * xmlServerName