comparison src/g23m-gprs/sndcp/sndcp_pdaf.c @ 1:fa8dc04885d8

src/g23m-*: import from Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 16 Oct 2020 06:25:50 +0000
parents
children
comparison
equal deleted inserted replaced
0:4e78acac3d88 1:fa8dc04885d8
1 /*
2 +-----------------------------------------------------------------------------
3 | Project : GPRS (8441)
4 | Modul : sndcp_pdaf.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 (PDA-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 #include "sndcp.h" /* to get the global entity definitions */
34
35
36 /*==== CONST ================================================================*/
37
38 /*==== LOCAL VARS ===========================================================*/
39
40 /*==== PRIVATE FUNCTIONS ====================================================*/
41
42 /*==== PUBLIC FUNCTIONS =====================================================*/
43
44
45
46 /*
47 +------------------------------------------------------------------------------
48 | Function : pda_init
49 +------------------------------------------------------------------------------
50 | Description : Initializes the pda service.
51 |
52 | Parameters :
53 |
54 +------------------------------------------------------------------------------
55 */
56 GLOBAL void pda_init (void)
57 {
58 TRACE_FUNCTION( "pda_init" );
59 sndcp_data->pda = & sndcp_data->pda_base[0];
60 INIT_STATE(PDA_0, PDA_DEFAULT);
61 #ifdef SNDCP_2to1
62 sndcp_data->pda->sapi = PS_SAPI_3;
63 #else
64 sndcp_data->pda->sapi = LL_SAPI_3;
65 #endif /*SNDCP_2to1*/
66 sndcp_data->pda = & sndcp_data->pda_base[1];
67 INIT_STATE(PDA_1, PDA_DEFAULT);
68 #ifdef SNDCP_2to1
69 sndcp_data->pda->sapi = PS_SAPI_5;
70 #else
71 sndcp_data->pda->sapi = LL_SAPI_5;
72 #endif /*SNDCP_2to1*/
73
74
75 sndcp_data->pda = & sndcp_data->pda_base[2];
76 INIT_STATE(PDA_2, PDA_DEFAULT);
77 #ifdef SNDCP_2to1
78 sndcp_data->pda->sapi = PS_SAPI_9;
79 #else
80 sndcp_data->pda->sapi = LL_SAPI_9;
81 #endif /*SNDCP_2to1*/
82
83
84 sndcp_data->pda = & sndcp_data->pda_base[3];
85 INIT_STATE(PDA_3, PDA_DEFAULT);
86 #ifdef SNDCP_2to1
87 sndcp_data->pda->sapi = PS_SAPI_11;
88 #else
89 sndcp_data->pda->sapi = LL_SAPI_11;
90 #endif /*SNDCP_2to1*/
91
92
93 } /* pda_init() */
94