FreeCalypso > hg > tcs211-fcmodem
comparison gpf/TEMPLATE/PEI/xxx.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 | File: xxx.h | |
4 +------------------------------------------------------------------------------ | |
5 | Copyright 2002 Texas Instruments Berlin, AG | |
6 | All rights reserved. | |
7 | | |
8 | This file is confidential and a trade secret of Texas | |
9 | Instruments Berlin, AG | |
10 | The receipt of or possession of this file does not convey | |
11 | any rights to reproduce or disclose its contents or to | |
12 | manufacture, use, or sell anything it may describe, in | |
13 | whole, or in part, without the specific written consent of | |
14 | Texas Instruments Berlin, AG. | |
15 +----------------------------------------------------------------------------- | |
16 | Purpose : Definitions for the Protocol Stack Entity xxx. | |
17 +----------------------------------------------------------------------------- | |
18 */ | |
19 | |
20 #ifndef XXX_H | |
21 #define XXX_H | |
22 | |
23 /*==== INCLUDES =============================================================*/ | |
24 | |
25 /*==== CONSTS ===============================================================*/ | |
26 | |
27 #define MY_NAME "XXX" | |
28 #define VSI_CALLER XXX_handle, | |
29 #define ENTITY_DATA xxx_data | |
30 | |
31 #define ENCODE_OFFSET 0 /* Bitoffset for encoding/decoding */ | |
32 #define hCommYYY xxx_hCommYYY /* Communication handle */ | |
33 | |
34 /* Timer definitions */ | |
35 #define T001 0 | |
36 #define T002 1 | |
37 | |
38 /* Timer durations */ | |
39 #define T001_VALUE 1000 /* 1 second */ | |
40 #define T002_VALUE 3000 /* 3 seconds */ | |
41 | |
42 /* make the pei_create function unique */ | |
43 #define pei_create xxx_pei_create | |
44 | |
45 #ifdef XXX_PEI_C | |
46 const static T_STR_IND tmr_name_to_ind[] = | |
47 { | |
48 { "T001", T001 }, | |
49 { "T002", T002 }, | |
50 { NULL, 0 } | |
51 }; | |
52 #endif | |
53 | |
54 /*==== TYPES =================================================================*/ | |
55 | |
56 /* XXX global typedefs */ | |
57 | |
58 typedef struct /* T_XXX_DATA */ | |
59 { | |
60 unsigned char version; | |
61 /* | |
62 * entity parameters | |
63 */ | |
64 } T_XXX_DATA; | |
65 | |
66 /*==== EXPORTS ===============================================================*/ | |
67 | |
68 short pei_create (T_PEI_INFO **info); | |
69 | |
70 #ifdef XXX_PEI_C | |
71 | |
72 /* Entity data base */ | |
73 T_XXX_DATA xxx_data_base; | |
74 T_XXX_DATA *xxx_data; | |
75 | |
76 /* Communication handles */ | |
77 T_HANDLE hCommYYY = VSI_ERROR; | |
78 T_HANDLE hCommXXX = VSI_ERROR; | |
79 T_HANDLE XXX_handle; | |
80 | |
81 #else /* XXX_PEI_C */ | |
82 | |
83 extern T_XXX_DATA xxx_data_base, *xxx_data; | |
84 extern T_HANDLE hCommYYY; | |
85 extern T_HANDLE XXX_handle; | |
86 | |
87 #endif /* XXX_PEI_C */ | |
88 | |
89 #endif /* !XXX_H */ |