comparison gsm-fw/g23m-aci/aci/cmh_phb.h @ 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
comparison
equal deleted inserted replaced
774:40a721fd9854 775:eedbf248bac0
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
48 GLOBAL void cmhPHB_toaMrg ( T_ACI_TOA* type,
49 UBYTE* octet );
50 GLOBAL void cmhPHB_toaDmrg ( UBYTE octet,
51 T_ACI_TOA* type );
52 GLOBAL void cmhPHB_getAdrBcd ( UBYTE* pBcd,
53 UBYTE* pNumDigits,
54 UBYTE maxDigits,
55 CHAR* pStr );
56 GLOBAL UBYTE cmhPHB_getAdrStr ( CHAR* pStr,
57 UBYTE maxIdx,
58 const UBYTE* pBcd,
59 UBYTE numDigits );
60 GLOBAL void cmhPHB_cpyRecEntr ( T_ACI_PB_ENTR* entry,
61 #ifdef TI_PS_FFS_PHB
62 T_PHB_TYPE book,
63 #endif
64 const T_PHB_RECORD* record );
65 GLOBAL void cmhPHB_invldEntr ( T_ACI_PB_ENTR* entry );
66
67 GLOBAL T_ACI_RETURN cmhPHB_PlusCPBF ( T_ACI_CMD_SRC srcId,
68 T_ACI_PB_TEXT *findtext,
69 T_ACI_SR_TYP type,
70 T_ACI_CPBF_MOD mode,
71 SHORT* firstIdx,
72 SHORT* found,
73 T_ACI_PB_ENTR* pbLst );
74 GLOBAL T_ACI_RETURN cmhPHB_PlusCPBR ( T_ACI_CMD_SRC srcId,
75 T_ACI_SR_TYP type,
76 SHORT startIdx,
77 SHORT stopIdx,
78 SHORT* lastIdx,
79 T_ACI_PB_ENTR* pbLst );
80 GLOBAL void cmhPHB_getTagNt ( UBYTE* inTag,
81 UBYTE maxInLen,
82 CHAR* outTag,
83 UBYTE maxOutLen );
84 GLOBAL void cmhPHB_getTagSim ( T_ACI_PB_TEXT *inTag,
85 UBYTE* outTag,
86 UBYTE maxOutLen );
87 GLOBAL void cmhPHB_invldPhbDateTime
88 ( T_PHB_RECORD* record );
89 GLOBAL void cmhPHB_invldCmhDateTime
90 ( T_ACI_VP_ABS* dateTime );
91 GLOBAL void cmhPHB_cpyCmhDateTime
92 ( const T_ACI_VP_ABS* dateTime,
93 T_PHB_RECORD* record );
94 GLOBAL void cmhPHB_cpyPhbDateTime
95 ( const T_PHB_RECORD* record,
96 T_ACI_VP_ABS* dateTime );
97 GLOBAL void cmhPHB_StatIndication
98 ( T_PHB_STAT psaStatus,
99 SHORT cmeError,
100 BOOL indicate );
101
102 GLOBAL void cmhPHB_getMfwTagSim ( T_ACI_PB_TEXT* inTag,
103 UBYTE* outTag,
104 UBYTE* outTagLen,
105 UBYTE maxOutLen );
106 GLOBAL void cmhPHB_getMfwTagNt ( const UBYTE* inTag,
107 UBYTE maxInLen,
108 UBYTE* outTag,
109 UBYTE* maxOutLen );
110
111 GLOBAL CHAR cmhPHB_convertBCD2char ( UBYTE bcd );
112
113 GLOBAL void cmhPHB_ksdDecodeToa (CHAR* number,
114 CHAR** pNumber,
115 T_PHB_RECORD* entry);
116
117 /*==== EXPORT =====================================================*/
118
119 #ifdef CMH_PHBF_C
120
121 GLOBAL T_ENT_STAT phbEntStat;
122 GLOBAL T_ACI_PBCF_LDN PBCFldn = PBCF_LDN_Enable;
123 GLOBAL T_ACI_PBCF_LRN PBCFlrn = PBCF_LRN_Enable;
124 GLOBAL T_ACI_PBCF_LMN PBCFlmn = PBCF_LMN_Enable;
125
126 #else
127
128 EXTERN T_ENT_STAT phbEntStat;
129 EXTERN T_ACI_PBCF_LDN PBCFldn;
130 EXTERN T_ACI_PBCF_LRN PBCFlrn;
131 EXTERN T_ACI_PBCF_LMN PBCFlmn;
132
133 #endif /* CMH_PHBF_C */
134
135 #endif /* CMH_PHB_H */
136
137 /*==== EOF =======================================================*/