comparison gsm-fw/g23m-aci/aci/cmh_rar.c @ 775:eedbf248bac0

gsm-fw/g23m-aci subtree: initial import from LoCosto source
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 12 Oct 2014 01:45:14 +0000
parents
children
comparison
equal deleted inserted replaced
774:40a721fd9854 775:eedbf248bac0
1 /*
2 +-----------------------------------------------------------------------------
3 | Project : GSM-PS (6147)
4 | Modul : CMH_RAR
5 +-----------------------------------------------------------------------------
6 | Copyright 2002 Texas Instruments Berlin, AG
7 | All rights reserved.
8 |
9 | This file is confidential and a trade secret of Texas
10 | Instruments Berlin, AG
11 | The receipt of or possession of this file does not convey
12 | any rights to reproduce or disclose its contents or to
13 | manufacture, use, or sell anything it may describe, in
14 | whole, or in part, without the specific written consent of
15 | Texas Instruments Berlin, AG.
16 +-----------------------------------------------------------------------------
17 | Purpose : This module defines the functions which are responsible
18 | for the responses of the protocol stack adapter for
19 | rate adaptation.
20 +-----------------------------------------------------------------------------
21 */
22
23 #ifdef DTI
24
25 #ifndef CMH_RAR_C
26 #define CMH_RAR_C
27 #endif
28
29 #include "aci_all.h"
30 /*==== INCLUDES ===================================================*/
31 #include "aci_cmh.h"
32 #include "ati_cmd.h"
33 #include "aci_cmd.h"
34
35 #ifdef FAX_AND_DATA
36 #include "aci_fd.h"
37 #endif
38
39 #include "aci.h"
40 #include "psa.h"
41 #include "aci_io.h"
42 #include "psa_ra.h"
43 #include "psa_cc.h"
44 #include "cmh.h"
45 #include "cmh_ra.h"
46 #include "cmh_cc.h"
47
48 /*==== CONSTANTS ==================================================*/
49
50
51 /*==== TYPES ======================================================*/
52
53
54 /*==== EXPORT =====================================================*/
55
56
57 /*==== VARIABLES ==================================================*/
58
59 /*==== FUNCTIONS ==================================================*/
60
61 /*
62 +-------------------------------------------------------------------+
63 | PROJECT : GSM-PS (6147) MODULE : CMH_RAR |
64 | ROUTINE : cmhRA_Activated |
65 +-------------------------------------------------------------------+
66
67 PURPOSE : RA entity activated, connection established
68
69 */
70
71 GLOBAL void cmhRA_Activated ( SHORT cId )
72 {
73 TRACE_FUNCTION ("cmhRA_Activated()");
74
75 /* inform call control about successful operation */
76 cmhCC_RA_Activated(cId);
77
78 raEntStat.curCmd = AT_CMD_NONE;
79 }
80
81 /*
82 +-------------------------------------------------------------------+
83 | PROJECT : GSM-PS (6147) MODULE : CMH_RAR |
84 | ROUTINE : cmhRA_Deactivated |
85 +-------------------------------------------------------------------+
86
87 PURPOSE : RA entity deactivated, connection disconnected
88
89 */
90
91 GLOBAL void cmhRA_Deactivated ( SHORT cId )
92 {
93 TRACE_FUNCTION ("cmhRA_Deactivated()");
94
95 /* inform call control about disconnection */
96 cmhCC_RA_Deactivated(cId);
97
98 /* reset parameters only if data connection should be disconnected */
99 if( ccShrdPrm.datStat NEQ DS_TCH_MDF )
100 {
101 raShrdPrm.cId = NO_ENTRY;
102 raEntStat.curCmd = AT_CMD_NONE;
103 }
104 }
105
106 #endif /* DTI */
107
108 /*==== EOF ========================================================*/
109