FreeCalypso > hg > fc-selenite
comparison src/g23m-gsm/cc/cus_cc.h @ 1:d393cd9bb723
src/g23m-*: initial import from Magnetite
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 15 Jul 2018 04:40:46 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:b6a5e36de839 | 1:d393cd9bb723 |
---|---|
1 /* | |
2 +----------------------------------------------------------------------------- | |
3 | Project : GSM-PS (6147) | |
4 | Modul : CUS_CC | |
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 : Custom dependent definitions for CC of the | |
18 | mobile station | |
19 | | |
20 | Use this header for definitions to integrate the | |
21 | protocol stack entity CC in your target system ! | |
22 +----------------------------------------------------------------------------- | |
23 */ | |
24 | |
25 #ifndef CUS_CC_H | |
26 #define CUS_CC_H | |
27 | |
28 /*==== CONSTANTS ==================================================*/ | |
29 /* | |
30 * DTMF_BUF_SIZE | |
31 * | |
32 * Description : The constant defines the maximum of | |
33 * temporary stored DTMF digits -1 in CC. | |
34 */ | |
35 #if defined (WIN32) | |
36 #define DTMF_BUF_SIZE 3 | |
37 #else | |
38 #define DTMF_BUF_SIZE 20 | |
39 #endif | |
40 | |
41 /* | |
42 * MAX_SETUP_ATTEMPTS | |
43 * | |
44 * Number of setup attempts until upper layers are informed. | |
45 * This may be useful for networks which aren't very stable. | |
46 * All values other than 1 are regarded as dirty trick. | |
47 */ | |
48 #ifdef WIN32 // Change this to suit your needs | |
49 #define MAX_SETUP_ATTEMPTS 2 | |
50 #else | |
51 #define MAX_SETUP_ATTEMPTS 1 | |
52 #endif | |
53 | |
54 /* | |
55 * TIMER_VALUES | |
56 * | |
57 * Description : The constants define the timer values | |
58 * for the CC timers | |
59 */ | |
60 | |
61 /* unit for the timer values is 1 ms */ | |
62 #define T303_VALUE 30000 | |
63 #define T305_VALUE 30000 | |
64 #define T308_VALUE 30000 | |
65 #define T310_VALUE 30000 | |
66 #define T313_VALUE 30000 | |
67 #define T323_VALUE 30000 | |
68 #define T332_VALUE 30000 | |
69 #define T335_VALUE 30000 | |
70 #define T336_VALUE 10000 | |
71 #define T337_VALUE 10000 | |
72 | |
73 /* | |
74 * MAX_CC_CALLS | |
75 * | |
76 * Description : The constant define the number of parallel | |
77 * cc call instances per subscriber. | |
78 */ | |
79 | |
80 #if defined (WIN32) | |
81 #define MAX_CC_CALLS 4 | |
82 #else | |
83 #define MAX_CC_CALLS 7 | |
84 #endif | |
85 | |
86 /* | |
87 * MAX_CC_TIMER | |
88 * | |
89 * Description : The constant define the number of timer | |
90 * available in the timer pool. | |
91 * Note : There are only two timer necessary for each CC instance, | |
92 * one for the supervision of the CC states and | |
93 * one for the supervision of DTMF (T336, T337). | |
94 */ | |
95 | |
96 #define MAX_CC_TIMER (MAX_CC_CALLS * 2) | |
97 | |
98 /* | |
99 * FRAME_OFFSET_ZERO | |
100 * | |
101 * Description : If the constant is set, PL ensures that all frames | |
102 * are send with offset zero to DL. This enables a | |
103 * faster access on frame header parameter. | |
104 */ | |
105 | |
106 #undef FRAME_OFFSET_ZERO | |
107 | |
108 /* | |
109 * MAX_ERROR_TAGS | |
110 * | |
111 * Description : The constant define the maximum number of | |
112 * stored information elements for the | |
113 * diagnostic field of the cc cause element. | |
114 */ | |
115 | |
116 #define MAX_ERROR_TAGS 5 | |
117 | |
118 /* | |
119 * MAX_STORED_PRIM | |
120 * | |
121 * Description : The constant define the maximum number of | |
122 * stored primiitives in call control. | |
123 */ | |
124 | |
125 #define MAX_STORED_PRIM 4 | |
126 | |
127 /* | |
128 * VERSION | |
129 * | |
130 * Description : The constants define the type and the value | |
131 * of a version identification. The version | |
132 * is part of the monitor struct. | |
133 */ | |
134 | |
135 #define T_VERSION char | |
136 #define VERSION_CC "CC 1.0" | |
137 | |
138 /* | |
139 * VSI_CALLER | |
140 * | |
141 * Description : For multithread applications the constant VSI_CALLER | |
142 * must be defined to identify the calling thread of the | |
143 * VSI-Interface. This must be done correponding to the | |
144 * type of T_VSI_CALLER in VSI.H. The comma symbol is | |
145 * neccessary because the vsi-functions are called | |
146 * like this vsi_xxx (VSI_CALLER par2, par3 ...) | |
147 */ | |
148 | |
149 #ifdef OPTION_MULTITHREAD | |
150 #define VSI_CALLER cc_handle, | |
151 #define VSI_CALLER_SINGLE cc_handle | |
152 #else | |
153 #define VSI_CALLER | |
154 #define VSI_CALLER_SINGLE | |
155 #endif | |
156 | |
157 #endif | |
158 |