FreeCalypso > hg > freecalypso-citrine
comparison g23m-gsm/dl/cus_dl.h @ 0:75a11d740a02
initial import of gsm-fw from freecalypso-sw rev 1033:5ab737ac3ad7
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 09 Jun 2016 00:02:41 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:75a11d740a02 |
---|---|
1 /* | |
2 +----------------------------------------------------------------------------- | |
3 | Project : | |
4 | Modul : | |
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 DL of the | |
18 | mobile station | |
19 | | |
20 | Use this header for definitions to integrate the | |
21 | protocol stack entity DL in your target system ! | |
22 +----------------------------------------------------------------------------- | |
23 */ | |
24 | |
25 #ifndef CUS_DL_H | |
26 #define CUS_DL_H | |
27 | |
28 /*==== CONSTANTS ==================================================*/ | |
29 /* | |
30 * TIMER_VALUES | |
31 * | |
32 * Description : The constants define the timer values | |
33 * for the DL timer T200 depending on the various | |
34 * channel types and service access point identifiers. | |
35 * Value 1 means timeout, Value 0 means timer is stopped | |
36 */ | |
37 | |
38 #define T200_ACTIVE 2 | |
39 #define T200_EXPIRED 1 | |
40 #define T200_STOPPED 0 | |
41 | |
42 #define T200_SDCCH_SAPI_0_CNT (T200_EXPIRED + 1) | |
43 #define T200_FACCH_SAPI_0_CNT_FR (T200_EXPIRED + 9) | |
44 #define T200_FACCH_SAPI_0_CNT_HR (T200_EXPIRED + 5) | |
45 #define T200_SDCCH_SAPI_3_CNT (T200_EXPIRED + 3) | |
46 #define T200_SACCH_SAPI_3_CNT (T200_EXPIRED + 4) | |
47 | |
48 | |
49 /* | |
50 * PRIMITIVE SIZES | |
51 * | |
52 * Description : The primitive size of PH_DATA_REQ depends on the | |
53 * used channel. It is defined separately to achieve | |
54 * an optimum of transmitted bytes to physical layer. | |
55 * The default value which is defined here is calculated | |
56 * without any alignment bits. | |
57 * E.g. SACCH N201 = 18 | |
58 * l1 header = 2 | |
59 * l2 header = 3 | |
60 * sdu offset = 2 | |
61 * sdu length = 2 | |
62 * ch_type = 1 | |
63 * dummy = 1 | |
64 * ----------------- | |
65 * total = 29 | |
66 * | |
67 */ | |
68 | |
69 #define SACCH_PRIM_SIZE 29 | |
70 #define SDCCH_PRIM_SIZE 29 | |
71 #define FACCH_PRIM_SIZE 29 | |
72 | |
73 | |
74 /* | |
75 * MAX_QUEUED_MESSAGES | |
76 * | |
77 * Description : The constant define the maximum number of | |
78 * stored layer 3 messages in data link layer. | |
79 */ | |
80 | |
81 #define MAX_QUEUED_MESSAGES 10 | |
82 | |
83 /* | |
84 * VERSION | |
85 * | |
86 * Description : The constants define the type and the value | |
87 * of a version identification. The version | |
88 * is part of the monitor struct. | |
89 */ | |
90 | |
91 #define T_VERSION char | |
92 #define VERSION_DL "DL 1.0" | |
93 | |
94 /* | |
95 * VSI_CALLER | |
96 * | |
97 * Description : For multithread applications the constant VSI_CALLER | |
98 * must be defined to identify the calling thread of the | |
99 * VSI-Interface. This must be done correponding to the | |
100 * type of T_VSI_CALLER in VSI.H. The comma symbol is | |
101 * neccessary because the vsi-functions are called | |
102 * like this vsi_xxx (VSI_CALLER par2, par3 ...) | |
103 */ | |
104 #if defined (NEW_FRAME) | |
105 #define VSI_CALLER dl_handle, | |
106 #define VSI_CALLER_SINGLE dl_handle | |
107 #else | |
108 #ifdef OPTION_MULTITHREAD | |
109 #define VSI_CALLER DL_NAME, | |
110 #define VSI_CALLER_SINGLE DL_NAME | |
111 #else | |
112 #define VSI_CALLER | |
113 #define VSI_CALLER_SINGLE | |
114 #endif | |
115 #endif | |
116 #endif | |
117 |