FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/L1/cfile/tch_feature.c @ 1007:3bfeee466b0a
gsm-fw feature tch-reroute: downlink sending implemented
| author | Mychaela Falconia <falcon@ivan.Harhan.ORG> |
|---|---|
| date | Sun, 20 Mar 2016 19:31:39 +0000 |
| parents | 908566db1538 |
| children | a6ca9ee289f7 |
comparison
equal
deleted
inserted
replaced
| 1006:6e1fcffd3266 | 1007:3bfeee466b0a |
|---|---|
| 10 #include "l1_trace.h" | 10 #include "l1_trace.h" |
| 11 #include "tch_feature.h" | 11 #include "tch_feature.h" |
| 12 | 12 |
| 13 T_RVT_USER_ID tch_reroute_rvt_id; | 13 T_RVT_USER_ID tch_reroute_rvt_id; |
| 14 BOOL tch_reroute_downlink; | 14 BOOL tch_reroute_downlink; |
| 15 | |
| 16 void tch_send_downlink_bits(API *dsp_buffer) | |
| 17 { | |
| 18 T_RVT_BUFFER buf; | |
| 19 T_RVT_RET rc; | |
| 20 UINT8 *dp; | |
| 21 API apiword; | |
| 22 int i; | |
| 23 | |
| 24 rc = rvt_mem_alloc(tch_reroute_rvt_id, 41, &buf); | |
| 25 if (rc != RVT_OK) | |
| 26 return; | |
| 27 dp = buf; | |
| 28 *dp++ = TCH_DLBITS_IND; | |
| 29 for (i = 0; i < 20; i++) { | |
| 30 apiword = dsp_buffer[i]; | |
| 31 *dp++ = apiword; | |
| 32 *dp++ = apiword >> 8; | |
| 33 } | |
| 34 rvt_send_trace_no_cpy(buf, tch_reroute_rvt_id, 41, RVT_BINARY_FORMAT); | |
| 35 } | |
| 15 | 36 |
| 16 static void handle_tch_config_reg(T_RVT_BUFFER pkt) | 37 static void handle_tch_config_reg(T_RVT_BUFFER pkt) |
| 17 { | 38 { |
| 18 UWORD8 config; | 39 UWORD8 config; |
| 19 T_RVT_BUFFER buf; | 40 T_RVT_BUFFER buf; |
