FreeCalypso > hg > freecalypso-sw
annotate gsm-fw/L1/cfile/tch_feature.c @ 1003:9b147d0b2cab
gsm-fw feature tch-reroute: started laying the foundation
| author | Mychaela Falconia <falcon@ivan.Harhan.ORG> |
|---|---|
| date | Fri, 18 Mar 2016 16:37:28 +0000 |
| parents | |
| children | 908566db1538 |
| rev | line source |
|---|---|
|
1003
9b147d0b2cab
gsm-fw feature tch-reroute: started laying the foundation
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
1 /* |
|
9b147d0b2cab
gsm-fw feature tch-reroute: started laying the foundation
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
2 * This module is a FreeCalypso addition; it contains code implementing |
|
9b147d0b2cab
gsm-fw feature tch-reroute: started laying the foundation
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
3 * our custom voice TCH rerouting feature. |
|
9b147d0b2cab
gsm-fw feature tch-reroute: started laying the foundation
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
4 */ |
|
9b147d0b2cab
gsm-fw feature tch-reroute: started laying the foundation
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
5 |
|
9b147d0b2cab
gsm-fw feature tch-reroute: started laying the foundation
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
6 #include "config.h" |
|
9b147d0b2cab
gsm-fw feature tch-reroute: started laying the foundation
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
7 #include "l1_confg.h" |
|
9b147d0b2cab
gsm-fw feature tch-reroute: started laying the foundation
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
8 #include "l1_types.h" |
|
9b147d0b2cab
gsm-fw feature tch-reroute: started laying the foundation
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
9 #include "sys_types.h" |
|
9b147d0b2cab
gsm-fw feature tch-reroute: started laying the foundation
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
10 #include "l1_trace.h" |
|
9b147d0b2cab
gsm-fw feature tch-reroute: started laying the foundation
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
11 #include "tch_feature.h" |
|
9b147d0b2cab
gsm-fw feature tch-reroute: started laying the foundation
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
12 |
|
9b147d0b2cab
gsm-fw feature tch-reroute: started laying the foundation
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
13 T_RVT_USER_ID tch_reroute_rvt_id; |
|
9b147d0b2cab
gsm-fw feature tch-reroute: started laying the foundation
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
14 BOOL tch_reroute_downlink; |
|
9b147d0b2cab
gsm-fw feature tch-reroute: started laying the foundation
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
15 |
|
9b147d0b2cab
gsm-fw feature tch-reroute: started laying the foundation
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
16 /* |
|
9b147d0b2cab
gsm-fw feature tch-reroute: started laying the foundation
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
17 * The following function is the callback registered with RVT; it gets |
|
9b147d0b2cab
gsm-fw feature tch-reroute: started laying the foundation
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
18 * called in RVT HISR context. |
|
9b147d0b2cab
gsm-fw feature tch-reroute: started laying the foundation
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
19 */ |
|
9b147d0b2cab
gsm-fw feature tch-reroute: started laying the foundation
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
20 static void tch_rvt_input_callback(T_RVT_BUFFER pkt, UINT16 pktlen) |
|
9b147d0b2cab
gsm-fw feature tch-reroute: started laying the foundation
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
21 { |
|
9b147d0b2cab
gsm-fw feature tch-reroute: started laying the foundation
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
22 /* guts to be filled */ |
|
9b147d0b2cab
gsm-fw feature tch-reroute: started laying the foundation
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
23 } |
|
9b147d0b2cab
gsm-fw feature tch-reroute: started laying the foundation
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
24 |
|
9b147d0b2cab
gsm-fw feature tch-reroute: started laying the foundation
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
25 void feature_tch_reroute_init() |
|
9b147d0b2cab
gsm-fw feature tch-reroute: started laying the foundation
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
26 { |
|
9b147d0b2cab
gsm-fw feature tch-reroute: started laying the foundation
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
27 rvt_register_id("TCH", &tch_reroute_rvt_id, tch_rvt_input_callback); |
|
9b147d0b2cab
gsm-fw feature tch-reroute: started laying the foundation
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
28 tch_reroute_downlink = FALSE; |
|
9b147d0b2cab
gsm-fw feature tch-reroute: started laying the foundation
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
29 } |
