FreeCalypso > hg > fc-tourmaline
comparison src/g23m-aci/aci/cmh_sat.h @ 1:fa8dc04885d8
src/g23m-*: import from Magnetite
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 16 Oct 2020 06:25:50 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:4e78acac3d88 | 1:fa8dc04885d8 |
---|---|
1 /* | |
2 +----------------------------------------------------------------------------- | |
3 | Project : GSM-PS (6147) | |
4 | Modul : CMH | |
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 : Definitions for the command handler of the | |
18 | SIM application toolkit ( SAT ) | |
19 +----------------------------------------------------------------------------- | |
20 */ | |
21 | |
22 #ifdef SIM_TOOLKIT | |
23 | |
24 #ifndef CMH_SAT_H | |
25 #define CMH_SAT_H | |
26 | |
27 /*==== CONSTANTS ==================================================*/ | |
28 #define SAT_REDIAL (0x80) /* flag SAT redial condition */ | |
29 #define SAT_REDIAL_ECCBE (0x40) /* Flag "Envelope Call Control | |
30 * Always Sent To SIM" | |
31 * bit enabled Condition | |
32 */ | |
33 | |
34 #define SAT_GPRS_INV_CAUSE 0 | |
35 #ifdef FF_SAT_E | |
36 typedef enum | |
37 { | |
38 SAT_GPRS_ACT = 0, | |
39 SAT_GPRS_DEACT, | |
40 SAT_GPRS_ATT_FAILED, | |
41 SAT_GPRS_ACT_FAILED, | |
42 SAT_GPRS_SUSPEND, | |
43 SAT_GPRS_RESUME | |
44 } T_SAT_GPRS_CB_STAT; | |
45 #endif /* FF_SAT_E */ | |
46 /*==== TYPES ======================================================*/ | |
47 typedef struct | |
48 { | |
49 SHORT cId; | |
50 T_CLPTY_PRM clpty; | |
51 T_ussd_string ussd_str; | |
52 } T_SAT_PND_SETUP; | |
53 | |
54 typedef struct | |
55 { | |
56 T_addr addr; | |
57 T_subaddr sub_addr; | |
58 BUF_cap_cnf_parms ccp;/* Capability configuration params added to redial structure */ | |
59 } T_RDL_CC_ENV; | |
60 | |
61 /*==== PROTOTYPES =================================================*/ | |
62 EXTERN SHORT cmhSAT_STKCmdCnf ( void ); | |
63 EXTERN SHORT cmhSAT_STKCmdInd ( void ); | |
64 EXTERN SHORT cmhSAT_STKUsrNtfy ( void ); | |
65 #ifdef TI_PS_FF_AT_P_CMD_CUST | |
66 EXTERN SHORT cmhSAT_Cust1StkCmdInd ( void ); | |
67 #endif /* TI_PS_FF_AT_P_CMD_CUST */ | |
68 EXTERN void cmhCC_SatDTMFsent ( SHORT cId ); | |
69 EXTERN T_ACI_RETURN cmhSAT_CalCntrlBySIM ( SHORT cId ); | |
70 EXTERN T_ACI_RETURN cmhSAT_SSCntrlBySIM ( T_CLPTY_PRM *cldPty, | |
71 UBYTE own ); | |
72 EXTERN T_ACI_RETURN cmhSAT_USSDCntrlBySIM ( T_sat_ussd *ussd, | |
73 UBYTE own ); | |
74 EXTERN T_ACI_RETURN cmhSAT_DatDwnLdCB ( UBYTE* cbMsg, SHORT cbLen ); | |
75 EXTERN T_ACI_RETURN cmhSAT_MoSmCntr ( T_rp_addr sc_addr, | |
76 T_tp_da dest_addr, | |
77 UBYTE owner); | |
78 EXTERN void cmhCC_SatDTMFsent ( SHORT cId ); | |
79 EXTERN T_ACI_RETURN cmhSAT_EventDwn ( UBYTE event, SHORT callId, | |
80 T_CC_INITIATER actionSrc ); | |
81 EXTERN BOOL cmhSAT_ResCalCntrlBySIM( UBYTE* resId, void *ccRes ); | |
82 EXTERN BOOL cmhSAT_ResSSCntrlBySIM ( UBYTE* resId, void *ccRes ); | |
83 EXTERN BOOL cmhSAT_ResUSSDCntrlBySIM ( UBYTE* resId, void *ccRes ); | |
84 EXTERN BOOL cmhSAT_ResSMCntrlBySIM ( UBYTE* resId, void *ccRes ); | |
85 /* ACI-SPR-18200: added aci_events_only parameter */ | |
86 EXTERN BOOL cmhSAT_setupEvent_Test ( T_SETUP_EVENT *set_event, | |
87 BOOL *aci_events_only ); | |
88 /* ACI-SPR-18200: Function to copy unproc events to MMI */ | |
89 EXTERN BOOL cmhSAT_copyUnprocEvents ( UBYTE* eventList, | |
90 UBYTE eventListLen, | |
91 UBYTE oldEventListLen); | |
92 EXTERN void cmhSAT_setupEvent_Perform ( void ); | |
93 EXTERN BOOL cmhSAT_setupCall ( T_SETUP_CALL * cal ); | |
94 EXTERN BOOL cmhSAT_sendSS ( T_SEND_SS * ss ); | |
95 EXTERN BOOL cmhSAT_sendUSSD ( T_SEND_USSD * ussd ); | |
96 EXTERN BOOL cmhSAT_sendDTMF ( T_SEND_DTMF *dtmf ); | |
97 EXTERN BOOL cmhSAT_sendSM ( T_SEND_SM * sm ); | |
98 EXTERN BOOL cmhSAT_runAt ( T_RUN_AT *run_at); | |
99 EXTERN BOOL cmhSAT_launchBrowser ( T_LAUNCH_BROWSER* launchBrowser ); | |
100 EXTERN BOOL cmhSAT_provLocalInfo ( void ); | |
101 EXTERN void cmhSAT_UserRejCall ( UBYTE calStat ); | |
102 EXTERN void cmhSAT_CallCncted ( void ); | |
103 EXTERN UBYTE cmhSAT_NtwErr ( UBYTE cs ); | |
104 EXTERN void cmhSAT_UserClear ( void ); | |
105 EXTERN BOOL cmhSAT_ChckCmdDet ( void ); | |
106 EXTERN LONG cmhSAT_ChckRedial ( SHORT cId, | |
107 UBYTE v_dur, | |
108 T_dur * dur ); | |
109 EXTERN BOOL cmhSAT_UserAcptCall ( SHORT acptId, UBYTE srcId ); | |
110 EXTERN BOOL cmhSAT_StartPendingCall( void ); | |
111 EXTERN void cmhSAT_fillSetupPrm ( SHORT cId, | |
112 T_addr* adr, | |
113 T_subaddr *sub ); | |
114 EXTERN void cmhSAT_fillSetupBC ( SHORT cId, | |
115 UBYTE bearer_serv_1, | |
116 UBYTE bearer_serv_2 ); | |
117 /* EXTERN void cmhSAT_chkDTMF ( SHORT cId, T_addr* adr ); */ | |
118 EXTERN void cmhSAT_ResCapCode ( USHORT cause, | |
119 T_MNCC_bcconf* bc1, | |
120 T_MNCC_bcconf2* bc2 ); | |
121 EXTERN void cmhSAT_ResCapDecode ( USHORT cause, | |
122 T_MNCC_bcpara* bc1, | |
123 T_MNCC_bcpara* bc2); | |
124 EXTERN BOOL cmhSAT_SetupCalAfterCCRes ( UBYTE ownNotSAT, | |
125 SHORT cId, | |
126 UBYTE CCres); | |
127 EXTERN BOOL cmhSAT_CheckSetEventResp ( void ); | |
128 | |
129 #ifdef FF_SAT_E | |
130 EXTERN BOOL cmhSAT_CloseChannel ( void ); | |
131 EXTERN BOOL cmhSAT_SendData ( void ); | |
132 EXTERN BOOL cmhSAT_GetChannelStatus ( void ); | |
133 EXTERN BOOL cmhSAT_OpenChannelReq ( T_OPEN_CHANNEL *opchCmd ); | |
134 EXTERN void cmhSAT_storeCSDPrms ( T_OPEN_CHANNEL *opchCmd ); | |
135 EXTERN void cmhSAT_storeGPRSPrms ( T_OPEN_CHANNEL *opchCmd ); | |
136 EXTERN void cmhSAT_cleanupOpChnPrms ( void ); | |
137 EXTERN void cmhSAT_OpChnResetCnctFlag( void ); | |
138 EXTERN void cmhSAT_OpChnFailed ( UBYTE cause, | |
139 T_ACI_SAT_TERM_RESP *resp_data ); | |
140 EXTERN void cmhSAT_OpChnAlert ( SHORT cId ); | |
141 EXTERN BOOL cmhSAT_OpChnChkTmpProblem( void ); | |
142 EXTERN void cmhSAT_OpChnUDPActiveCsd (T_ACI_RETURN result); | |
143 EXTERN void cmhSAT_OpChnUDPConfCsd (T_ACI_RETURN result); | |
144 EXTERN void cmhSAT_OpChnUDPDeactCsd (T_ACI_RETURN result); | |
145 | |
146 EXTERN void cmhSAT_OpBIPChnOpen (UBYTE bipConn, UBYTE chnId); | |
147 EXTERN void cmhSAT_OpChnCnct (UBYTE dtiConn, UBYTE chnId); | |
148 EXTERN void cmhSAT_OpChnClose (UBYTE bipConn, UBYTE chnId); | |
149 EXTERN void cmhSAT_OpChnCSDDown (SHORT cId, UBYTE tpl ); | |
150 #ifdef GPRS | |
151 EXTERN void cmhSAT_OpChnGPRSDeact ( void ); | |
152 #endif /* GPRS */ | |
153 EXTERN BOOL cmhSAT_OpChnChckCSD (UBYTE tpl); | |
154 EXTERN void cmhSAT_OpChnSIMFail (UBYTE dtiConn, UBYTE bipConn, UBYTE chnId); | |
155 EXTERN void cmhSAT_OpChnSIMCnctReq (UBYTE unit); | |
156 EXTERN void cmhSAT_OpChnChckBear (void); | |
157 #ifdef DTI | |
158 EXTERN void cmhSAT_OpChnSetPPP (UBYTE chnType); | |
159 EXTERN void cmhSAT_OpChnUDPActivateGprs( void ); | |
160 #endif | |
161 EXTERN void cmhSAT_OpChnStatEvnt ( void ); | |
162 EXTERN BOOL cmhSAT_OpChnGPRSPend ( SHORT cid, UBYTE opchStat ); | |
163 EXTERN void cmhSAT_OpChnGPRSStat (T_SAT_GPRS_CB_STAT stat, UBYTE cause); | |
164 EXTERN void cmhSAT_OpChnUDPConfGprs (void); | |
165 EXTERN void cmhSAT_OpChnUDPDeactGprs (void); | |
166 EXTERN void cmhSAT_UserRejCntxt ( void ); | |
167 EXTERN BOOL cmhSAT_UserAcptCntxt ( UBYTE srcId ); | |
168 EXTERN void cmhSAT_cnvrtAPN2NetworkAdr( UBYTE *apn, UBYTE c_apn, UBYTE *dom_name ); | |
169 #endif /* SAT E */ | |
170 | |
171 EXTERN void cmhSAT_CBMDestroyList ( void ); | |
172 | |
173 /*==== EXPORT =====================================================*/ | |
174 #ifdef CMH_SATF_C | |
175 | |
176 GLOBAL T_ENT_STAT satEntStat; | |
177 GLOBAL T_SAT_PND_SETUP satPndSetup; | |
178 /* GLOBAL T_CC_DTMF_PRM satDtmfBuf; */ | |
179 GLOBAL T_RDL_CC_ENV satRdlCCEnv; /* Used to store the CC Envelope when Envelope call | |
180 control bit is enabled. */ | |
181 GLOBAL T_MNSMS_SUBMIT_REQ *sat_mnsms_submit_req; | |
182 | |
183 #else | |
184 | |
185 EXTERN T_ENT_STAT satEntStat; | |
186 EXTERN T_SAT_PND_SETUP satPndSetup; | |
187 /* EXTERN T_CC_DTMF_PRM satDtmfBuf; */ | |
188 EXTERN T_RDL_CC_ENV satRdlCCEnv; | |
189 | |
190 EXTERN T_MNSMS_SUBMIT_REQ *sat_mnsms_submit_req; | |
191 | |
192 #endif /* CMH_SATF_C */ | |
193 | |
194 #endif /* CMH_SAT_H */ | |
195 | |
196 #endif /* #ifdef SIM_TOOLKIT */ | |
197 | |
198 /*==== EOF =======================================================*/ |