comparison g23m-gsm/sms/cus_sms.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 : GSM-PS (8410)
4 | Modul : CUS_SMS
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 SMS of the
18 | mobile station
19 |
20 | Use this header for definitions to integrate the
21 | protocol stack entity SMS in your target system !
22 +-----------------------------------------------------------------------------
23 */
24
25 #ifndef CUS_SMS_H
26 #define CUS_SMS_H
27
28 /*==== CONSTANTS ==================================================*/
29
30 /*
31 * Maximum number of CP-DATA retransmissions
32 */
33 #define MAX_RETRANS 1
34
35 /*
36 * Maximum number of TL layer retransmissions,
37 * 1 retransmission => 2 transmissions.
38 */
39 #define TL_MAX_RETANS 1
40
41 /*
42 * TIMER_VALUES
43 *
44 * Description : The constants define the timer values
45 * for the SMS timers in milliseconds
46 *
47 * TR1M = 40 Seconds, TRAM = 30 Seconds, TR2M = 15 Seconds
48 */
49 #define TR1M_VALUE 40000
50 #define TR2M_VALUE 15000
51 #define TRAM_VALUE 30000
52 #define TC1M_OFFSET 10000 /* gap between retransm. TC1M and TR1M */
53 #define TLCT_VALUE 1000
54 #define TMMS_VALUE 5000
55
56 #define TC1M_VALUE ((TR1M_VALUE-TC1M_OFFSET)/(MAX_RETRANS+1))
57
58 #define TC1M_NAME "TC1M"
59 #define TR1M_NAME "TR1M"
60 #define TR2M_NAME "TR2M"
61 #define TRAM_NAME "TRAM"
62 #define TLCT_NAME "TLCT"
63 #define TMMS_NAME "TMMS"
64
65 #define T_VERSION char
66 #define VERSION_SMS "SMS 2.0"
67
68 /*
69 * MAX_SMS_RECORDS
70 *
71 * Description : The constant define the maximum number of SMS
72 * messages handled by SMS.
73 */
74
75 // Currently we should be very careful to set the MAX_RECORD_XX to 255 as some
76 // loop counters are of type UBYTE - carefully to be checked.
77 #ifndef WIN32
78 #define MAX_RECORD_ME 254
79 #define MAX_RECORD_SIM 254
80 #else
81 #define MAX_RECORD_ME 255
82 #define MAX_RECORD_SIM 255
83 #endif /* else, #ifndef WIN32 */
84
85 /*
86 * VSI_CALLER
87 *
88 * Description : For multithread applications the constant VSI_CALLER
89 * must be defined to identify the calling thread of the
90 * VSI-Interface. This must be done correponding to the
91 * type of T_VSI_CALLER in VSI.H. The comma symbol is
92 * neccessary because the vsi-functions are called
93 * like this vsi_xxx (VSI_CALLER par2, par3 ...)
94 */
95 #ifdef OPTION_MULTITHREAD
96 #define VSI_CALLER sms_handle,
97 #define VSI_CALLER_SINGLE sms_handle
98 #else
99 #define VSI_CALLER
100 #define VSI_CALLER_SINGLE
101 #endif /* else, #ifdef OPTION_MULTITHREAD */
102
103 #endif /* #ifndef CUS_SMS_H */