FreeCalypso > hg > ice1-trau-tester
comparison ater/tx_func.c @ 18:61862af2247f
ater: E1 timeslot output (osmo_i460 mux)
| author | Mychaela Falconia <falcon@freecalypso.org> | 
|---|---|
| date | Mon, 24 Jun 2024 07:26:20 +0000 | 
| parents | |
| children | 1e375472d5a5 | 
   comparison
  equal
  deleted
  inserted
  replaced
| 17:42373f9992cc | 18:61862af2247f | 
|---|---|
| 1 /* | |
| 2 * Here we are going to implement Tx on Ater toward the TRAU. | |
| 3 */ | |
| 4 | |
| 5 #include <stdint.h> | |
| 6 #include <stdbool.h> | |
| 7 #include <stdio.h> | |
| 8 #include <stdlib.h> | |
| 9 #include <string.h> | |
| 10 #include <unistd.h> | |
| 11 | |
| 12 #include <osmocom/core/select.h> | |
| 13 #include <osmocom/isdn/i460_mux.h> | |
| 14 | |
| 15 #include "globals.h" | |
| 16 #include "submux.h" | |
| 17 | |
| 18 void transmit_e1_ts(void) | |
| 19 { | |
| 20 uint8_t buf[160]; | |
| 21 | |
| 22 osmo_i460_mux_out(&i460_ts, buf, 160); | |
| 23 write(ts_fd, buf, 160); | |
| 24 } | 
