FreeCalypso > hg > freecalypso-sw
changeset 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 | 6e1fcffd3266 |
children | 5f919af515f1 |
files | gsm-fw/L1/cfile/l1_cmplx.c gsm-fw/L1/cfile/tch_feature.c |
diffstat | 2 files changed, 30 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gsm-fw/L1/cfile/l1_cmplx.c Sun Mar 20 18:58:07 2016 +0000 +++ b/gsm-fw/L1/cfile/l1_cmplx.c Sun Mar 20 19:31:39 2016 +0000 @@ -234,6 +234,10 @@ UWORD8 input_level_flag, UWORD8 input_level, UWORD16 radio_freq, UWORD8 if_threshold); #endif +#if FEATURE_TCH_REROUTE +extern BOOL tch_reroute_downlink; +extern void tch_send_downlink_bits(API *dsp_buffer); +#endif //#pragma DUPLICATE_FOR_INTERNAL_RAM_END @@ -9367,6 +9371,11 @@ } #endif + #if FEATURE_TCH_REROUTE + if (tch_reroute_downlink) + tch_send_downlink_bits(l1s_dsp_com.dsp_ndb_ptr->a_dd_0); + #endif + if(channel_mode == TCH_24F_MODE) { #if IDS
--- a/gsm-fw/L1/cfile/tch_feature.c Sun Mar 20 18:58:07 2016 +0000 +++ b/gsm-fw/L1/cfile/tch_feature.c Sun Mar 20 19:31:39 2016 +0000 @@ -13,6 +13,27 @@ T_RVT_USER_ID tch_reroute_rvt_id; BOOL tch_reroute_downlink; +void tch_send_downlink_bits(API *dsp_buffer) +{ + T_RVT_BUFFER buf; + T_RVT_RET rc; + UINT8 *dp; + API apiword; + int i; + + rc = rvt_mem_alloc(tch_reroute_rvt_id, 41, &buf); + if (rc != RVT_OK) + return; + dp = buf; + *dp++ = TCH_DLBITS_IND; + for (i = 0; i < 20; i++) { + apiword = dsp_buffer[i]; + *dp++ = apiword; + *dp++ = apiword >> 8; + } + rvt_send_trace_no_cpy(buf, tch_reroute_rvt_id, 41, RVT_BINARY_FORMAT); +} + static void handle_tch_config_reg(T_RVT_BUFFER pkt) { UWORD8 config;