6d05e4de7bcf056712c4a4648300feb7e7bdb714
[platform/adaptation/emulator/vmodem-daemon-emulator.git] / libvmodem / vgsm_phone.h
1 /*
2  *  telephony-emulator
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: 
7  * Sooyoung Ha <yoosah.ha@samsung.com>
8  * Sungmin Ha <sungmin82.ha@samsung.com>
9  * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
10  * 
11  * This library is free software; you can redistribute it and/or modify it under
12  * the terms of the GNU Lesser General Public License as published by the
13  * Free Software Foundation; either version 2.1 of the License, or (at your option)
14  * any later version.
15  * 
16  * This library is distributed in the hope that it will be useful, but WITHOUT ANY
17  * WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
19  * License for more details.
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * along with this library; if not, write to the Free Software Foundation, Inc., 51
23  * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
24  *
25  * Contributors:
26  * - S-Core Co., Ltd
27  * 
28  */
29
30 #ifndef _vgsm_phone_h_
31 #define _vgsm_phone_h_
32
33 /* 
34  * I858 TAPI ºÎ°¡ ¼³¸í
35  *
36  * I858 TAPI API´Â I519/I819¿Í Å©°Ô ´Ù¸£Áö ¾Ê´Ù. ¶ÇÇÑ 
37  * 1. ÇÁ·ÎÁ§Æ®ÀÇ µ¿½Ã ÁøÇàÀ¸·Î ÀÎÇÑ ±¸ºÐ ÇÊ¿ä.
38  * 2. GSM Only Mode¸¸¿¡¼­¸¸ ÇÊ¿äÇÑ ³»¿ëµéÀ» À§ÇÑ ½Å±Ô ³»¿ë
39  * À» À§Çؼ­ µð·ºÅ丮´Â ºÐ¸®ÇÏ¿´½¿.
40  *
41  * - TAPI 
42  * Dialer, PhoneBookµîÀÇ phone client¿Í phone server¿ÍÀÇ µ¥ÀÌŸ ±³È­¿¡
43  * ÇÊ¿äÇÑ ÆÐŶÀÇ ±âº» ±¸Á¶´Â µ¿ÀÏÇϸ砰¢°¢¿¡ ´ëÇÑ ³»¿ëÀº ¾Æ·¡ÀÇ ÁÖ¼®À»
44  * Âü°í ¹Ù¶÷.
45  *
46  * - TAPI packet ±âº» ±¸Á¶. TAPI packetÀÇ RX, TX´Â ¾Æ·¡¿Í °°ÀÌ µ¿ÀÏÇÑ ÇüÅÂ
47  * +--------+--------+-------------+---------------------------------------+
48  * |MAIN CMD|SUB CMD | Data Length |  DATA                                 |
49  * | 1byte  | 1byte  |  2bytes     |   Data Length's Byte(s)               |
50  * +--------+--------+-------------+---------------------------------------+
51  *
52   * Data Length´Â DATAÀÇ ±æÀ̸¸À» ÀǹÌÇÑ´Ù. Áï µ¥ÀÌŸ°¡ ¾ø´Â °æ¿ì¿¡´Â Length´Â
53  * 0ÀÌ µÈ´Ù.
54  *
55  */
56
57 /* 
58  * Main command group
59  */
60 #define GSM_CALL                             0x01
61 #define GSM_NETWORK                          0x02
62 #define GSM_SUPS                             0x03
63 #define GSM_SMS                              0x04
64 #define GSM_MISC                             0x05
65 #define GSM_DISPLAY                          0x06
66 #define GSM_SIM                              0x07
67 #define GSM_DATA                             0x08
68 #define GSM_SAT                         0x09
69 #define GSM_SOUND                                                       0x0A
70 #define GSM_EXT                              0x0B
71 #define GSM_SERVICEMODE                                         0x0C
72 #define GSM_EMULATOR                         0x0D
73 #define GSM_GPRS                             0x0E
74 #define GSM_POWER                             0x0F
75 #define GSM_CLIENT              0x10
76 #define RESTORE_EI_DATA                                         0x11
77 #define FUNC_EDB                                                        0x12
78 #define FUNC_EDB_IND                                            0x01
79 #define FUNC_SINGLEDB_IND                                               0x02
80
81 /* --------------------------------------------------------------------------
82    GSM_CLIENT : 
83    --------------------------------------------------------------------------*/
84 #define GSM_CLIENT_RELEASE_NOTI         0x01
85 #define GSM_CLIENT_RELEASE_NOTI_ACK             0x02
86 /* --------------------------------------------------------------------------
87    GSM_CALL : Call Control Functions
88    --------------------------------------------------------------------------*/
89
90 /*
91  * Length : Caller ID ±æÀÌ(VAR) 
92  * Data   : 
93  * - Caller ID 
94  */
95 #define GSM_CALL_MAKE_REQ                     0x21
96 /*
97  * Length : 2bytes
98  * Data   : 
99  * - NUM Calls (1byte) 
100  * - Call ID   (1byte)
101  */
102 #define GSM_CALL_HANGUP_REQ                   0x22
103 /*
104  * Length : 1byte
105  * Data   :
106  * - Call ID   (1byte)
107  */
108 #define GSM_CALL_ANSWER_REQ                   0x23
109
110 /*
111  * Length : None
112  */
113 #define GSM_CALL_LIST_REQ                     0x24
114
115 /*
116  * Length : 1byte
117  * Data   :
118  * - Call ID   (1byte)
119  */
120 #define GSM_CALL_WAITING_STATUS_CFRM           0x25
121
122 /*
123  * Length : VAR
124  * Data   :
125  * - GSM_MPTY_OPERATION : 1byte (mzgsmcall.h ÂüÁ¶)
126  * - GSM_MPTY_PARAM_ID  : 1byte
127  * - parameter length   : 1byte
128  * - param              : VAR
129  */
130 #define GSM_CALL_CONTROL_REQ                  0x26
131
132 /*
133  * Length : 1byte
134  * Data   :
135  * - digit : 1 byte
136  */
137 #define GSM_CALL_GENERATE_DTMF_REQ            0x27
138
139 // EMTRACE_I878 [ 
140 // Testing purpose
141 #define GSM_CALL_GET_FAKE_CALLLIST_REQ          0x28
142 // EMTRACE_I878, civily 20051014 ]
143 /*
144  * Length : 0
145  * Data   :
146  * - None
147  */
148 #define GSM_CALL_GET_AUTOREDIAL_REQ           0x29
149
150 /*
151  * Length : 1
152  * Data   :
153  * - Enable or Disable
154  */
155 #define GSM_CALL_SET_AUTOREDIAL_REQ           0x2A
156 #define GSM_CALL_LIST_CFRM                    0x2B
157
158 /*
159  * Length : Caller ID ±æÀÌ (VAR) 
160  * Data   : 
161  * - Caller ID 
162  */
163 #define GSM_CALL_MAKE_TO_DEVICE_REQ           0x2C
164 #define GSM_CALL_TO_DEVICE_CFRM               0x2D
165
166 /* --------------------------------------------------------------------------
167    GSM_CALL : Notification or Response
168    --------------------------------------------------------------------------*/
169
170 #define GSM_CALL_ID                           0x20
171
172 /*
173  * Length : (VAR)
174  * Data   :
175  * - Call ID       (1byte)
176  * - Forwared flag (1byte)
177  * - Call ID Length(1byte)
178  * - Call ID       (VAR)
179  *
180  * ÁÖÀÇ : CLIR_CAUSE´Â »èÁ¦
181  */
182
183 #define GSM_CALL_INCOMING_NOTI                0x21
184 /*
185  * Length : 3bytes
186  * Data   :
187  * - Call ID      (1byte)
188  * - Forwared     (1byte)
189  * - Status       (1byte)  mzgsmcall.h ¿¡ Àִ °ª°ú ¼³¸íÀ» ÂüÁ¶
190  * ÁÖÀÇ : CAUSE, NUM_CALLS_IN_USE´Â »èÁ¦
191  */
192 #define GSM_CALL_STATUS_NOTI                  0x22
193 /*
194  * Length : VAR 1byte(Reserved1) + 1byte(Reserved2) + 
195  * 1byte(Call Count) + (Call Count) * 5 (Call Data)
196  * DATA   :
197  * - Reserved1      (1byte)
198  * - Reserved2      (1byte)
199  *
200  * - Call Count     (1byte)
201  *
202  *   ÀÌÇÏ 5¹ÙÀÌÆ®´Â Call Count ¸¸Å­ ¹Ýº¹.
203  * - Call ID        (1byte)
204  * - GSM_Call_Dir   (1byte) mzgsmcall.h ÂüÁ¶
205  * - GSM_Call_Stat  (1byte) mzgsmcall.h ÂüÁ¶
206  * - GSM_Call_Mode  (1byte) mzgsmcall.h ÂüÁ¶(Voice¸¸ Ãë±ÞÇÒ°Í)
207  * - MPTY           (1byte) 0x01 mpty, 0x00 single
208  */
209 #define GSM_CALL_LIST_RES                     0x23
210
211 /*
212  * Length : VAR 1byte(result) + 1byte(Operation) + 1byte(call Id) + 
213  * (Call Count) + VAR(Call Count * 1)
214  * DATA   :
215  * - result (1byte) 
216  * - GSM_MPTY_OPERATION (1byte) mzgsmcall.h ÂüÁ¶
217  * - GSM_MPTY_PARAM_ID  (1byte) mzgsmcall.h ÂüÁ¶
218  * - active call count  (1byte)
219  * - active call list   (VAR)
220  */
221 #define GSM_CALL_CONTROL_RES                  0x24
222
223 /*
224  * Length : 2
225  * Data   :
226  * - call id (1byte)
227  * - status  (1byte) 
228  * 0x01 : waiting »óÅ GSM_Call_Dialing, GSM_Call_Alerting, GSM_Call_Incoming
229  * 0x00 : not waiting »óÅ GSM_Call_Active, GSM_Call_Release
230  */
231 #define GSM_CALL_WAITING_STATUS_IND           0x25
232
233
234 /*
235  * Length : (VAR)
236  * Data   :
237  * - Call ID          Length (1byte)
238  * - Connected Line          (VAR)
239  */
240
241 #define GSM_CALL_CONNECTED_LINE_NOTI          0x26
242
243 /*
244  * Length : 1
245  * Data   :
246  * - the reason of redialing mode
247  */
248 #define GSM_CALL_AUTOREDIAL_NOTI              0x27
249
250 /*
251  * Length : 2
252  * - Result    : 1 byte 
253  * - ALS value : 1 byte 
254  */
255 #define GSM_CALL_GET_AUTO_REDIAL_RES          0x28
256
257 /*
258  * Length : 0
259  */
260 #define GSM_CALL_CALL_LIST_IND                0x29
261
262 /*
263  *
264  */
265 #define GSM_CALL_WAITING_STATUS_TO_DEVICE_IND 0x2A
266
267 /*
268  * Length : 0
269  */
270 #define GSM_CALL_CONNECTION_TONE_NOTI         0x2B
271
272 /*
273  * Length : 1
274  */
275 #define GSM_CALL_SMASO_NOTI                   0x2C
276
277 /*
278  * Length : 1
279  * result : 1 byte
280  */
281 #define GSM_CALL_MAKE_RES                     0x2D
282
283 /*
284  * Length : 1
285  * result : 1 byte
286  */
287 #define GSM_CALL_ANSWER_RES                   0x2E
288
289 /*
290  * Length : 1
291  * result : 1 byte
292  */
293 #define GSM_CALL_HANGUP_RES                   0x2F
294
295 // sunnyfan 2006.01.17
296 #define GSM_CALL_GET_ALS_MV_REQ                         0x41
297 #define GSM_CALL_GET_ALS_MV_RES                         0x42
298 #define GSM_CALL_SET_ALS_MV_REQ                         0x43
299 #define GSM_CALL_SET_ALS_MV_RES                         0x44
300 // sunnyfan ]
301
302 // sunnyfan, 2005.11.17 [
303 #define GSM_CALL_GENERATE_DTMF_RES            0x50
304
305 #define GSM_CALL_GENRES_DTMF                                     0x51
306 // sunnyfan ]
307
308 #define GSM_CALL_STATE                                  0x61
309 #define GSM_CALL_ALERT_IND                              0x62 
310
311 /* --------------------------------------------------------------------------
312    GSM_NETWORK : Network Functions
313    --------------------------------------------------------------------------*/
314
315 /*
316  * Length : Zero
317  * Data   :
318  * - None
319  */
320 #define GSM_NETWORK_CURRENT_MODE_REQ          0x31
321
322 /*
323  * Length : Zero
324  * Data   :
325  * - None
326  */
327 #define GSM_NETWORK_SET_AUTOMATIC_MODE_REQ    0x32
328
329 /*
330  * Length : Zero
331  * Data   :
332  * - operator name (5byte)
333  */
334 #define GSM_NETWORK_SET_MANUAL_MODE_REQ       0x33
335
336 /*
337  * Length : Zero
338  * Data   :
339  * - None
340  */
341 #define GSM_NETWORK_INQUIRY_OPERATOR_REQ      0x34
342
343 /*
344  * Length : Zero
345  * Data   :
346  * - None
347  */
348 #define GSM_NETWORK_GPRS_STATE_REQ            0x35
349
350 /*
351  * Length : None
352  */
353 #define GSM_NETWORK_GET_BAND_REQ              0x36
354
355 /*
356  * Length : 1
357  * - Band value : 1 byte 
358  */
359 #define GSM_NETWORK_SET_BAND_REQ              0x37
360
361 /*
362  * Length : Zero
363  * Data   :
364  * - None
365  */
366 #define GSM_NETWORK_GET_SIGNAL_REQ            0x38
367
368 /*
369  * Length : Zero
370  * Data   :
371  * - None
372  */
373 #define GSM_NETWORK_GET_NETWORK_INFO_REQ      0x39
374
375 /*
376  * Length : Zero
377  * Data   :
378  * - None
379  */
380 #define GSM_NETWORK_CANCEL_OPERATOR_REQ       0x3A
381
382 /*
383  * Length : Zero
384  * Data   :
385  * - None
386  */
387 #define GSM_NETWORK_GET_INDICATOR_REQ         0x3B
388
389 // EMTRACE_I878 [
390 #define GSM_NETWORK_SET_SVCDOMAIN_REQ           0x3C
391 #define GSM_NETWORK_SET_POWERONATTACH_REQ       0x3D
392 #define GSM_NETWORK_GET_SVCDOMAIN_REQ           0x3E
393 #define GSM_NETWORK_GET_POWERONATTACH_REQ       0x3F
394 // EMTRACE_I878, civily 2005.10.13 ]
395 /* --------------------------------------------------------------------------
396    GSM_NETWORK : Notification or Response
397    --------------------------------------------------------------------------*/
398
399 /*
400  * Length : 1 + 1 + VAR(Network Name)
401  * - State        (1byte) mzgsmnet.h ¿¡ Àִ °ª°ú ¼³¸íÀ» ÂüÁ¶
402  * - Length       (1byte) Network Name Length
403  * - Network Name (VAR)
404  */
405 #define GSM_NETWORK_REG_NOTI                  0x31
406
407 /*
408  * Length : (1) + VAR
409  * - String Length 1byte
410  * - String        VAR
411  *
412  */
413 // CAUTION : ÇâÈÄ ¹®ÀÚ¿­ÀÌ ¾Æ´Ñ À妽º°ª¸¸ Àü´ÞµÇ´Â °ÍÀ¸·Î ¼öÁ¤
414 #define GSM_NETWORK_SMNT_NOTI                 0x32
415
416 /*
417  * Length : 1 + 1 + VAR
418  * GSM_OperMode    : 1byte
419  * Length MCC+MNC  : 1byte
420  * operator name   : VAR
421  */
422 #define GSM_NETWORK_CURRENT_MODE_RES          0x33
423
424 /*
425  * Length : NONE
426  */
427 #define GSM_NETWORK_SET_AUTOMATIC_MODE_RES    0x34
428
429 /*
430  * Length : NONE
431  */
432 #define GSM_NETWORK_SET_MANUAL_MODE_RES       0x35
433
434 /*
435  * Length : 1 + (item count * 6)
436  * Data   :
437  * - count    : 1byte
438  * - mode     : 1byte
439  * - operator : 5byte
440  */
441 #define GSM_NETWORK_INQUIRY_OPERATOR_RES      0x36
442
443 /*
444  * Length : 2
445  * - Result    : 1 byte 
446  * - Band value: 1 byte 
447  */
448 #define GSM_NETWORK_GET_BAND_RES              0x37
449
450 /*
451  * Length : 2
452  * - Result    : 1 byte 
453  * - Band value: 1 byte 
454  */
455 #define GSM_NETWORK_SET_BAND_RES               0x38
456
457 /*
458  * Length : 2
459  * Data   :
460  * - result : 0x00 (ok) or 0x01 (failed)
461  * - mode : refer mzgsmnet.h
462  */
463 #define GSM_NETWORK_GET_NETWORK_INFO_RES       0x39
464
465 // EMTRACE_I878 [
466 #define GSM_NETWORK_POWERONATTACH_RES                   0x3A
467 #define GSM_NETWORK_SVCDOMAIN_RES                               0x3B
468 // EMTRACE_I878, civily 2005.10.13 ]
469
470 #define GSM_NETWORK_PLMN_LIST           0x3C
471
472
473 #define GSM_NETWORK_CURRENT_PLMN_NOTI           0x3D
474
475 /* gsm_network_current_plmn_info, nitz info by cosmos in 20090213 */
476 #define GSM_NETWORK_CURRENT_PLMN_INFO          0x3E
477 #define GSM_NETWORK_CURRENT_NITZ_INFO          0x3F
478
479 /* --------------------------------------------------------------------------
480    GSM_SUPS : Sups Service TX function
481    --------------------------------------------------------------------------*/
482 /*
483  * Length : MMI String ±æÀÌ(VAR) 
484  * Data   : 
485  * - MMI String
486  */
487 #define GSM_SUPS_MMI_REQ                      0x41
488
489 /*
490  * Length : 1(fac value) + 1(class)
491  * Data   :
492  * - fac value (1byte) mzgsmsups.h ÂüÁ¶
493  * - class     (1byte) mzgsmmisc.h ÂüÁ¶
494  */
495 #define GSM_SUPS_GET_FAC_LOCK_STATUS_REQ      0x42
496
497 /*
498  * Length : 1(fac value) + 1(class) + 1(mode) + 1(pw length) + VAR(passwd)
499  * Data   :
500  * - fac value (1byte) mzgsmsups.h ÂüÁ¶
501  * - class     (1byte) mzgsmmisc.h ÂüÁ¶
502  * - mode      (1byte) mzgsmsups.h ÂüÁ¶
503  * - pw length (1byte)
504  * - passwd    (pw length bytes)
505  */
506 #define GSM_SUPS_SET_FAC_LOCK_STATUS_REQ      0x43
507
508 /*
509  * Length : 1(the reason)
510  * Data   :
511  * - GSM_CF_Reason    (1byte) mzgsmsups.h ÂüÁ¶
512  */
513 #define GSM_SUPS_GET_CCFC_REQ                 0x44
514
515 /*
516  * Length : sizeof (struct GSM_CF_Data)
517  * Data   :
518  * - GSM_CF_Data    (1byte) mzgsmsups.h ÂüÁ¶
519  */
520 #define GSM_SUPS_SET_CCFC_REQ                 0x45
521
522 /*
523  * Length : 0
524  */
525 #define GSM_SUPS_GET_CLIR_REQ                 0x46
526
527 /*
528  * Length : 1 (CLIR Setting Value)
529  * Data   :
530  * - CLIR_Activation_Status : (1byte)
531  */
532 #define GSM_SUPS_SET_CLIR_REQ                 0x47
533
534 /*
535  * Length : 1(CW_Notify) + 1(GSM_CW_Mode) + 1(GSM_ClassX)
536  * Data   :
537  * - CW_Notify : (1byte) 
538  * - CW_Mode   : (1byte)
539  * - GSM_ClassX  (1byte)
540  */
541 #define GSM_SUPS_GET_CW_REQ                   0x48
542
543 /*
544  * Length : 1(CW_Notify) + 1(GSM_CW_Mode) + 1(GSM_ClassX)
545  * Data   :
546  * - CW_Notify : (1byte) 
547  * - CW_Mode   : (1byte)
548  * - GSM_ClassX  (1byte)
549  */
550 #define GSM_SUPS_SET_CW_REQ                   0x49
551
552 /*
553  * Length : 1(GSM_AOC_Value)
554  * Data   :
555  * - None
556  */
557 #define GSM_SUPS_AOC_REQ                      0x4A
558
559 /*
560  * Length : None
561  * Data   :
562  * - None
563  */
564 #define GSM_SUPS_AOC_RESET_REQ                0x4B
565
566 /*
567  * Length : 11
568  * Data   :
569  * - acm max value (6bytes) // Hexadecimal value
570  * - pin2 length   (1byte)
571  * - pin2          (4byte)
572  */
573 #define GSM_SUPS_SET_ACM_MAX_REQ              0x4C
574
575 /*
576  * Length : 
577  * Data   :
578  * - AOC_CURRENCY_Code (1byte)
579  * - length            (1byte)
580  * - price             (VAR)
581  */
582 #define GSM_SUPS_AOC_SET_PPU_REQ              0x4D
583
584 /*
585  * Length : USSD String ±æÀÌ(VAR) 
586  * Data   : 
587  * - USSD String
588  */
589 #define GSM_SUPS_USSD_SEND_REQ                0x4E              
590
591 /*
592  * Length : 0
593  * Data   : 
594  * - None
595  */
596 #define GSM_SUPS_USSD_CANCEL_REQ              0x4F
597 // sunnyfan, 2005.11.09 [
598 #define GSM_SUPS_PWDSET_CB_REQ                           0x50
599 #define GSM_SUPS_SET_CB_REQ                                      0x51
600 #define GSM_SUPS_GET_CB_REQ                                      0x52
601 #define GSM_SUPS_USSD_SEND_CONFIRM            0x53
602 #define GSM_SUPS_NOTI_FEEDBACK                           0x54
603 #define GSM_SUPS_MESSAGE_FEEDBACK                        0x55
604 // sunnyfan ]
605
606
607 /*
608  * Length : 1
609  * Data   : 
610  * - Barring Facility
611  */
612 #define GSM_SUPS_CB_STATUS_REQ                0x56
613
614 /*
615  * Length : 0
616  * Data   : 
617  * - None
618  */
619 #define GSM_SUPS_GET_PPU_REQ                  0x57
620
621 /* --------------------------------------------------------------------------
622    GSM_SUPS : Notification or Response
623    --------------------------------------------------------------------------*/
624 // sunnyfan, 2006.01.19 [
625 #define GSM_SUPS_NETWORK_POPUP_MESSAGE          0x40
626 // sunnyfan ]
627 /*
628  * Length : 1(status) + 1(fac value) + 1(class)
629  * Data   :
630  * - status      (1byte) 0x00 : not active, 0x01 : active  
631  * - fac   value (1byte) mzgsmsups.h ÂüÁ¶
632  * - class value (1byte) mzgsmsups.h ÂüÁ¶
633  */
634 #define GSM_SUPS_GET_FAC_LOCK_STATUS_RES      0x41
635
636 /*
637  * Length : 1(fac value) + 1(class) + 1(mode)
638  * Data   :
639  * - result (1byte) 
640  * - fac    (1byte) mzgsmsups.h ÂüÁ¶
641  * - remain (1byte)
642  */
643 #define GSM_SUPS_SET_FAC_LOCK_STATUS_RES      0x42
644
645 /*
646  * Length : 1(status) + 1(class) + 1(number_length) + VAR(number) +
647  *          1(time)
648  * Data   :
649  * - GSM_CF_Status   (1byte) mzgsmsups.h ÂüÁ¶
650  * - GSM_ClassX      (1byte)
651  * - length          (1byte)
652  * - DN              (VAR)
653  * - time            (1byte) only 'no reply' case
654  */
655 #define GSM_SUPS_GET_CCFC_RES                 0x43
656
657 /*
658  * Length : 1(Activation Status) + 1(Network Provisioning Status)
659  * Data   :
660  * - CLIR_Activation_Status (1byte) mzgsmsups.h ÂüÁ¶
661  * - CLIR_Provision_Status  (1byte) mzgsmsups.h ÂüÁ¶
662  */
663 #define GSM_SUPS_GET_CLIR_RES                 0x44
664
665 /*
666  * Length : 1(status) + 1(class)
667  * Data   :
668  * - GSM_CW_Status   (1byte) mzgsmsups.h
669  * - GSM_ClassX      (1byte) mzgsmsups.h
670  */
671 #define GSM_SUPS_GET_CW_RES                   0x45
672
673 /*
674  * Length : 1(notify code) + 2(USSD str length) + VAR(USSD string) + 1(dcs)
675  * Data   :
676  * - USSD_Notify        (1byte) mzgsmsups.h
677  * - USSD string length (2byte)
678  * - USSD String        (VAR)
679  * - Decoding Scheme    (1byte)
680  */
681 #define GSM_SUPS_USSD_NOTI                    0x46
682
683 #define GSM_SUPS_CW_NOTI                      0x47
684
685 /*
686  * Length : 2(code) + 1(Call id)
687  * Data
688  * CSSU code 2 value (2bytes)
689  * Call id           (1byte)
690  */
691 #define GSM_SUPS_CSSU_NOTI                    0x48
692
693 /*
694  * Length : 2(code)
695  * Data
696  * CSSI code 2 value (2bytes)
697  */
698 #define GSM_SUPS_CSSI_NOTI                    0x49
699
700 /*
701  * Length : 2(code)
702  * Data
703  * CSSI code 2 value (2bytes)
704  */
705 #define GSM_SUPS_CSSI_NOTI                    0x49
706
707 /*
708  * Length : 4(code)
709  * Data
710  * CCCM code 4 value (4bytes)
711  */
712 #define GSM_SUPS_CCCM_NOTI                    0x4A
713
714 /*
715  * Length : 18
716  * Data
717  * - CCM  : 6bytes  // String type hexdecimal e.g : "00001E" indicates decimal
718  *                  // value 30
719  * - CACM : 6bytes  // type same as CCM
720  * - CAMM : 6bytes  // type same as CCM
721  */
722 #define GSM_SUPS_AOC_RES                      0x4B
723
724 /*
725  * Length : 0
726  * Data   :
727  * - None
728  */
729 #define GSM_SUPS_AOC_RESET_RES                0x4C
730
731 /*
732  * Length : 0
733  * Data   :
734  * - None
735  */
736 #define GSM_SUPS_SET_ACM_MAX_RES              0x4D
737
738 /*
739  * Length : 0
740  * Data   :
741  * - None
742  */
743 #define GSM_SUPS_AOC_SET_PPU_RES              0x4E
744
745 /*
746  * Length : 1
747  * Data   :
748  * - Result
749  */
750 #define GSM_SUPS_MMI_RES                      0x4F
751
752 #define GSM_SUPS_GET_CB_RES                                      0x50
753 #define GSM_SUPS_CB_NOTI                                                 0x51
754 #define GSM_SUPS_CB_PW_INDI                                      0x52
755
756 /*
757  * Length : 1
758  * Data   :
759  * - Result
760  */
761 #define GSM_SUPS_GET_CCFC_FAILED_RES          0x53
762
763 /*
764  * Length : 1
765  * Data   :
766  * - Result
767  */
768 #define GSM_SUPS_CB_STATUS_RES                0x54
769
770 /*
771  * Length : VAR
772  * Data   :
773  * - Result
774  */
775 #define GSM_SUPS_GET_PPU_RES                  0x55
776
777 #define GSM_SUPS_STATE                  0x56 
778 #define GSM_SUPS_CONFERENCE                     0x57 
779 #define GSM_SUPS_HOLD                   0x58 
780 #define GSM_SUPS_UNHOLD                 0x59 
781 #define GSM_SUPS_AOC_SET        0x5a 
782 #define GSM_SUPS_AOC_GET        0x5b 
783 #define GSM_SUPS_CW_SET                 0xe0 
784 #define GSM_SUPS_CW_GET                 0xe1 
785 #define GSM_SUPS_CF_SET                 0xe2 
786 #define GSM_SUPS_CF_GET                 0xe3 
787 #define GSM_SUPS_CB_SET                 0xe4 
788 #define GSM_SUPS_CB_GET                 0xe5 
789 #define GSM_SUPS_USSD_GET       0xe6 
790 #define GSM_SUPS_USSD_SET       0xe7 
791
792 /* --------------------------------------------------------------------------
793    GSM_MISC : misc Functions
794    --------------------------------------------------------------------------*/
795
796 /*
797  * Length : 2
798  * - CMD ID       (2bytes) Debug command ID
799  */
800 #define GSM_MISC_DEBUG_REQ                    0x61
801
802 /*
803  * Length : 4
804  * - CMD ID       (2bytes) Debug command ID
805  * - param1       (1byte)  H/W ¼³Á¤À» À§ÇÑ parameter1
806  * - param2       (1byte)  H/W ¼³Á¤À» À§ÇÑ parameter2
807  */
808 #define GSM_MISC_DEBUG_HW_REQ                 0x62
809
810 /*
811  * Length : 1
812  * - RAMDUMP Trace (1byte) RAMDUMP¸¦ acceptÇÒ°ÍÀÎÁöÀÇ ¿©ºÎ
813  */
814 #define GSM_MISC_RAMDUMP_REQ                  0x63
815
816 /*
817  * Length : 0
818  * - IMEI Á¶È¸
819  */
820 #define GSM_MISC_IMEI_REQ                     0x64
821
822 /*
823  * Length : 0
824  * - IMSI Á¶È¸
825  */
826 #define GSM_MISC_IMSI_REQ                     0x65
827
828 /*
829  * Length : 0
830  * - Phone Version Á¶È¸
831  */
832 #define GSM_MISC_VERSION_INFO_REQ             0x66
833
834 /*
835  * Length : 0
836  * - SIMÀÇ »óÅ¿͠¸Á»óŸ¦ Á¶È¸ÇÑ´Ù.
837  */
838 #define GSM_MISC_INTERNAL_MODE_REQ            0x67
839
840 /* --------------------------------------------------------------------------
841    GSM_DISPLAY : Notification or Response
842    --------------------------------------------------------------------------*/
843
844 /*
845  * Length : (1) + VAR
846  * - String Length 1byte
847  * - String        VAR
848  */
849 #define GSM_MISC_DEBUG_NOTI                   0x61
850
851 /*
852  * Length : (1) + VAR
853  * - String Length 1byte
854  * - String        VAR
855  */
856 #define GSM_MISC_RESET_NOTI                   0x62
857
858 /*
859  * Length : (1) + (2)
860  * - Error type : (1byte) mzgsmerror.h ÂüÁ¶
861  * - CME or CMS : (2bytes)CME È¤Àº CMS ¿¡·¯ÄÚµå
862  */
863 #define GSM_MISC_ERROR_RESPONSE               0x63
864
865 /*
866  * Length : (1) + VAR
867  * - String Length 1byte
868  * - String        VAR
869  */
870 #define GSM_MISC_IMEI_RES                     0x64
871
872 /*
873  * Length : (1) + VAR
874  * - String Length 1byte
875  * - String        VAR
876  */
877 #define GSM_MISC_IMSI_RES                     0x65
878
879 /*
880  * Length : (1) + VAR
881  * - String Length 1byte
882  * - String        VAR
883  */
884 #define GSM_MISC_RESET_RES                    0x66
885
886 /*
887  * Length : 32 + 32
888  * - Phone Version
889  */
890 #define GSM_MISC_VERSION_INFO_RES                       0x67
891
892 // sunnyfan, 2006.02.07 [
893 #define GSM_MISC_SLEEP_BY_PHONE_NOTI                    0x68
894 #define GSM_MISC_DIAG_KEYCODE_NOTI                              0x69
895 #define GSM_MISC_BT_TEST_MODE_NOTI                              0x70    // sunnyfanbt
896 // sunnyfan ]
897
898 /* --------------------------------------------------------------------------
899    GSM_DISPLAY : Functions for Indicator
900    --------------------------------------------------------------------------*/
901
902 /*
903  * Declare Display Functions constant.
904  */
905
906 /* --------------------------------------------------------------------------
907    GSM_DISPLAY : Notification or Response
908    --------------------------------------------------------------------------*/
909
910 /*
911  * Length : 2bytes
912  * Data   :
913  * - Indicator (1byte) mzgsmmisc.h¿¡ Àִ °ª°ú ¼³¸íÀ» ÂüÁ¶
914  * - Value     (1byte) 
915  */
916 #define GSM_DISPLAY_INDICATOR_NOTI            0x71
917
918 /* --------------------------------------------------------------------------
919    GSM_SIM : SIM card Functions
920    --------------------------------------------------------------------------*/
921
922 /*
923  * Length : VAR
924  * Data   :
925  * - PIN2 (VAR)
926  */
927
928 //#define GSM_SIM_PIN2_REQ                      0x81
929 #define GSM_SIM_SELECT_PB_STORAGE_REQ         0x82
930 #define GSM_SIM_PB_READ_REQ                   0x83
931 #define GSM_SIM_PB_WRITE_REQ                  0x84
932 #define GSM_SIM_PB_ERASE_REQ                  0x85
933 #define GSM_SIM_PB_CLEAR_REQ                  0x86
934 #define GSM_SIM_WRITE_VOICE_MAIL_REQ          0x87
935 #define GSM_SIM_READ_VOICE_MAIL_REQ           0x88
936
937
938 #define GSM_SIM_PIN_REQ                       0x89  //GVSM does not uesd this
939 #define GSM_SIM_PUK_REQ                       0x8A //state
940 #define GSM_SIM_CHANGE_PW_REQ                 0x8B
941 #define GSM_SIM_CRSM_GET_REQ                  0x8C
942 #define GSM_SIM_PUK2_REQ                      0x8D
943 #define GSM_SIM_PB_READY_REQ                  0x8E
944 #define GSM_SIM_CRSM_READ_BIN_REQ             0x8F
945 #define GSM_SIM_CRSM_READ_RECORD_REQ          0x90
946 #define GSM_SIM_GET_ALS_REQ                   0x91
947 #define GSM_SIM_SET_ALS_REQ                   0x92
948 #define GSM_SIM_CRSM_UPDATE_RECORD_REQ        0x93
949 #define GSM_SIM_CRSM_UPDATE_BIN_REQ           0x94
950 #define GSM_SIM_SELECT_SM_STORAGE_REQ         0x95
951 #define GSM_SIM_SM_ERASE_REQ                  0x96
952 #define GSM_SIM_SEC_STATUS_REQ                0x97
953
954 #define GSM_SIM_PB_CAPACITY_REQ               0x98
955 #define GSM_PB_ACCESS_REQ                                       0x99
956 #define GSM_PB_STORAGE_REQ                                      0x9A
957 #define GSM_SIM_PHONELOCK_STATUS_REQ                    0x9B
958 #define GSM_SIM_SET_PHONELOCK_REQ                       0x9C
959 #define GSM_PB_RECORD_ADD_REQ                           0x9D
960 #define GSM_PB_RECORD_DEL_REQ                           0x9E
961 #define GSM_PB_RECORD_EDIT_REQ                          0x9F
962 #define GSM_SIM_LOCK_INFO_REQ                           0xA0
963 #define GSM_PB_SET_STORAGE_TYPE_REQ                     0xA1
964 #define GSM_SIM_SECURITY_STATUS_REQ                     0xA2
965 #define GSM_PB_ENTRY_INFO_REQ                           0xA3
966 #define GSM_SIM_LOCK_PASSWORD_REQ             0xA4
967 #define GSM_SIM_CARD_READY_REQ                0xA5
968 #define GSM_SIM_PIN2_RES                      0x81
969 #define GSM_SIM_SECURITY_STATUS_RES           0x82
970 #define GSM_SIM_SELECT_PB_STORAGE_RES         0x83
971 #define GSM_SIM_PB_READ_RES                   0x84
972 #define GSM_SIM_PB_ACTION_RES                 0x85
973 #define GSM_SIM_AUTH_RES                      0x86
974 #define GSM_SIM_CHANGE_PW_RES                 0x87
975 #define GSM_SIM_PB_READY_RES                  0x88
976 #define GSM_SIM_CRSM_GET_RES                  0x89
977 #define GSM_SIM_CRSM_READ_BIN_RES             0x8A
978 #define GSM_SIM_CRSM_READ_RECORD_RES          0x8B
979 #define GSM_SIM_GET_ALS_RES                   0x8C
980 #define GSM_SIM_SET_ALS_RES                   0x8D
981 #define GSM_SIM_CRSM_UPDATE_RECORD_RES        0x8E
982 #define GSM_SIM_SELECT_SM_STORAGE_RES         0x8F
983 #define GSM_SIM_SM_ACTION_RES                 0x90
984 #define GSM_SIM_AUTH_PIN2_RES                 0x91
985 #define GSM_SIM_CDCI_NOTI                     0x92
986 #define GSM_SIM_SEC_STATUS_RES                0x93
987 #define GSM_SIM_PB_CAPACITY_RES               0x94
988 #define GSM_PB_ACCESS_RES                                       0x95
989 #define GSM_PB_STORAGE_RES                                      0x96
990 #define GSM_SIM_PHONELOCK_STATUS_RES                    0x97
991 #define GSM_SIM_SET_PHONELOCK_RES                       0x98
992 #define GSM_SIM_CHANGE_LOCKING_PW_RES           0x99
993 #define GSM_PB_ACCESS_ERROR_RES                         0x9A
994 #define GSM_SIM_PUK_RES                                         0x9B
995 #define GSM_SIM_PUK2_RES                                                0x9C
996 #define GSM_SIM_LOCK_INFO_RES                           0x9D
997 #define GSM_PB_ENTRY_INFO_RES                           0x9E
998 #define GSM_SIM_LOCK_PASSWORD_RES             0x9F
999 // sunnyfan, 2005.12.16, for CPHS [
1000 #define GSM_SIM_SET_CFL_REQ                                     0xB1
1001 #define GSM_SIM_SET_CFL_RES                                     0xB2
1002 #define GSM_SIM_SET_VMW_REQ                                     0xB3
1003 #define GSM_SIM_SET_VMW_RES                                     0xB4
1004 // 2006.01.02
1005 #define GSM_SIM_EF_SELECT_REQ                           0xB5
1006 #define GSM_SIM_EF_SELECT_RES                           0xB6
1007 #define GSM_SIM_PIN_RES                                         0xB7
1008 //
1009 #define GSM_SIM_INIT_REQ                                                0xB8//state
1010 #define GSM_SIM_FRIZEN                                          0xb9//state
1011 #define GSM_SIM_PIN2_REQ                                                0xba
1012 #define GSM_SIM_READY                                           0xbb//state
1013 #define GSM_SIM_WRONG_STATUS_TYPE                        0xbc
1014 #define GSM_SIM_STATUS_SET                                        0xbd
1015 #define GSM_SIM_CHANGE_PASS_SET                                   0xbe
1016 #define GSM_SIM_FACILITY_SET                                     0xbf
1017 #define GSM_SIM_NO_SIM                                                   0xa0 //state
1018 #define GSM_SIM_PIN_REQ_STATE                           0xa1
1019 #define GSM_SIM_FDN_STATE                                       0xa2
1020 #define GSM_SIM_FACILITY_PIN                                    0xa3
1021 #define GSM_SIM_FACILITY_FDN                                    0xa4
1022 #define GSM_SIM_PIN2_OK                                         0xa5
1023 #define GSM_SIM_FACILITY_RES                                    0xa6
1024 #define GSM_SIM_GET_SIM_DB_REQ                          0xa7
1025 #define GSM_SIM_GET_SIM_DB_RES                          0xa8
1026 #define GSM_SIM_MAKE_PB_DB_REQ                          0xa9
1027 #define GSM_SIM_ADD_PB_DB_REQ                           0xaa
1028 #define GSM_SIM_GET_PB_DB_REQ                           0xab
1029 #define GSM_SIM_DELETE_PB_DB_REQ                                0xac
1030 #define GSM_SIM_GET_PB_ST_INFO_RES                      0xad
1031 #define GSM_SIM_SET_PB_STORAGE_REQ                      0xae
1032 #define GSM_SIM_GET_ALL_PB_DB_REQ                          0xaf
1033 #define GSM_SIM_ADD_EVENT_PB_DB_REQ                    0xb0
1034 #define GSM_SIM_DELETE_EVENT_PB_DB_REQ                          0xb1
1035 #define GSM_SIM_PROTECT_SIM_DB                          0xc0
1036 #define GSM_SIM_PUKSET_REQ                       0xc1 //set
1037 #define GSM_SIM_PUK2SET_REQ                       0xc2 //set
1038    
1039 #define GSM_SIMINFO_REQ                                                 0xD1    //get SIMINFO
1040 #define GSM_SIMDATA_REQ                                                 0xD2    //get SIMDATA
1041 #define GSM_SIMINFO_RES                                                 0xD3    //get SIMINFO
1042 #define GSM_SIMDATA_RES                                                 0xD4    //get SIMDATA
1043 #define GSM_SIMSAVE_REQ                                                 0xD5    //get SIMSAVE
1044 #define GSM_SIM_REINIT_REQ                                                      0xD6    //get SIMSAVE
1045 #define GSM_SIM_ERR_ADD_NOTI                                    0xD7
1046 #define GSM_SIM_ERR_DEL_NOTI                                    0xD8
1047
1048 //
1049 //SAT
1050 #define GSM_SAT_CMD_MENU_SELECTION                      0xd3
1051
1052 #define GSM_SAT_CMD_DISPLAY_TEXT                                0x01
1053 #define GSM_SAT_CMD_GET_INKEY                                   0x02
1054 #define GSM_SAT_CMD_GET_INPUT                                   0x03
1055 #define GSM_SAT_CMD_SET_UP_MENU                         0x04
1056 #define GSM_SAT_CMD_SELECT_ITEM                         0x05
1057 #define GSM_SAT_CMD_SEND_SMS                            0x06
1058 #define GSM_SAT_CMD_SET_UP_CALL                         0x07
1059
1060 // 090908 for FUNC_EDB
1061 #define FUNC_GET_PB_DB_REQ                              0x01
1062 #define FUNC_DEL_PB_DB_REQ                              0x02
1063 #define FUNC_ADD_PB_DB_REQ                              0x03
1064 #define FUNC_GET_ONE_PB_DB_REQ                          0x04
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078     
1079     
1080      
1081 /* --------------------------------------------------------------------------
1082    GSM_DATA : Data Service Functions
1083    --------------------------------------------------------------------------*/
1084 /*
1085  * Length : VAR
1086  * Data   :
1087  * - APN Name (VAR)
1088  */
1089 #define GSM_DATA_GPRS_REQ                     0xA1
1090
1091 /*
1092  * Length : VAR
1093  * Data   :
1094  * - Dial Number (VAR)
1095  */
1096 #define GSM_DATA_GSM_REQ                      0xA2
1097
1098 // EMTRACE_I878 [
1099 /*
1100  * Length : VAR
1101  * Data   :
1102  * nsclass : for multiple PDP
1103  */
1104 #define GSM_DATA_IP_ADDR_REQ                                            0xA3
1105
1106 /*
1107  * Length : VAR
1108  * Data   :
1109  * nsclass : for multiple PDP
1110  */
1111 #define GSM_DATA_CLOSE_REQ                                              0xA4
1112 // EMTRACE_I878, civily YK11 ]
1113
1114 // nsclass
1115 #define GSM_DATA_EXTERNAL_HANGUP_REQ                            0xA5
1116
1117 /*
1118  * Length : 0
1119  */
1120 #define GSM_DATA_HANGUP_REQ                   0xA6
1121
1122 /* --------------------------------------------------------------------------
1123    GSM_DATA : Notification or Response
1124    --------------------------------------------------------------------------*/
1125 /*
1126  * Length : 1
1127  * - State        (1byte) mzgsmnet.h¿¡ Àִ °ª°ú ¼³¸íÀ» ÂüÁ¶
1128  * GPRS state¿Í Network Registration state´Â À¯»çÇϹǷΠ°°ÀÌ »ç¿ëÇÑ´Ù.
1129  */
1130 #define GSM_DATA_GPRS_REG_NOTI                0xA1
1131
1132 /*
1133  * Length : NONE
1134  */
1135 #define GSM_DATA_GPRS_RES                     0xA2
1136
1137 /*
1138  * Length : NONE
1139  */
1140 #define GSM_DATA_GSM_RES                      0xA3
1141
1142 /*
1143  * Length : 1
1144  * dummy 1 byte (»ç¿ëÇÏÁö ¾ÊÀ½)
1145  */
1146 #define GSM_DATA_CSD_CONNECT_NOTI             0xA4
1147
1148 /*
1149  * Length : 0
1150  */
1151 #define GSM_DATA_CSD_FAILED_NOTI              0xA5
1152
1153 // nsclass : multiple PDP
1154 #define GSM_DATA_IP_ADDR_RES                                            0xA6
1155
1156 // nsclass : multiple PDP status
1157 #define GSM_DATA_STATUS_RES                                             0xA7
1158
1159 // nsclass : for data relase noti
1160 #define GSM_DATA_PDP_CONNECT_NOTI                               0xA8
1161
1162 // nsclass : for data relase noti
1163 #define GSM_DATA_PDP_DISCONNECT_NOTI                            0xA9
1164
1165 // nsclass : for data svc noti
1166 #define GSM_DATA_EXTERNAL_SVC_NOTI                              0xAA
1167
1168 /*
1169  * Length : 2
1170  * GSM_DataService 1 byte (mzgsmnet.h)
1171  * GSM_DataStatus  1 byte (mzgsmnet.h)
1172  */
1173 #define GSM_DATA_SERVICE_STATUS_RES           0xAB
1174
1175 /*
1176  * Length : 1
1177  */
1178 #define GSM_DATA_HANGUP_RES             0xAC
1179
1180 /*
1181  * Length : 4
1182  * rx : 2byte
1183  * tx : 2byte
1184  */
1185 #define GSM_DATA_SMPCTR_NOTI            0xAD
1186
1187 /*
1188  * Length : 1
1189  * 0: stop, 1: start
1190  */
1191 #define GSM_DATA_STATE                          0xAE
1192
1193 /*
1194  * Length : 1
1195  * 0: stop, 1: start
1196  */
1197 #define GSM_DATA_STATUS                 0xAE
1198
1199 // add by mckim: for informing evt injector with the initial data restored from DB
1200 #define GSM_DATA_GPRS_INIT_REQ  0xAF
1201
1202 /* --------------------------------------------------------------------------
1203    GSM_EXT : °øÁ¤ ¸ðµå 
1204    --------------------------------------------------------------------------*/
1205 /*
1206  * Length : IMEI ±æÀÌ (VAR) 
1207  * Data   : 
1208  * - IMEI Value
1209  */
1210 #define GSM_EXT_SET_IMEI_REQ                  0xB1
1211
1212 /*
1213  * Length : BTMAC ±æÀÌ (VAR) 
1214  * Data   : 
1215  * - BTMAC Value
1216  */
1217 #define GSM_EXT_SET_BTMAC_REQ                 0xB2
1218
1219 /*
1220  * Length : 0
1221  * Data   : 
1222  * - None
1223  */
1224 #define GSM_EXT_GET_BTMAC_REQ                 0xB3
1225
1226 /*
1227  * Length : 1
1228  * Data   : 
1229  * - mode : up Or down
1230  */
1231 #define GSM_EXT_SET_VOICE_VOL_REQ             0xB4
1232
1233 /*
1234  * Length : 1
1235  * Data   : 
1236  * - path : Audio path
1237  */
1238 #define GSM_EXT_SET_AUDIO_PATH_REQ            0xB5
1239
1240 /*
1241  * Length : 1
1242  * Data   : 
1243  * - path : Phone State
1244  */
1245 #define GSM_EXT_SET_INTERNAL_STATE_REQ        0xB6
1246 /* --------------------------------------------------------------------------
1247    GSM_EXT : Notification or Response
1248    --------------------------------------------------------------------------*/
1249 /*
1250  * Length : 1
1251  * Data   : 
1252  * - result
1253  */
1254 #define GSM_EXT_SET_IMEI_RES                  0xB1
1255
1256 /*
1257  * Length : 1
1258  * Data   : 
1259  * - result
1260  */
1261 #define GSM_EXT_SET_BTMAC_RES                 0xB2
1262
1263 /*
1264  * Length : 1 + VAR
1265  * Data   : 
1266  * - mac length
1267  * - mac value
1268  */
1269 #define GSM_EXT_GET_IMEI_RES                  0xB3
1270
1271 /*
1272  * Length : 1
1273  * Data   : 
1274  * - result
1275  */
1276 #define GSM_EXT_BATT_INFO_NOTI                0xB4
1277
1278 /*
1279  * Length : 1
1280  * Data   : 
1281  * - result
1282  */
1283 #define GSM_EXT_PHONE_POWER_ON_RES            0xB5
1284
1285 // sunnyfan, 2005.09.26 [
1286 #define GSM_SUPS_GENRES_CW                                       0xA0
1287 #define GSM_SUPS_GENRES_CLI                                      0xA1
1288 #define GSM_SUPS_GENRES_CB                                       0xA2
1289 #define GSM_SUPS_GENRES_CBPW                                     0xA3
1290 #define GSM_SUPS_GENRES_CF                                       0xA4
1291 #define GSM_SUPS_GENRES_MANAGE                           0xA5
1292 #define GSM_SUPS_GENRES_USSD                                     0xA6
1293 #define GSM_SUPS_GENRES_SSINFO                           0xA7
1294 #define GSM_SUPS_GENRES_SSMAX                            0xA8
1295 #define GSM_SUPS_GENRES_UNKNOWN                          0xAA
1296 #define GSM_SUPS_INFORMATION                                     0xB0
1297 // sunnyfan ]
1298
1299
1300 // sunnyfan, 2005.11.04 [ for SAT Response
1301 #define GSM_GENRES_CALLOUTGOING                                  0xB6
1302 // sunnyfan ]
1303
1304
1305 /* --------------------------------------------------------------------------
1306    GSM_SMS : SMS Functions
1307    --------------------------------------------------------------------------*/
1308 #define GSM_SMS_SEND_MSG_REQ                                    0x01
1309 #define GSM_SMS_READ_MSG_REQ                                    0x02
1310 #define GSM_SMS_SAVE_MSG_REQ                                    0x03
1311 #define GSM_SMS_DEL_MSG_REQ                                     0x04
1312 #define GSM_SMS_SEND_ACK_REQ                                    0x05
1313 #define GSM_SMS_GET_SEL_MEM_REQ                         0x06
1314 #define GSM_SMS_SET_SEL_MEM_REQ                         0x07
1315 #define GSM_SMS_STORED_MSG_CNT_REQ                      0x08
1316 #define GSM_SMS_GET_MSG_CONFIG_REQ                      0x09
1317 #define GSM_SMS_SET_MSG_CONFIG_REQ                      0x0A
1318 #define GSM_SMS_GET_SVC_OPTION_REQ                      0x0B
1319 #define GSM_SMS_SET_SVC_OPTION_REQ                      0x0C
1320 #define GSM_SMS_MEM_FULL_REQ                                    0x0D
1321 // by luxmea, 2005.11.16 [
1322 #define GSM_SMS_GET_CB_CONFIG_REQ        0x0E
1323 #define GSM_SMS_SET_CB_CONFIG_REQ        0x0F
1324 #define GSM_SMS_SET_MSG_STATUS_REQ       0x10
1325 #define GSM_SMS_SET_BLK_LIST_REQ         0x11
1326 // by luxmea ]
1327 #define GSM_SMS_INCOMING_CB_MSG_REQ             0x12
1328   
1329 /* --------------------------------------------------------------------------
1330    GSM_SMS : Notification or Response
1331    --------------------------------------------------------------------------*/
1332 #define GSM_SMS_INCOMING_MSG_NOTI                       0x01
1333 #define GSM_SMS_READ_MSG_RES                                    0x02
1334 #define GSM_SMS_RECEIVE_ACK_NOTI                                0x03
1335 #define GSM_SMS_SEL_MEM_RES                                     0x04
1336 #define GSM_SMS_STORED_MSG_CNT_RES                      0x05
1337 #define GSM_SMS_MSG_CONFIG_RES                          0x06
1338 #define GSM_SMS_SVC_OPTION_RES                          0x07
1339 #define GSM_SMS_MEM_FULL_NOTI                           0x08
1340 #define GSM_SMS_ACTION_STATUS_NOTI                      0x09
1341 // by luxmea, 2005.11.16 [
1342 #define GSM_SMS_CB_CONFIG_RES        0x0A
1343 // by luxmea ]
1344 #define GSM_SMS_STORED_MSG_CNT_NOTI           0x0B        // by luxmea
1345 #define GSM_SMS_RECEIVE_RES             0x0C
1346
1347
1348 /* --------------------------------------------------------------------------
1349    GSM_SAT : SAT functions
1350    --------------------------------------------------------------------------*/
1351 #define GSM_SAT_PROFILE_DOWNLOAD_SET               0x01
1352 #define GSM_SAT_ENVELOPE_COMMAND_REQ               0x02
1353 #define GSM_SAT_PROACTIVE_COMMAND_GET              0x03
1354 #define GSM_SAT_PROVIDE_LOCAL_INFOMATION_GET       0x04
1355 #define GSM_SAT_POLLING_GET                        0x05
1356 #define GSM_SAT_REFRESH_GET                        0x06
1357 #define GSM_SAT_SETUP_EVENT_LIST_GET               0x07
1358 #define GSM_SAT_TERMINATE_SESSION_SET              0x08
1359 #define GSM_SAT_PROACTIVE_COMMAND_SEND              0x09
1360 //////////////////////////////////////////////////////////////////////////
1361 #define GSM_SAT_PROACTIVE_DISPLAY_TEXT              0xa0
1362 #define GSM_SAT_PROACTIVE_GET_INKEY                    0xa1
1363 #define GSM_SAT_PROACTIVE_GET_INPUT                    0xa2
1364 #define GSM_SAT_PROACTIVE_SET_MENU                     0xa3
1365 #define GSM_SAT_PROACTIVE_SELECT_ITEM                  0xa4
1366 #define GSM_SAT_PROACTIVE_SEND_SMS                     0xa5
1367 #define GSM_SAT_PROACTIVE_SET_UP_CALL                  0xa6
1368
1369
1370
1371 /* --------------------------------------------------------------------------
1372    GSM_SAT : Notification or Response
1373    --------------------------------------------------------------------------*/
1374 #define GSM_SAT_PROACTIVE_COMMAND_INDICATION       0x01
1375 #define GSM_SAT_PROACTIVE_COMMAND_RESPONSE         0x02
1376 #define GSM_SAT_ENVELOPE_COMMAND_NOTIFICATION      0x03
1377 #define GSM_SAT_PROVIDE_LOCAL_INFOMATION_RESPONSE  0x04
1378 #define GSM_SAT_POLLING_RESPONSE                   0x05
1379 #define GSM_SAT_REFRESH_RESPONSE                   0x06
1380 #define GSM_SAT_REFRESH_NOTIFICATION               0x07
1381 #define GSM_SAT_SETUP_EVENT_LIST_RESPONSE          0x08
1382 ///////////////////////////////////////////////////////////////////////////
1383
1384
1385
1386 /* --------------------------------------------------------------------------
1387    GSM_SOUND : Sound functions
1388    --------------------------------------------------------------------------*/
1389
1390 #define GSM_SND_KEY_TONE_REQ                                            0x01
1391 #define GSM_SND_NOTI_TONE_REQ                                   0x02
1392 #define GSM_SND_LED_CTRL_REQ                                            0x03
1393 #define GSM_SND_VIB_CTRL_REQ                                            0x04
1394 #define GSM_SND_GET_SPKR_VOLUME_CTRL_REQ                        0x05
1395 #define GSM_SND_SET_SPKR_VOLUME_CTRL_REQ                        0x06
1396 #define GSM_SND_GET_MIC_GAIN_CTRL_REQ                   0x07
1397 #define GSM_SND_SET_MIC_GAIN_CTRL_REQ                   0x08
1398 #define GSM_SND_GET_MIC_MUTE_CTRL_REQ                   0x09
1399 #define GSM_SND_SET_MIC_MUTE_CTRL_REQ                   0x0A
1400 #define GSM_SND_SPKR_PHONE_CTRL_REQ                             0x0B
1401 #define GSM_SND_HFK_AUDIO_STARTSTOP_REQ                 0x0C
1402 #define GSM_SND_VOICECALL_RECORD_REPORT_REQ             0x0D
1403 #define GSM_SND_AUDIO_PATH_CTRL_REQ                             0x0E
1404 #define GSM_SND_SET_USER_CONFIG                                 0x0F
1405 #define GSM_SND_GET_GAIN_CTRL_REQ                               0x10
1406 #define GSM_SND_SET_GAIN_CTRL_REQ                               0x11
1407
1408 /* --------------------------------------------------------------------------
1409    GSM_SOUND : Notification or Response
1410    --------------------------------------------------------------------------*/
1411 #define GSM_SND_SPKR_VOLUME_CTRL_RES                            0x01
1412 #define GSM_SND_MIC_GAIN_CTRL_RES                               0x02
1413 #define GSM_SND_SET_MIC_MUTE_CTRL_RES                   0x03
1414 #define GSM_SND_AUDIO_SOURCE_CTRL_NOTI                  0x04
1415 #define GSM_SND_GAIN_CTRL_RES                                   0x05
1416 #define GSM_SND_GAIN_CTRL_NOTI                                  0x06
1417
1418 /* --------------------------------------------------------------------------
1419    GSM_SERVICEMODE : Service Mode functions
1420    --------------------------------------------------------------------------*/
1421 #define GSM_SVCMODE_ENTER_REQ                           0x01
1422 #define GSM_SVCMODE_END_REQ                                     0x02
1423 #define GSM_SVCMODE_PROCESS_KEY_REQ                     0x03
1424 //#define GSM_SVCMODE_GET_HW_SOUND_CONFIG_REQ   0x04
1425 //#define GSM_SVCMODE_SET_HW_SOUND_CONFIG_REQ   0x05
1426
1427 /* --------------------------------------------------------------------------
1428    GSM_SERVICEMODE : Notifications or Responses
1429    --------------------------------------------------------------------------*/
1430 #define GSM_SVCMODE_ENTER_NOTI                          0x01
1431 #define GSM_SVCMODE_END_NOTI                                    0x02
1432 #define GSM_SVCMODE_SCREEN_CONFIG_NOTI          0x03
1433 #define GSM_SVCMODE_DISPLAY_NOTI                                0x04
1434 //#define GSM_SVCMODE_HW_SOUND_CONFIG_RES               0x05
1435 //#define GSM_SVCMODE_HW_SOUND_CONFIG_NOTI              0x06
1436
1437 /* --------------------------------------------------------------------------
1438    GSM_EMULATOR
1439    --------------------------------------------------------------------------*/
1440
1441 /*
1442  * Length : HDLC ±æÀÌ
1443  * Data   : HDLC
1444  * - Caller ID
1445  */
1446 #define GSM_EMULATOR_HDLC_REQ                           0x01
1447 #define GSM_EMULATOR_HDLC_MODE                          0x02
1448 #define GSM_EMULATOR_HDLC_CLEAR                         0x03
1449 #define GSM_EMULATOR_SET_CALL_GENERAL_RESPONSE_ERROR            0x04
1450 #define GSM_EMULATOR_SET_CALL_STATUS_ERROR                      0x05
1451 #define GSM_EMULATOR_SET_SCA                                    0x06
1452 #define GSM_EMULATOR_SET_SS_GENERAL_RESPONSE_ERROR              0x07
1453 #define GSM_EMULATOR_CLIENT_RELEASE_NOTI        0X08
1454 #define GSM_EMULATOR_SET_SS_HOLD_RESPONSE_ERROR 0x09
1455 #define GSM_EMULATOR_SET_SS_RETRIEVE_RESPONSE_ERROR 0x0a
1456 #define GSM_EMULATOR_SET_SS_JOIN_RESPONSE_ERROR                 0x0b
1457 #define  GSM_EMULATOR_SET_SS_SPLIT_RESPONSE_ERROR               0x0c
1458 #define  GSM_EMULATOR_SET_SS_TRANSFER_RESPONSE_ERROR    0x0d
1459
1460
1461
1462 /* --------------------------------------------------------------------------
1463    GSM_POWER
1464    --------------------------------------------------------------------------*/
1465
1466 #define GSM_POWER_MODEM_ON_REQ                          0x01
1467 #define GSM_POWER_MODEM_OFF_REQ                         0x02
1468 #define GSM_POWER_BATTERY_STATUS_NOTI                           0x02
1469
1470
1471 /* --------------------------------------------------------------------------
1472    GSM_GPRS
1473    --------------------------------------------------------------------------*/
1474 /*
1475  * Length           : 23 bytes
1476  * cid              : 1 byte
1477  * field_flag       : 2 bytes
1478  * ip_address       : 4 bytes
1479  * primary_dns      : 4 bytes
1480  * secondary_dns    : 4 bytes
1481  * default_gateway  : 4 bytes
1482  * subnet_mask      : 4 bytes
1483  */
1484 //#define GSM_GPRS_IP_CONFIGURATION     0x01
1485
1486 #endif // _vgsm_phone_h_