FreeCalypso > hg > fc-magnetite
comparison src/g23m-fad/rlp/rlp_rcvp.c @ 174:90eb61ecd093
src/g23m-fad: initial import from TCS3.2/LoCosto
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 12 Oct 2016 05:40:46 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
173:bf64d785238a | 174:90eb61ecd093 |
---|---|
1 /* | |
2 +----------------------------------------------------------------------------- | |
3 | Project : CSD (8411) | |
4 | Modul : Rlp_rcvp.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 defines the functions for processing | |
18 | of incomming primitives for the component | |
19 | Radio Link Protocol of the base station | |
20 +----------------------------------------------------------------------------- | |
21 */ | |
22 | |
23 #ifndef RLP_RCVP_C | |
24 #define RLP_RCVP_C | |
25 #endif | |
26 | |
27 #define ENTITY_RLP | |
28 | |
29 /*==== INCLUDES ===================================================*/ | |
30 | |
31 #include <string.h> | |
32 #include "typedefs.h" | |
33 #include "vsi.h" | |
34 #include "macdef.h" | |
35 #include "custom.h" | |
36 #include "gsm.h" | |
37 #include "cus_rlp.h" | |
38 #include "prim.h" | |
39 #include "tok.h" | |
40 #include "rlp.h" | |
41 | |
42 /*==== CONST =======================================================*/ | |
43 | |
44 /*==== TYPES =======================================================*/ | |
45 | |
46 /*==== VAR EXPORT ==================================================*/ | |
47 | |
48 /*==== VAR LOCAL ===================================================*/ | |
49 | |
50 /*==== FUNCTIONS ===================================================*/ | |
51 | |
52 /* | |
53 +------------------------------------------------------------------------------ | |
54 | Function : rcv_ra_ready_ind | |
55 +------------------------------------------------------------------------------ | |
56 | Description : Process primitive RA_READY_IND received from RA. | |
57 | This function is called if the RA_READY_IND primitive | |
58 | is received or from the signal processing in rlp_pei. | |
59 | | |
60 | | |
61 | Parameters : ra_ready_ind - | |
62 | | |
63 | | |
64 | Return : - | |
65 +------------------------------------------------------------------------------ | |
66 */ | |
67 | |
68 #ifdef _SIMULATION_ | |
69 GLOBAL const void rcv_ra_ready_ind(T_RA_READY_IND *ra_ready_ind) | |
70 #else | |
71 GLOBAL void rcv_ra_ready_ind(void) | |
72 #endif | |
73 { | |
74 #ifdef _SIMULATION_ | |
75 TRACE_FUNCTION ("rcv_ra_ready_ind()"); | |
76 PACCESS (ra_ready_ind); | |
77 #endif | |
78 | |
79 if (GET_STATE (RCV) EQ RPDU_WAIT_FOR_A_BLOCK) | |
80 sig_rcv_ker_ready_ind (); | |
81 | |
82 #ifdef _SIMULATION_ | |
83 PFREE (ra_ready_ind); | |
84 #endif | |
85 } | |
86 | |
87 /* | |
88 +------------------------------------------------------------------------------ | |
89 | Function : rcv_ra_data_ind | |
90 +------------------------------------------------------------------------------ | |
91 | Description : Process primitive RA_DATA_IND received from RA. | |
92 | This function is called if the primitive RA_DATA_IND is | |
93 | received or from the signal processing in rlp_pei. | |
94 | | |
95 | Parameters : ra_data_ind - | |
96 | | |
97 | | |
98 | Return : - | |
99 +------------------------------------------------------------------------------ | |
100 */ | |
101 | |
102 | |
103 GLOBAL void rcv_ra_data_ind(T_RA_DATA_IND *ra_data_ind) | |
104 { | |
105 #ifdef _SIMULATION_ | |
106 TRACE_FUNCTION ("rcv_ra_data_ind()"); | |
107 PACCESS (ra_data_ind); | |
108 #endif | |
109 | |
110 if (GET_STATE (RCV) EQ RPDU_WAIT_FOR_A_BLOCK) | |
111 { | |
112 #ifdef _SIMULATION_ | |
113 sig_rcv_ker_rawdata_ind (ra_data_ind); | |
114 #else | |
115 sig_rcv_ker_rawdata_ind (); | |
116 #endif | |
117 } | |
118 #ifdef _SIMULATION_ | |
119 else | |
120 { | |
121 PFREE (ra_data_ind); | |
122 } | |
123 #endif | |
124 } |