FreeCalypso > hg > tcs211-l1-reconst
comparison g23m/condat/ms/src/aci/psa_smss.c @ 0:509db1a7b7b8
initial import: leo2moko-r1
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Mon, 01 Jun 2015 03:24:05 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:509db1a7b7b8 |
---|---|
1 /* | |
2 +----------------------------------------------------------------------------- | |
3 | Project : GSM-PS (6147) | |
4 | Modul : PSA_SMSS | |
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 signalling functions of the | |
18 | protocol stack adapter for the short message service SMS. | |
19 +----------------------------------------------------------------------------- | |
20 */ | |
21 | |
22 #ifndef PSA_SMSS_C | |
23 #define PSA_SMSS_C | |
24 #endif | |
25 | |
26 #include "aci_all.h" | |
27 | |
28 /*==== INCLUDES ===================================================*/ | |
29 #include "aci_cmh.h" | |
30 #include "ati_cmd.h" | |
31 #include "aci_cmd.h" | |
32 #include "aci.h" | |
33 #include "psa.h" | |
34 #include "psa_sms.h" | |
35 #include "cmh_sms.h" | |
36 /*==== CONSTANTS ==================================================*/ | |
37 | |
38 /*==== TYPES ======================================================*/ | |
39 | |
40 | |
41 /*==== EXPORT =====================================================*/ | |
42 | |
43 | |
44 /*==== VARIABLES ==================================================*/ | |
45 | |
46 /*==== FUNCTIONS ==================================================*/ | |
47 | |
48 GLOBAL SHORT psaSMS_ReadReq ( UBYTE mem_type, USHORT rec_num, | |
49 UBYTE read_mode, T_ACI_SMS_STAT cmh_state ) | |
50 { | |
51 UBYTE psa_state; | |
52 | |
53 TRACE_FUNCTION ("psaSMS_ReadReq()"); | |
54 | |
55 /* | |
56 *------------------------------------------------------------------- | |
57 * create and send primitive for SMS read | |
58 *------------------------------------------------------------------- | |
59 */ | |
60 { | |
61 PALLOC (mnsms_read_req, MNSMS_READ_REQ); | |
62 | |
63 mnsms_read_req -> mem_type = mem_type; | |
64 mnsms_read_req -> rec_num = (UBYTE)rec_num; | |
65 mnsms_read_req -> read_mode = read_mode; | |
66 if (cmhSMS_getStatPsa(cmh_state, &psa_state)) | |
67 mnsms_read_req -> status = psa_state; | |
68 else | |
69 mnsms_read_req -> status = NOT_PRESENT_8BIT; | |
70 | |
71 PSENDX (SMS, mnsms_read_req); | |
72 } | |
73 | |
74 return 0; | |
75 } | |
76 | |
77 /* | |
78 +-------------------------------------------------------------------+ | |
79 | PROJECT : GSM-PS (6147) MODULE : PSA_SMSS | | |
80 | ROUTINE : psaSMS_PauseReq | | |
81 +-------------------------------------------------------------------+ | |
82 | |
83 ACI-ENH-19450: Added for %CPRMS command (MDF-07.04.2004) | |
84 | |
85 PURPOSE : build and send MNSMS_PAUSE_REQ to SMS | |
86 | |
87 */ | |
88 | |
89 GLOBAL void psaSMS_PauseReq ( ) | |
90 { | |
91 | |
92 TRACE_FUNCTION ("psaSMS_PauseReq()"); | |
93 | |
94 /* build and send MNSMS_PAUSE_REQ */ | |
95 { | |
96 PALLOC (mnsms_pause_req, MNSMS_PAUSE_REQ); | |
97 PSENDX (SMS, mnsms_pause_req); | |
98 } | |
99 | |
100 } | |
101 | |
102 /* | |
103 +-------------------------------------------------------------------+ | |
104 | PROJECT : GSM-PS (6147) MODULE : PSA_SMSS | | |
105 | ROUTINE : psaSMS_ResumeReq | | |
106 +-------------------------------------------------------------------+ | |
107 | |
108 ACI-ENH-19450: Added for %CPRMS command (MDF-07.04.2004) | |
109 | |
110 PURPOSE : build and send MNSMS_RESUME_REQ to SMS | |
111 | |
112 */ | |
113 | |
114 GLOBAL void psaSMS_ResumeReq ( ) | |
115 { | |
116 | |
117 TRACE_FUNCTION ("psaSMS_ResumeReq()"); | |
118 | |
119 /* build and send MNSMS_PAUSE_REQ */ | |
120 { | |
121 PALLOC (mnsms_resume_req, MNSMS_RESUME_REQ); | |
122 PSENDX (SMS, mnsms_resume_req); | |
123 } | |
124 | |
125 } | |
126 | |
127 /* | |
128 +-------------------------------------------------------------------+ | |
129 | PROJECT : GSM-PS (6147) MODULE : PSA_SMSS | | |
130 | ROUTINE : psaSMS_TestReq | | |
131 +-------------------------------------------------------------------+ | |
132 | |
133 ACI-ENH-19450: Added for %CPRMS command (MDF-07.04.2004) | |
134 | |
135 PURPOSE : build and send MNSMS_RESUME_REQ to SMS | |
136 | |
137 */ | |
138 | |
139 GLOBAL void psaSMS_QueryReq (UBYTE query_type) | |
140 { | |
141 | |
142 TRACE_FUNCTION ("psaSMS_QueryReq()"); | |
143 | |
144 /* build and send MNSMS_QUERY_REQ */ | |
145 { | |
146 PALLOC (mnsms_query_req, MNSMS_QUERY_REQ); | |
147 | |
148 mnsms_query_req->query_type = query_type; | |
149 | |
150 PSENDX (SMS, mnsms_query_req); | |
151 } | |
152 | |
153 } | |
154 | |
155 | |
156 /*==== EOF ========================================================*/ | |
157 |