FreeCalypso > hg > ice1-trau-tester
comparison pcm-br/showbuf.c @ 35:499d065ee591
new program itt-pcm-br (PCM bridge)
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 28 Aug 2024 05:00:38 +0000 |
parents | pcm/record_ctrl.c@631f2db08538 |
children |
comparison
equal
deleted
inserted
replaced
34:f0b026615f3b | 35:499d065ee591 |
---|---|
1 /* | |
2 * Here we implement stdin commands that display current instantaneous | |
3 * state of each read channel. | |
4 */ | |
5 | |
6 #include <stdint.h> | |
7 #include <stdbool.h> | |
8 #include <stdio.h> | |
9 #include <stdlib.h> | |
10 | |
11 #include <osmocom/core/select.h> | |
12 | |
13 #include "globals.h" | |
14 | |
15 void cmd_show_a(int argc, char **argv) | |
16 { | |
17 int i, j, off; | |
18 | |
19 off = 0; | |
20 for (i = 0; i < 10; i++) { | |
21 for (j = 0; j < 16; j++) | |
22 printf(" %02X", readbuf_a[off++]); | |
23 putchar('\n'); | |
24 } | |
25 } | |
26 | |
27 void cmd_show_b(int argc, char **argv) | |
28 { | |
29 int i, j, off; | |
30 | |
31 off = 0; | |
32 for (i = 0; i < 10; i++) { | |
33 for (j = 0; j < 16; j++) | |
34 printf(" %02X", readbuf_b[off++]); | |
35 putchar('\n'); | |
36 } | |
37 } |