FreeCalypso > hg > leo2moko-debug
comparison g23m/condat/ms/src/aci/cmh_phb.h @ 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 : CMH_PHB | |
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 | phonebook management. | |
19 +----------------------------------------------------------------------------- | |
20 */ | |
21 | |
22 #ifndef CMH_PHB_H | |
23 #define CMH_PHB_H | |
24 | |
25 /*==== CONSTANTS ==================================================*/ | |
26 | |
27 #define PHB_CMH_IDX_MAX (255) /* index maximum value */ | |
28 #define PHB_CMH_IDX_MIN (1) /* index minimum value */ | |
29 | |
30 #define PHB_TONPI_NO_DIAL 0xFF /* SSC String contains no */ | |
31 /* dialling number */ | |
32 #define PHB_DIAL_WAIT ('W') /* Dial str. wait for confirm */ | |
33 #define PHB_DIAL_PAUSE ('P') /* DTMF 3 sec pause character */ | |
34 #define PHB_DTMF_SEP ('P') /* DTMF separator character */ | |
35 #define PHB_WILD_CRD ('?') /* PHB wild card character */ | |
36 #define PHB_EXP_DIGIT ('E') /* 11.11 Expansion digit (n.a.) */ | |
37 | |
38 /*==== TYPES ======================================================*/ | |
39 | |
40 /*==== PROTOTYPES =================================================*/ | |
41 | |
42 GLOBAL BOOL cmhPHB_rplcIntnl ( CHAR* inNumber, | |
43 CHAR* outNumber, | |
44 UBYTE inCnt ); | |
45 GLOBAL BOOL cmhPHB_cvtPhbType ( T_ACI_PB_STOR inMem, | |
46 T_PHB_TYPE* outMem ); | |
47 GLOBAL BOOL cmhPHB_cvtPhbPsaType | |
48 ( T_PHB_TYPE inMem, | |
49 T_ACI_PB_STOR* outMem ); | |
50 GLOBAL void cmhPHB_toaMrg ( T_ACI_TOA* type, | |
51 UBYTE* octet ); | |
52 GLOBAL void cmhPHB_toaDmrg ( UBYTE octet, | |
53 T_ACI_TOA* type ); | |
54 GLOBAL void cmhPHB_getAdrBcd ( UBYTE* pBcd, | |
55 UBYTE* pNumDigits, | |
56 UBYTE maxDigits, | |
57 CHAR* pStr ); | |
58 GLOBAL UBYTE cmhPHB_getAdrStr ( CHAR* pStr, | |
59 UBYTE maxIdx, | |
60 const UBYTE* pBcd, | |
61 UBYTE numDigits ); | |
62 GLOBAL void cmhPHB_cpyRecEntr ( T_ACI_PB_ENTR* entry, | |
63 #ifdef TI_PS_FFS_PHB | |
64 T_PHB_TYPE book, | |
65 #endif | |
66 const T_PHB_RECORD* record ); | |
67 GLOBAL void cmhPHB_invldEntr ( T_ACI_PB_ENTR* entry ); | |
68 | |
69 GLOBAL T_ACI_RETURN cmhPHB_PlusCPBF ( T_ACI_CMD_SRC srcId, | |
70 T_ACI_PB_TEXT *findtext, | |
71 T_ACI_SR_TYP type, | |
72 T_ACI_CPBF_MOD mode, | |
73 SHORT* firstIdx, | |
74 SHORT* found, | |
75 T_ACI_PB_ENTR* pbLst ); | |
76 GLOBAL T_ACI_RETURN cmhPHB_PlusCPBR ( T_ACI_CMD_SRC srcId, | |
77 T_ACI_SR_TYP type, | |
78 SHORT startIdx, | |
79 SHORT stopIdx, | |
80 SHORT* lastIdx, | |
81 T_ACI_PB_ENTR* pbLst ); | |
82 GLOBAL void cmhPHB_getTagNt ( UBYTE* inTag, | |
83 UBYTE maxInLen, | |
84 CHAR* outTag, | |
85 UBYTE maxOutLen ); | |
86 GLOBAL void cmhPHB_getTagSim ( T_ACI_PB_TEXT *inTag, | |
87 UBYTE* outTag, | |
88 UBYTE maxOutLen ); | |
89 GLOBAL void cmhPHB_invldPhbDateTime | |
90 ( T_PHB_RECORD* record ); | |
91 GLOBAL void cmhPHB_invldCmhDateTime | |
92 ( T_ACI_VP_ABS* dateTime ); | |
93 GLOBAL void cmhPHB_cpyCmhDateTime | |
94 ( const T_ACI_VP_ABS* dateTime, | |
95 T_PHB_RECORD* record ); | |
96 GLOBAL void cmhPHB_cpyPhbDateTime | |
97 ( const T_PHB_RECORD* record, | |
98 T_ACI_VP_ABS* dateTime ); | |
99 GLOBAL void cmhPHB_StatIndication | |
100 ( T_PHB_STAT psaStatus, | |
101 SHORT cmeError, | |
102 BOOL indicate ); | |
103 | |
104 GLOBAL void cmhPHB_getMfwTagSim ( T_ACI_PB_TEXT* inTag, | |
105 UBYTE* outTag, | |
106 UBYTE* outTagLen, | |
107 UBYTE maxOutLen ); | |
108 GLOBAL void cmhPHB_getMfwTagNt ( const UBYTE* inTag, | |
109 UBYTE maxInLen, | |
110 UBYTE* outTag, | |
111 UBYTE* maxOutLen ); | |
112 | |
113 GLOBAL CHAR cmhPHB_convertBCD2char ( UBYTE bcd ); | |
114 | |
115 GLOBAL void cmhPHB_ksdDecodeToa (CHAR* number, | |
116 CHAR** pNumber, | |
117 T_PHB_RECORD* entry); | |
118 | |
119 /*==== EXPORT =====================================================*/ | |
120 | |
121 #ifdef CMH_PHBF_C | |
122 | |
123 GLOBAL T_ENT_STAT phbEntStat; | |
124 GLOBAL T_ACI_PBCF_LDN PBCFldn = PBCF_LDN_Enable; | |
125 GLOBAL T_ACI_PBCF_LDN PBCFlrn = PBCF_LRN_Enable; | |
126 GLOBAL T_ACI_PBCF_LMN PBCFlmn = PBCF_LMN_Enable; | |
127 | |
128 #else | |
129 | |
130 EXTERN T_ENT_STAT phbEntStat; | |
131 EXTERN T_ACI_PBCF_LDN PBCFldn; | |
132 EXTERN T_ACI_PBCF_LDN PBCFlrn; | |
133 EXTERN T_ACI_PBCF_LMN PBCFlmn; | |
134 | |
135 #endif /* CMH_PHBF_C */ | |
136 | |
137 #endif /* CMH_PHB_H */ | |
138 | |
139 /*==== EOF =======================================================*/ |