comparison src/aci2/aci/cmh_sat.h @ 3:93999a60b835

src/aci2, src/condat2: import of g23m/condat source pieces from TCS211
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 26 Sep 2016 00:29:36 +0000
parents
children
comparison
equal deleted inserted replaced
2:c41a534f33c6 3:93999a60b835
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_GPRS_INV_CAUSE 0
30 #ifdef FF_SAT_E
31 typedef enum
32 {
33 SAT_GPRS_ACT = 0,
34 SAT_GPRS_DEACT,
35 SAT_GPRS_ATT_FAILED,
36 SAT_GPRS_ACT_FAILED,
37 SAT_GPRS_SUSPEND,
38 SAT_GPRS_RESUME
39 } T_SAT_GPRS_CB_STAT;
40 #endif /* FF_SAT_E */
41 /*==== TYPES ======================================================*/
42 typedef struct
43 {
44 SHORT cId;
45 T_CLPTY_PRM clpty;
46 T_ussd_string ussd_str;
47 } T_SAT_PND_SETUP;
48
49 /*==== PROTOTYPES =================================================*/
50 EXTERN SHORT cmhSAT_STKCmdCnf ( void );
51 EXTERN SHORT cmhSAT_STKCmdInd ( void );
52 EXTERN SHORT cmhSAT_STKUsrNtfy ( void );
53 EXTERN SHORT cmhSAT_Cust1StkCmdInd ( void );
54 EXTERN void cmhCC_SatDTMFsent ( SHORT cId );
55 EXTERN T_ACI_RETURN cmhSAT_CalCntrlBySIM ( SHORT cId );
56 EXTERN T_ACI_RETURN cmhSAT_SSCntrlBySIM ( T_CLPTY_PRM *cldPty,
57 UBYTE own );
58 EXTERN T_ACI_RETURN cmhSAT_USSDCntrlBySIM ( T_sat_ussd *ussd,
59 UBYTE own );
60 EXTERN T_ACI_RETURN cmhSAT_DatDwnLdCB ( UBYTE* cbMsg, SHORT cbLen );
61 EXTERN T_ACI_RETURN cmhSAT_MoSmCntr ( T_rp_addr sc_addr,
62 T_tp_da dest_addr,
63 UBYTE owner);
64 EXTERN void cmhCC_SatDTMFsent ( SHORT cId );
65 EXTERN T_ACI_RETURN cmhSAT_EventDwn ( UBYTE event, SHORT callId,
66 T_CC_INITIATER actionSrc );
67 EXTERN BOOL cmhSAT_ResCalCntrlBySIM( UBYTE* resId, void *ccRes );
68 EXTERN BOOL cmhSAT_ResSSCntrlBySIM ( UBYTE* resId, void *ccRes );
69 EXTERN BOOL cmhSAT_ResUSSDCntrlBySIM ( UBYTE* resId, void *ccRes );
70 EXTERN BOOL cmhSAT_ResSMCntrlBySIM ( UBYTE* resId, void *ccRes );
71 /* ACI-SPR-18200: added aci_events_only parameter */
72 EXTERN BOOL cmhSAT_setupEvent_Test ( T_SETUP_EVENT *set_event,
73 BOOL *aci_events_only );
74 /* ACI-SPR-18200: Function to copy unproc events to MMI */
75 EXTERN BOOL cmhSAT_copyUnprocEvents ( UBYTE* eventList,
76 UBYTE eventListLen,
77 UBYTE oldEventListLen);
78 EXTERN void cmhSAT_setupEvent_Perform ( void );
79 EXTERN BOOL cmhSAT_setupCall ( T_SETUP_CALL * cal );
80 EXTERN BOOL cmhSAT_sendSS ( T_SEND_SS * ss );
81 EXTERN BOOL cmhSAT_sendUSSD ( T_SEND_USSD * ussd );
82 EXTERN BOOL cmhSAT_sendDTMF ( T_SEND_DTMF *dtmf );
83 EXTERN BOOL cmhSAT_sendSM ( T_SEND_SM * sm );
84 EXTERN BOOL cmhSAT_runAt ( T_RUN_AT *run_at);
85 EXTERN BOOL cmhSAT_launchBrowser ( T_LAUNCH_BROWSER* launchBrowser );
86 EXTERN BOOL cmhSAT_provLocalInfo ( void );
87 EXTERN void cmhSAT_UserRejCall ( UBYTE calStat );
88 EXTERN void cmhSAT_CallCncted ( void );
89 EXTERN UBYTE cmhSAT_NtwErr ( UBYTE cs );
90 EXTERN void cmhSAT_UserClear ( void );
91 EXTERN BOOL cmhSAT_ChckCmdDet ( void );
92 EXTERN LONG cmhSAT_ChckRedial ( SHORT cId,
93 UBYTE v_dur,
94 T_dur * dur );
95 EXTERN BOOL cmhSAT_UserAcptCall ( SHORT acptId, UBYTE srcId );
96 EXTERN BOOL cmhSAT_StartPendingCall( void );
97 EXTERN void cmhSAT_fillSetupPrm ( SHORT cId,
98 T_addr* adr,
99 T_subaddr *sub );
100 EXTERN void cmhSAT_fillSetupBC ( SHORT cId,
101 UBYTE bearer_serv_1,
102 UBYTE bearer_serv_2 );
103 /* EXTERN void cmhSAT_chkDTMF ( SHORT cId, T_addr* adr ); */
104 EXTERN void cmhSAT_ResCapCode ( USHORT cause, T_bcconf* bc );
105 EXTERN void cmhSAT_ResCapDecode ( USHORT cause, T_bcpara* bc );
106 EXTERN BOOL cmhSAT_SetupCalAfterCCRes ( UBYTE ownNotSAT,
107 SHORT cId,
108 UBYTE CCres);
109 EXTERN BOOL cmhSAT_CheckSetEventResp ( void );
110
111 #ifdef FF_SAT_E
112 EXTERN BOOL cmhSAT_CloseChannel ( void );
113 EXTERN BOOL cmhSAT_SendData ( void );
114 EXTERN BOOL cmhSAT_GetChannelStatus ( void );
115 EXTERN BOOL cmhSAT_OpenChannelReq ( T_OPEN_CHANNEL *opchCmd );
116 EXTERN void cmhSAT_storeCSDPrms ( T_OPEN_CHANNEL *opchCmd );
117 EXTERN void cmhSAT_storeGPRSPrms ( T_OPEN_CHANNEL *opchCmd );
118 EXTERN void cmhSAT_cleanupOpChnPrms ( void );
119 EXTERN void cmhSAT_OpChnResetCnctFlag( void );
120 EXTERN void cmhSAT_OpChnFailed ( UBYTE cause,
121 T_ACI_SAT_TERM_RESP *resp_data );
122 EXTERN void cmhSAT_OpChnAlert ( SHORT cId );
123 EXTERN BOOL cmhSAT_OpChnChkTmpProblem( void );
124 EXTERN void cmhSAT_OpChnUDPActiveCsd (T_ACI_RETURN result);
125 EXTERN void cmhSAT_OpChnUDPConfCsd (T_ACI_RETURN result);
126 EXTERN void cmhSAT_OpChnUDPDeactCsd (T_ACI_RETURN result);
127
128 EXTERN void cmhSAT_OpBIPChnOpen (UBYTE bipConn, UBYTE chnId);
129 EXTERN void cmhSAT_OpChnCnct (UBYTE dtiConn, UBYTE chnId);
130 EXTERN void cmhSAT_OpChnClose (UBYTE bipConn, UBYTE chnId);
131 EXTERN void cmhSAT_OpChnCSDDown (SHORT cId, UBYTE tpl );
132 #ifdef GPRS
133 EXTERN void cmhSAT_OpChnGPRSDeact ( void );
134 #endif /* GPRS */
135 EXTERN BOOL cmhSAT_OpChnChckCSD (UBYTE tpl);
136 EXTERN void cmhSAT_OpChnSIMFail (UBYTE dtiConn, UBYTE bipConn, UBYTE chnId);
137 EXTERN void cmhSAT_OpChnSIMCnctReq (UBYTE unit);
138 EXTERN void cmhSAT_OpChnChckBear (void);
139 #ifdef DTI
140 EXTERN void cmhSAT_OpChnSetPPP (UBYTE chnType);
141 EXTERN void cmhSAT_OpChnUDPActivateGprs( void );
142 #endif
143 EXTERN void cmhSAT_OpChnStatEvnt ( void );
144 EXTERN BOOL cmhSAT_OpChnGPRSPend ( SHORT cid, UBYTE opchStat );
145 EXTERN void cmhSAT_OpChnGPRSStat (T_SAT_GPRS_CB_STAT stat, UBYTE cause);
146 EXTERN void cmhSAT_OpChnUDPConfGprs (void);
147 EXTERN void cmhSAT_OpChnUDPDeactGprs (void);
148 EXTERN void cmhSAT_UserRejCntxt ( void );
149 EXTERN BOOL cmhSAT_UserAcptCntxt ( UBYTE srcId );
150 EXTERN void cmhSAT_cnvrtAPN2NetworkAdr( UBYTE *apn, UBYTE c_apn, UBYTE *dom_name );
151 #endif /* SAT E */
152
153 EXTERN void cmhSAT_CBMDestroyList ( void );
154
155 /*==== EXPORT =====================================================*/
156 #ifdef CMH_SATF_C
157
158 GLOBAL T_ENT_STAT satEntStat;
159 GLOBAL T_SAT_PND_SETUP satPndSetup;
160 /* GLOBAL T_CC_DTMF_PRM satDtmfBuf; */
161
162 GLOBAL T_MNSMS_SUBMIT_REQ *sat_mnsms_submit_req;
163
164 #else
165
166 EXTERN T_ENT_STAT satEntStat;
167 EXTERN T_SAT_PND_SETUP satPndSetup;
168 /* EXTERN T_CC_DTMF_PRM satDtmfBuf; */
169
170 EXTERN T_MNSMS_SUBMIT_REQ *sat_mnsms_submit_req;
171
172 #endif /* CMH_SATF_C */
173
174 #endif /* CMH_SAT_H */
175
176 #endif /* #ifdef SIM_TOOLKIT */
177
178 /*==== EOF =======================================================*/