FreeCalypso > hg > ice1-trau-tester
comparison ater/read_ts.c @ 16:4ffe22f5b4b5
ater: initial osmo_i460 framework
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 24 Jun 2024 07:19:38 +0000 |
parents | 98ae717734d6 |
children | 61862af2247f |
comparison
equal
deleted
inserted
replaced
15:98ae717734d6 | 16:4ffe22f5b4b5 |
---|---|
8 #include <stdio.h> | 8 #include <stdio.h> |
9 #include <stdlib.h> | 9 #include <stdlib.h> |
10 #include <unistd.h> | 10 #include <unistd.h> |
11 | 11 |
12 #include <osmocom/core/select.h> | 12 #include <osmocom/core/select.h> |
13 #include <osmocom/isdn/i460_mux.h> | |
13 | 14 |
14 #include "globals.h" | 15 #include "globals.h" |
15 | 16 |
16 uint8_t readbuf[160]; | 17 uint8_t readbuf[160]; |
17 FILE *record_file; | 18 FILE *record_file; |
27 rc); | 28 rc); |
28 exit(1); | 29 exit(1); |
29 } | 30 } |
30 if (record_file) | 31 if (record_file) |
31 fwrite(readbuf, 1, 160, record_file); | 32 fwrite(readbuf, 1, 160, record_file); |
33 osmo_i460_demux_in(&i460_ts, readbuf, 160); | |
32 /* transmit_e1_ts(); */ | 34 /* transmit_e1_ts(); */ |
33 return 0; | 35 return 0; |
34 } | 36 } |