comparison rvinterf/lowlevel/format.c @ 175:2f214bd03119

rvtdump: heuristic decoding of G23 traces implemented, works with Pirelli's trace output
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Fri, 22 Nov 2013 20:16:00 +0000
parents 3256dc6e84ae
children 2f285f20d617
comparison
equal deleted inserted replaced
174:3256dc6e84ae 175:2f214bd03119
94 *dp = '\0'; 94 *dp = '\0';
95 output_line(buf); 95 output_line(buf);
96 } 96 }
97 97
98 void 98 void
99 print_g23_trace()
100 {
101 char buf[MAX_PKT_FROM_TARGET*3+2];
102 int i;
103 char *dp;
104
105 dp = buf;
106 strcpy(dp, "G23:");
107 dp += 4;
108 for (i = 1; i < rxpkt_len; i++) {
109 sprintf(dp, " %02X", rxpkt[i]);
110 dp += 3;
111 }
112 *dp = '\0';
113 output_line(buf);
114 }
115
116 void
117 print_etm_output_raw() 99 print_etm_output_raw()
118 { 100 {
119 char buf[MAX_PKT_FROM_TARGET*3+2]; 101 char buf[MAX_PKT_FROM_TARGET*3+2];
120 int i; 102 int i;
121 char *dp; 103 char *dp;