FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/g23m-aci/aci/psa_smss.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 | d976884e0b07 |
comparison
equal
deleted
inserted
replaced
774:40a721fd9854 | 775:eedbf248bac0 |
---|---|
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 #ifdef TI_PS_FF_AT_P_CMD_CPRSM | |
78 /* | |
79 +-------------------------------------------------------------------+ | |
80 | PROJECT : GSM-PS (6147) MODULE : PSA_SMSS | | |
81 | ROUTINE : psaSMS_PauseReq | | |
82 +-------------------------------------------------------------------+ | |
83 | |
84 ACI-ENH-19450: Added for %CPRMS command (MDF-07.04.2004) | |
85 | |
86 PURPOSE : build and send MNSMS_PAUSE_REQ to SMS | |
87 | |
88 */ | |
89 | |
90 GLOBAL void psaSMS_PauseReq ( ) | |
91 { | |
92 | |
93 TRACE_FUNCTION ("psaSMS_PauseReq()"); | |
94 | |
95 /* build and send MNSMS_PAUSE_REQ */ | |
96 { | |
97 PALLOC (mnsms_pause_req, MNSMS_PAUSE_REQ); | |
98 PSENDX (SMS, mnsms_pause_req); | |
99 } | |
100 | |
101 } | |
102 | |
103 /* | |
104 +-------------------------------------------------------------------+ | |
105 | PROJECT : GSM-PS (6147) MODULE : PSA_SMSS | | |
106 | ROUTINE : psaSMS_ResumeReq | | |
107 +-------------------------------------------------------------------+ | |
108 | |
109 ACI-ENH-19450: Added for %CPRMS command (MDF-07.04.2004) | |
110 | |
111 PURPOSE : build and send MNSMS_RESUME_REQ to SMS | |
112 | |
113 */ | |
114 | |
115 GLOBAL void psaSMS_ResumeReq ( ) | |
116 { | |
117 | |
118 TRACE_FUNCTION ("psaSMS_ResumeReq()"); | |
119 | |
120 /* build and send MNSMS_PAUSE_REQ */ | |
121 { | |
122 PALLOC (mnsms_resume_req, MNSMS_RESUME_REQ); | |
123 PSENDX (SMS, mnsms_resume_req); | |
124 } | |
125 | |
126 } | |
127 | |
128 /* | |
129 +-------------------------------------------------------------------+ | |
130 | PROJECT : GSM-PS (6147) MODULE : PSA_SMSS | | |
131 | ROUTINE : psaSMS_TestReq | | |
132 +-------------------------------------------------------------------+ | |
133 | |
134 ACI-ENH-19450: Added for %CPRMS command (MDF-07.04.2004) | |
135 | |
136 PURPOSE : build and send MNSMS_RESUME_REQ to SMS | |
137 | |
138 */ | |
139 | |
140 GLOBAL void psaSMS_QueryReq (UBYTE query_type) | |
141 { | |
142 | |
143 TRACE_FUNCTION ("psaSMS_QueryReq()"); | |
144 | |
145 /* build and send MNSMS_QUERY_REQ */ | |
146 { | |
147 PALLOC (mnsms_query_req, MNSMS_QUERY_REQ); | |
148 | |
149 mnsms_query_req->query_type = query_type; | |
150 | |
151 PSENDX (SMS, mnsms_query_req); | |
152 } | |
153 | |
154 } | |
155 #endif /* TI_PS_FF_AT_P_CMD_CPRSM */ | |
156 | |
157 /*==== EOF ========================================================*/ | |
158 |