FreeCalypso > hg > fc-selenite
comparison src/g23m-gprs/sndcp/sndcp_ndf.c @ 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 : GPRS (8441) | |
4 | Modul : sndcp_ndf.c | |
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 : This modul is part of the entity SNDCP and implements all | |
18 | procedures and functions as described in the | |
19 | SDL-documentation (ND-statemachine) | |
20 +----------------------------------------------------------------------------- | |
21 */ | |
22 | |
23 #define ENTITY_SNDCP | |
24 | |
25 /*==== INCLUDES =============================================================*/ | |
26 | |
27 #include "typedefs.h" /* to get Condat data types */ | |
28 #include "vsi.h" /* to get a lot of macros */ | |
29 #include "macdef.h" | |
30 #include "prim.h" /* to get the definitions of used SAP and directions */ | |
31 | |
32 #include "dti.h" | |
33 | |
34 #include "sndcp.h" /* to get the global entity definitions */ | |
35 | |
36 /*==== CONST ================================================================*/ | |
37 | |
38 /*==== LOCAL VARS ===========================================================*/ | |
39 | |
40 /*==== PRIVATE FUNCTIONS ====================================================*/ | |
41 | |
42 /*==== PUBLIC FUNCTIONS =====================================================*/ | |
43 | |
44 | |
45 | |
46 /* | |
47 +------------------------------------------------------------------------------ | |
48 | Function : nd_init | |
49 +------------------------------------------------------------------------------ | |
50 | Description : The function nd_init() .... | |
51 | | |
52 | Parameters : dummy - description of parameter dummy | |
53 | | |
54 +------------------------------------------------------------------------------ | |
55 */ | |
56 GLOBAL void nd_init (void) | |
57 { | |
58 UBYTE nsapi = 0; | |
59 | |
60 TRACE_FUNCTION( "nd_init" ); | |
61 | |
62 sndcp_data->nd = & sndcp_data->nd_base[0]; | |
63 INIT_STATE(ND_0, ND_DEFAULT); | |
64 sndcp_data->nd = & sndcp_data->nd_base[1]; | |
65 INIT_STATE(ND_1, ND_DEFAULT); | |
66 sndcp_data->nd = & sndcp_data->nd_base[2]; | |
67 INIT_STATE(ND_2, ND_DEFAULT); | |
68 sndcp_data->nd = & sndcp_data->nd_base[3]; | |
69 INIT_STATE(ND_3, ND_DEFAULT); | |
70 sndcp_data->nd = & sndcp_data->nd_base[4]; | |
71 INIT_STATE(ND_4, ND_DEFAULT); | |
72 sndcp_data->nd = & sndcp_data->nd_base[5]; | |
73 INIT_STATE(ND_5, ND_DEFAULT); | |
74 sndcp_data->nd = & sndcp_data->nd_base[6]; | |
75 INIT_STATE(ND_6, ND_DEFAULT); | |
76 sndcp_data->nd = & sndcp_data->nd_base[7]; | |
77 INIT_STATE(ND_7, ND_DEFAULT); | |
78 sndcp_data->nd = & sndcp_data->nd_base[8]; | |
79 INIT_STATE(ND_8, ND_DEFAULT); | |
80 sndcp_data->nd = & sndcp_data->nd_base[9]; | |
81 INIT_STATE(ND_9, ND_DEFAULT); | |
82 sndcp_data->nd = & sndcp_data->nd_base[10]; | |
83 INIT_STATE(ND_10, ND_DEFAULT); | |
84 sndcp_data->nd = & sndcp_data->nd_base[11]; | |
85 INIT_STATE(ND_11, ND_DEFAULT); | |
86 sndcp_data->nd = & sndcp_data->nd_base[12]; | |
87 INIT_STATE(ND_12, ND_DEFAULT); | |
88 sndcp_data->nd = & sndcp_data->nd_base[13]; | |
89 INIT_STATE(ND_13, ND_DEFAULT); | |
90 sndcp_data->nd = & sndcp_data->nd_base[14]; | |
91 INIT_STATE(ND_14, ND_DEFAULT); | |
92 sndcp_data->nd = & sndcp_data->nd_base[15]; | |
93 INIT_STATE(ND_15, ND_DEFAULT); | |
94 | |
95 | |
96 | |
97 for (nsapi = 0; nsapi < SNDCP_NUMBER_OF_NSAPIS; nsapi++) { | |
98 sndcp_data->nd->nsapi = nsapi; | |
99 sndcp_data->nd->npdu_num = 0; | |
100 } | |
101 | |
102 | |
103 | |
104 } /* nd_init() */ | |
105 | |
106 |