comparison cdg-hybrid/cdginc/p_mnsms.h @ 9:6da1d56a96a3

cdg-hybrid: import from Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 15 Jul 2018 21:08:11 +0000
parents
children
comparison
equal deleted inserted replaced
8:ed162c9cd29f 9:6da1d56a96a3
1 /*
2 +--------------------------------------------------------------------------+
3 | PROJECT : PROTOCOL STACK |
4 | FILE : p_mnsms.h |
5 | SOURCE : "sap\mnsms.pdf" |
6 | LastModified : "2002-04-19" |
7 | IdAndVersion : "6147.103.96.107" |
8 | SrcFileTime : "Thu Nov 29 09:48:28 2007" |
9 | Generated by CCDGEN_2.5.5A on Fri Oct 14 21:41:52 2016 |
10 | !!DO NOT MODIFY!!DO NOT MODIFY!!DO NOT MODIFY!! |
11 +--------------------------------------------------------------------------+
12 */
13
14 /* PRAGMAS
15 * PREFIX : NONE
16 * COMPATIBILITY_DEFINES : NO (require PREFIX)
17 * ALWAYS_ENUM_IN_VAL_FILE: NO
18 * ENABLE_GROUP: NO
19 * CAPITALIZE_TYPENAME: NO
20 */
21
22
23 #ifndef P_MNSMS_H
24 #define P_MNSMS_H
25
26
27 #define CDG_ENTER__P_MNSMS_H
28
29 #define CDG_ENTER__FILENAME _P_MNSMS_H
30 #define CDG_ENTER__P_MNSMS_H__FILE_TYPE CDGINC
31 #define CDG_ENTER__P_MNSMS_H__LAST_MODIFIED _2002_04_19
32 #define CDG_ENTER__P_MNSMS_H__ID_AND_VERSION _6147_103_96_107
33
34 #define CDG_ENTER__P_MNSMS_H__SRC_FILE_TIME _Thu_Nov_29_09_48_28_2007
35
36 #include "CDG_ENTER.h"
37
38 #undef CDG_ENTER__P_MNSMS_H
39
40 #undef CDG_ENTER__FILENAME
41
42
43 #include "p_mnsms.val"
44
45 #include "m_sms.h"
46
47 #ifndef __T_sms_sdu__
48 #define __T_sms_sdu__
49 /*
50 * SIM-PDU
51 * CCDGEN:WriteStruct_Count==1980
52 */
53 typedef struct
54 {
55 U16 l_buf; /*< 0: 2> command length */
56 U16 o_buf; /*< 2: 2> command offset */
57 U8 buf[SIM_PDU_LEN]; /*< 4:175> command data */
58 U8 _align0; /*<179: 1> alignment */
59 } T_sms_sdu;
60 #endif
61
62
63 /*
64 * End of substructure section, begin of primitive definition section
65 */
66
67 #ifndef __T_MNSMS_MESSAGE_IND__
68 #define __T_MNSMS_MESSAGE_IND__
69 /*
70 *
71 * CCDGEN:WriteStruct_Count==1981
72 */
73 typedef struct
74 {
75 U8 mem_type; /*< 0: 1> memory type */
76 U8 rec_num; /*< 1: 1> record number */
77 U8 rec_max; /*< 2: 1> maximum number of records (1..255) in EF(SMS) or other memory */
78 U8 status; /*< 3: 1> message status */
79 T_sms_sdu sms_sdu; /*< 4:180> SIM-PDU */
80 } T_MNSMS_MESSAGE_IND;
81 #endif
82
83 #ifndef __T_MNSMS_REPORT_IND__
84 #define __T_MNSMS_REPORT_IND__
85 /*
86 *
87 * CCDGEN:WriteStruct_Count==1982
88 */
89 typedef struct
90 {
91 U8 state; /*< 0: 1> State of the SMS Entity */
92 U8 v_cmms_mode; /*< 1: 1> valid-flag */
93 U8 cmms_mode; /*< 2: 1> Specifies the mode for +CMMS */
94 U8 _align0; /*< 3: 1> alignment */
95 } T_MNSMS_REPORT_IND;
96 #endif
97
98 #ifndef __T_MNSMS_STATUS_IND__
99 #define __T_MNSMS_STATUS_IND__
100 /*
101 *
102 * CCDGEN:WriteStruct_Count==1983
103 */
104 typedef struct
105 {
106 T_sms_sdu sms_sdu; /*< 0:180> SIM-PDU */
107 } T_MNSMS_STATUS_IND;
108 #endif
109
110 #ifndef __T_MNSMS_DELETE_REQ__
111 #define __T_MNSMS_DELETE_REQ__
112 /*
113 *
114 * CCDGEN:WriteStruct_Count==1984
115 */
116 typedef struct
117 {
118 U8 mem_type; /*< 0: 1> memory type */
119 U8 rec_num; /*< 1: 1> record number */
120 U8 delete_status; /*< 2: 1> Delete flag */
121 U8 _align0; /*< 3: 1> alignment */
122 } T_MNSMS_DELETE_REQ;
123 #endif
124
125 #ifndef __T_MNSMS_DELETE_CNF__
126 #define __T_MNSMS_DELETE_CNF__
127 /*
128 *
129 * CCDGEN:WriteStruct_Count==1985
130 */
131 typedef struct
132 {
133 U8 mem_type; /*< 0: 1> memory type */
134 U8 rec_num; /*< 1: 1> record number */
135 U16 cause; /*< 2: 2> error code */
136 U8 delete_rec_next; /*< 4: 1> Next Record to be deleted. */
137 U8 _align0; /*< 5: 1> alignment */
138 U8 _align1; /*< 6: 1> alignment */
139 U8 _align2; /*< 7: 1> alignment */
140 } T_MNSMS_DELETE_CNF;
141 #endif
142
143 #ifndef __T_MNSMS_READ_REQ__
144 #define __T_MNSMS_READ_REQ__
145 /*
146 *
147 * CCDGEN:WriteStruct_Count==1986
148 */
149 typedef struct
150 {
151 U8 mem_type; /*< 0: 1> memory type */
152 U8 rec_num; /*< 1: 1> record number */
153 U8 read_mode; /*< 2: 1> Read Mode */
154 U8 status; /*< 3: 1> message status */
155 } T_MNSMS_READ_REQ;
156 #endif
157
158 #ifndef __T_MNSMS_READ_CNF__
159 #define __T_MNSMS_READ_CNF__
160 /*
161 *
162 * CCDGEN:WriteStruct_Count==1987
163 */
164 typedef struct
165 {
166 U8 mem_type; /*< 0: 1> memory type */
167 U8 rec_num; /*< 1: 1> record number */
168 U8 rec_next; /*< 2: 1> number of a following record with a valid message, if existent */
169 U8 rec_max; /*< 3: 1> maximum number of records (1..255) in EF(SMS) or other memory */
170 U16 cause; /*< 4: 2> error code */
171 U8 rec_status; /*< 6: 1> number of a record in EF(SMSR) related to the given stored message */
172 U8 status; /*< 7: 1> message status */
173 T_sms_sdu sms_sdu; /*< 8:180> SIM-PDU */
174 } T_MNSMS_READ_CNF;
175 #endif
176
177 #ifndef __T_MNSMS_STORE_REQ__
178 #define __T_MNSMS_STORE_REQ__
179 /*
180 *
181 * CCDGEN:WriteStruct_Count==1988
182 */
183 typedef struct
184 {
185 U8 mem_type; /*< 0: 1> memory type */
186 U8 rec_num; /*< 1: 1> record number */
187 U8 condx; /*< 2: 1> write condition */
188 U8 status; /*< 3: 1> message status */
189 T_sms_sdu sms_sdu; /*< 4:180> SIM-PDU */
190 } T_MNSMS_STORE_REQ;
191 #endif
192
193 #ifndef __T_MNSMS_STORE_CNF__
194 #define __T_MNSMS_STORE_CNF__
195 /*
196 *
197 * CCDGEN:WriteStruct_Count==1989
198 */
199 typedef struct
200 {
201 U8 mem_type; /*< 0: 1> memory type */
202 U8 rec_num; /*< 1: 1> record number */
203 U16 cause; /*< 2: 2> error code */
204 } T_MNSMS_STORE_CNF;
205 #endif
206
207 #ifndef __T_MNSMS_SUBMIT_REQ__
208 #define __T_MNSMS_SUBMIT_REQ__
209 /*
210 *
211 * CCDGEN:WriteStruct_Count==1990
212 */
213 typedef struct
214 {
215 U8 mem_type; /*< 0: 1> memory type */
216 U8 rec_num; /*< 1: 1> record number */
217 U8 condx; /*< 2: 1> write condition */
218 U8 modify; /*< 3: 1> Modifier */
219 // ELEM-FF: REL99
220 // U8 auto_rep_flag; /*< 0: 0> Added auto_rep_flag variable */
221 T_sms_sdu sms_sdu; /*< 4:180> SIM-PDU */
222 } T_MNSMS_SUBMIT_REQ;
223 #endif
224
225 #ifndef __T_MNSMS_SUBMIT_CNF__
226 #define __T_MNSMS_SUBMIT_CNF__
227 /*
228 *
229 * CCDGEN:WriteStruct_Count==1991
230 */
231 typedef struct
232 {
233 U8 mem_type; /*< 0: 1> memory type */
234 U8 rec_num; /*< 1: 1> record number */
235 U16 cause; /*< 2: 2> error code */
236 U8 tp_mr; /*< 4: 1> TP message reference */
237 U8 _align0; /*< 5: 1> alignment */
238 U8 _align1; /*< 6: 1> alignment */
239 U8 _align2; /*< 7: 1> alignment */
240 T_sms_sdu sms_sdu; /*< 8:180> SIM-PDU */
241 } T_MNSMS_SUBMIT_CNF;
242 #endif
243
244 #ifndef __T_MNSMS_COMMAND_REQ__
245 #define __T_MNSMS_COMMAND_REQ__
246 /*
247 *
248 * CCDGEN:WriteStruct_Count==1992
249 */
250 typedef struct
251 {
252 // ELEM-FF: REL99
253 // U8 auto_rep_flag; /*< 0: 0> Added auto_rep_flag variable */
254 T_sms_sdu sms_sdu; /*< 0:180> SIM-PDU */
255 } T_MNSMS_COMMAND_REQ;
256 #endif
257
258 #ifndef __T_MNSMS_COMMAND_CNF__
259 #define __T_MNSMS_COMMAND_CNF__
260 /*
261 *
262 * CCDGEN:WriteStruct_Count==1993
263 */
264 typedef struct
265 {
266 U16 cause; /*< 0: 2> error code */
267 U8 tp_mr; /*< 2: 1> TP message reference */
268 U8 _align0; /*< 3: 1> alignment */
269 T_sms_sdu sms_sdu; /*< 4:180> SIM-PDU */
270 } T_MNSMS_COMMAND_CNF;
271 #endif
272
273 #ifndef __T_MNSMS_ACK_RES__
274 #define __T_MNSMS_ACK_RES__
275 /*
276 *
277 * CCDGEN:WriteStruct_Count==1994
278 */
279 typedef struct
280 {
281 U8 resp; /*< 0: 1> type of response */
282 U8 _align0; /*< 1: 1> alignment */
283 U8 _align1; /*< 2: 1> alignment */
284 U8 _align2; /*< 3: 1> alignment */
285 T_sms_sdu sms_sdu; /*< 4:180> SIM-PDU */
286 } T_MNSMS_ACK_RES;
287 #endif
288
289 #ifndef __T_MNSMS_CONFIGURE_REQ__
290 #define __T_MNSMS_CONFIGURE_REQ__
291 /*
292 *
293 * CCDGEN:WriteStruct_Count==1995
294 */
295 typedef struct
296 {
297 U8 pref_mem_3; /*< 0: 1> memory type */
298 U8 mt; /*< 1: 1> mobile terminated message handling */
299 U8 ds; /*< 2: 1> status report message handling */
300 U8 mhc; /*< 3: 1> status report message handling */
301 U8 v_cmms_mode; /*< 4: 1> valid-flag */
302 U8 cmms_mode; /*< 5: 1> Specifies the mode for +CMMS */
303 U8 _align0; /*< 6: 1> alignment */
304 U8 v_tmms_val; /*< 7: 1> valid-flag */
305 U16 tmms_val; /*< 8: 2> Timer value for +CMMS command */
306 U8 _align1; /*< 10: 1> alignment */
307 U8 _align2; /*< 11: 1> alignment */
308 } T_MNSMS_CONFIGURE_REQ;
309 #endif
310
311 #ifndef __T_MNSMS_ERROR_IND__
312 #define __T_MNSMS_ERROR_IND__
313 /*
314 *
315 * CCDGEN:WriteStruct_Count==1996
316 */
317 typedef struct
318 {
319 U16 cause; /*< 0: 2> error code */
320 U8 _align0; /*< 2: 1> alignment */
321 U8 _align1; /*< 3: 1> alignment */
322 } T_MNSMS_ERROR_IND;
323 #endif
324
325 #ifndef __T_MNSMS_MO_SERV_REQ__
326 #define __T_MNSMS_MO_SERV_REQ__
327 /*
328 *
329 * CCDGEN:WriteStruct_Count==1997
330 */
331 typedef struct
332 {
333 U8 mo_sms_serv; /*< 0: 1> MO SMS Service */
334 U8 _align0; /*< 1: 1> alignment */
335 U8 _align1; /*< 2: 1> alignment */
336 U8 _align2; /*< 3: 1> alignment */
337 } T_MNSMS_MO_SERV_REQ;
338 #endif
339
340 #ifndef __T_MNSMS_MO_SERV_CNF__
341 #define __T_MNSMS_MO_SERV_CNF__
342 /*
343 *
344 * CCDGEN:WriteStruct_Count==1998
345 */
346 typedef struct
347 {
348 U8 mo_sms_serv; /*< 0: 1> MO SMS Service */
349 U8 _align0; /*< 1: 1> alignment */
350 U8 _align1; /*< 2: 1> alignment */
351 U8 _align2; /*< 3: 1> alignment */
352 } T_MNSMS_MO_SERV_CNF;
353 #endif
354
355 #ifndef __T_MNSMS_PAUSE_REQ__
356 #define __T_MNSMS_PAUSE_REQ__
357 /*
358 *
359 * CCDGEN:WriteStruct_Count==1999
360 */
361 typedef struct
362 {
363 U8 dummy; /*< 0: 1> no parameters */
364 } T_MNSMS_PAUSE_REQ;
365 #endif
366
367 #ifndef __T_MNSMS_RESUME_REQ__
368 #define __T_MNSMS_RESUME_REQ__
369 /*
370 *
371 * CCDGEN:WriteStruct_Count==2000
372 */
373 typedef struct
374 {
375 U8 dummy; /*< 0: 1> no parameters */
376 } T_MNSMS_RESUME_REQ;
377 #endif
378
379 #ifndef __T_MNSMS_RESUME_CNF__
380 #define __T_MNSMS_RESUME_CNF__
381 /*
382 *
383 * CCDGEN:WriteStruct_Count==2001
384 */
385 typedef struct
386 {
387 U16 cause; /*< 0: 2> error code */
388 U8 _align0; /*< 2: 1> alignment */
389 U8 _align1; /*< 3: 1> alignment */
390 } T_MNSMS_RESUME_CNF;
391 #endif
392
393 #ifndef __T_MNSMS_QUERY_REQ__
394 #define __T_MNSMS_QUERY_REQ__
395 /*
396 *
397 * CCDGEN:WriteStruct_Count==2002
398 */
399 typedef struct
400 {
401 U8 query_type; /*< 0: 1> specifies to which status the query request refers to */
402 U8 _align0; /*< 1: 1> alignment */
403 U8 _align1; /*< 2: 1> alignment */
404 U8 _align2; /*< 3: 1> alignment */
405 } T_MNSMS_QUERY_REQ;
406 #endif
407
408 #ifndef __T_MNSMS_QUERY_CNF__
409 #define __T_MNSMS_QUERY_CNF__
410 /*
411 *
412 * CCDGEN:WriteStruct_Count==2003
413 */
414 typedef struct
415 {
416 U8 query_type; /*< 0: 1> specifies to which status the query request refers to */
417 U8 v_deliver_status; /*< 1: 1> valid-flag */
418 U8 deliver_status; /*< 2: 1> sms delivery status - pause or resume */
419 U8 _align0; /*< 3: 1> alignment */
420 } T_MNSMS_QUERY_CNF;
421 #endif
422
423 #ifndef __T_MNSMS_OTA_MESSAGE_IND__
424 #define __T_MNSMS_OTA_MESSAGE_IND__
425 /*
426 *
427 * CCDGEN:WriteStruct_Count==2004
428 */
429 typedef struct
430 {
431 U8 tp_pid; /*< 0: 1> TP Protocol Identifier */
432 U8 tp_dcs; /*< 1: 1> TP Data Coding Scheme */
433 U8 _align0; /*< 2: 1> alignment */
434 U8 _align1; /*< 3: 1> alignment */
435 T_tp_ud tp_ud; /*< 4:164> TP User Data (type defined in "m_sms.h") */
436 } T_MNSMS_OTA_MESSAGE_IND;
437 #endif
438
439 #ifndef __T_MNSMS_OTA_MESSAGE_RES__
440 #define __T_MNSMS_OTA_MESSAGE_RES__
441 /*
442 *
443 * CCDGEN:WriteStruct_Count==2005
444 */
445 typedef struct
446 {
447 U8 tp_pid; /*< 0: 1> TP Protocol Identifier */
448 U8 tp_dcs; /*< 1: 1> TP Data Coding Scheme */
449 U8 len; /*< 2: 1> length of the OTA response */
450 U8 packedlen; /*< 3: 1> length of the OTA response */
451 U8 data[20]; /*< 4: 20> IMEI and category status of the mobile to be extracted from TP user data */
452 } T_MNSMS_OTA_MESSAGE_RES;
453 #endif
454
455
456 // PRIM-FF: REL99
457 // #ifndef __T_MNSMS_RETRANS_REQ__
458 // #define __T_MNSMS_RETRANS_REQ__
459 //
460 //
461 // CCDGEN:WriteStruct_Count==2006
462 //
463 // typedef struct
464 // {
465 // ELEM-FF: REL99
466 // U8 auto_rep_flag; /*< 0: 0> Added auto_rep_flag variable */
467 // } T_MNSMS_RETRANS_REQ;
468 // #endif
469 //
470
471 // PRIM-FF: REL99
472 // #ifndef __T_MNSMS_RETRANS_CNF__
473 // #define __T_MNSMS_RETRANS_CNF__
474 //
475 //
476 // CCDGEN:WriteStruct_Count==2007
477 //
478 // typedef struct
479 // {
480 // U16 cause; /*< 0: 2> error code */
481 // U8 mem_type; /*< 2: 1> memory type */
482 // U8 rec_num; /*< 3: 1> record number */
483 // U8 tp_mr; /*< 4: 1> TP message reference */
484 // U8 _align0; /*< 5: 1> alignment */
485 // U8 _align1; /*< 6: 1> alignment */
486 // U8 _align2; /*< 7: 1> alignment */
487 // T_sms_sdu sms_sdu; /*< 8:180> SIM-PDU */
488 // } T_MNSMS_RETRANS_CNF;
489 // #endif
490 //
491
492 // PRIM-FF: REL99
493 // #ifndef __T_MNSMS_SEND_PROG_IND__
494 // #define __T_MNSMS_SEND_PROG_IND__
495 //
496 //
497 // CCDGEN:WriteStruct_Count==2008
498 //
499 // typedef struct
500 // {
501 // ELEM-FF: REL99
502 // U8 resend_count; /*< 0: 0> To resend the count to MMI during retransmission */
503 // ELEM-FF: REL99
504 // U8 max_retrans; /*< 0: 0> Maximum number of retransmission allowed which is communicated to MMI */
505 // } T_MNSMS_SEND_PROG_IND;
506 // #endif
507 //
508
509 #include "CDG_LEAVE.h"
510
511
512 #endif