FreeCalypso > hg > freecalypso-sw
comparison rvinterf/lowlevel/format_fc.c @ 1010:658fe6f1880f
rvinterf/lowlevel: handle TCH packet type in rvinterf and rvtdump
author | Mychaela Falconia <falcon@ivan.Harhan.ORG> |
---|---|
date | Sun, 20 Mar 2016 20:35:17 +0000 |
parents | 009d5bf2ff4c |
children |
comparison
equal
deleted
inserted
replaced
1009:009d5bf2ff4c | 1010:658fe6f1880f |
---|---|
72 *dp = '\0'; | 72 *dp = '\0'; |
73 output_line(fmtbuf); | 73 output_line(fmtbuf); |
74 } | 74 } |
75 | 75 |
76 void | 76 void |
77 print_tch_output_raw() | |
78 { | |
79 int i; | |
80 char *dp; | |
81 | |
82 dp = fmtbuf; | |
83 strcpy(dp, "TCH:"); | |
84 dp += 4; | |
85 for (i = 1; i < rxpkt_len; i++) { | |
86 sprintf(dp, " %02X", rxpkt[i]); | |
87 dp += 3; | |
88 } | |
89 *dp = '\0'; | |
90 output_line(fmtbuf); | |
91 } | |
92 | |
93 void | |
77 report_extui_packet() | 94 report_extui_packet() |
78 { | 95 { |
79 sprintf(fmtbuf, "LCD OUT: row %u col %u-%u", rxpkt[1], rxpkt[2], | 96 sprintf(fmtbuf, "LCD OUT: row %u col %u-%u", rxpkt[1], rxpkt[2], |
80 rxpkt[2] + (rxpkt_len - 3) / 2 - 1); | 97 rxpkt[2] + (rxpkt_len - 3) / 2 - 1); |
81 output_line(fmtbuf); | 98 output_line(fmtbuf); |