19 #include <signaldata/PackedSignal.hpp>
20 #include <signaldata/LqhKey.hpp>
21 #include <debugger/DebuggerNames.hpp>
24 printPACKED_SIGNAL(FILE * output,
const Uint32 * theData, Uint32 len, Uint16 receiverBlockNo){
25 fprintf(output,
"Signal data: ");
28 fprintf(output,
"H\'%.8x ", theData[i++]);
30 fprintf(output,
"--------- Begin Packed Signals --------\n");
32 for (i = 0; i < len;) {
33 switch (PackedSignal::getSignalType(theData[i])) {
35 Uint32 signalLength = 5;
36 fprintf(output,
"--------------- Signal ----------------\n");
37 fprintf(output,
"r.bn: %u \"%s\", length: %u \"COMMIT\"\n",
38 receiverBlockNo, getBlockName(receiverBlockNo,
""), signalLength);
39 fprintf(output,
"Signal data: ");
40 for(Uint32 j = 0; j < signalLength; j++)
41 fprintf(output,
"H\'%.8x ", theData[i++]);
46 Uint32 signalLength = 3;
47 fprintf(output,
"--------------- Signal ----------------\n");
48 fprintf(output,
"r.bn: %u \"%s\", length: %u \"COMPLETE\"\n",
49 receiverBlockNo, getBlockName(receiverBlockNo,
""), signalLength);
50 fprintf(output,
"Signal data: ");
51 for(Uint32 j = 0; j < signalLength; j++)
52 fprintf(output,
"H\'%.8x ", theData[i++]);
57 Uint32 signalLength = 3;
58 fprintf(output,
"--------------- Signal ----------------\n");
59 fprintf(output,
"r.bn: %u \"%s\", length: %u \"COMMITTED\"\n",
60 receiverBlockNo, getBlockName(receiverBlockNo,
""), signalLength);
61 fprintf(output,
"Signal data: ");
62 for(Uint32 j = 0; j < signalLength; j++)
63 fprintf(output,
"H\'%.8x ", theData[i++]);
68 Uint32 signalLength = 3;
69 fprintf(output,
"--------------- Signal ----------------\n");
70 fprintf(output,
"r.bn: %u \"%s\", length: %u \"COMPLETED\"\n",
71 receiverBlockNo, getBlockName(receiverBlockNo,
""), signalLength);
72 fprintf(output,
"Signal data: ");
73 for(Uint32 j = 0; j < signalLength; j++)
74 fprintf(output,
"H\'%.8x ", theData[i++]);
79 Uint32 signalLength = LqhKeyConf::SignalLength;
81 fprintf(output,
"--------------- Signal ----------------\n");
82 fprintf(output,
"r.bn: %u \"%s\", length: %u \"LQHKEYCONF\"\n",
83 receiverBlockNo, getBlockName(receiverBlockNo,
""), signalLength);
84 printLQHKEYCONF(output, theData + i, signalLength, receiverBlockNo);
88 case ZREMOVE_MARKER: {
89 Uint32 signalLength = 2;
90 fprintf(output,
"--------------- Signal ----------------\n");
91 fprintf(output,
"r.bn: %u \"%s\", length: %u \"REMOVE_MARKER\"\n",
92 receiverBlockNo, getBlockName(receiverBlockNo,
""), signalLength);
93 fprintf(output,
"Signal data: ");
95 for(Uint32 j = 0; j < signalLength; j++)
96 fprintf(output,
"H\'%.8x ", theData[i++]);
100 case ZFIRE_TRIG_REQ: {
101 Uint32 signalLength = 3;
103 fprintf(output,
"--------------- Signal ----------------\n");
104 fprintf(output,
"r.bn: %u \"%s\", length: %u \"FIRE_TRIG_REQ\"\n",
105 receiverBlockNo, getBlockName(receiverBlockNo,
""), signalLength);
109 case ZFIRE_TRIG_CONF: {
110 Uint32 signalLength = 4;
112 fprintf(output,
"--------------- Signal ----------------\n");
113 fprintf(output,
"r.bn: %u \"%s\", length: %u \"FIRE_TRIG_CONF\"\n",
114 receiverBlockNo, getBlockName(receiverBlockNo,
""), signalLength);
119 fprintf(output,
"Unknown signal type\n");
124 fprintf(output,
"--------- End Packed Signals ----------\n");