comparison src/g23m-gprs/llc/llc_rxs.c @ 183:219afcfc6250

src/g23m-gprs: initial import from TCS3.2/LoCosto
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 13 Oct 2016 04:24:13 +0000
parents
children
comparison
equal deleted inserted replaced
182:f02d0a0e1849 183:219afcfc6250
1 /*
2 +-----------------------------------------------------------------------------
3 | Project :
4 | Modul :
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 LLC and implements all
18 | functions to handles the incoming process internal signals as
19 | described in the SDL-documentation (RX-statemachine)
20 +-----------------------------------------------------------------------------
21 */
22
23 #ifndef LLC_RXS_C
24 #define LLC_RXS_C
25 #endif
26
27 #define ENTITY_LLC
28
29 /*==== INCLUDES =============================================================*/
30
31 #include "typedefs.h" /* to get Condat data types */
32 #include "vsi.h" /* to get a lot of macros */
33 #include "macdef.h"
34 #include "gprs.h"
35 #include "gsm.h" /* to get a lot of macros */
36 #include "cnf_llc.h" /* to get cnf-definitions */
37 #include "mon_llc.h" /* to get mon-definitions */
38 #include "prim.h" /* to get the definitions of used SAP and directions */
39 #include "llc.h" /* to get the global entity definitions */
40
41 /*==== CONST ================================================================*/
42
43 /*==== LOCAL VARS ===========================================================*/
44
45 /*==== PRIVATE FUNCTIONS ====================================================*/
46
47 /*==== PUBLIC FUNCTIONS =====================================================*/
48
49
50
51 /*
52 +------------------------------------------------------------------------------
53 | Function : sig_llme_rx_assign_req
54 +------------------------------------------------------------------------------
55 | Description : Handles the internal signal SIG_LLME_RX_ASSIGN_REQ
56 |
57 | Parameters :
58 |
59 +------------------------------------------------------------------------------
60 */
61 GLOBAL void sig_llme_rx_assign_req (void)
62 {
63 TRACE_ISIG( "sig_llme_rx_assign_req" );
64
65 switch( GET_STATE( RX ) )
66 {
67 case RX_TLLI_UNASSIGNED:
68 SET_STATE (RX, RX_TLLI_ASSIGNED);
69 break;
70 default:
71 TRACE_ERROR( "SIG_LLME_RX_ASSIGN_REQ unexpected" );
72 break;
73 }
74 } /* sig_llme_rx_assign_req() */
75
76
77
78 /*
79 +------------------------------------------------------------------------------
80 | Function : sig_llme_rx_unassign_req
81 +------------------------------------------------------------------------------
82 | Description : Handles the internal signal SIG_LLME_RX_UNASSIGN_REQ
83 |
84 | Parameters :
85 |
86 +------------------------------------------------------------------------------
87 */
88 GLOBAL void sig_llme_rx_unassign_req (void)
89 {
90 TRACE_ISIG( "sig_llme_rx_unassign_req" );
91
92 switch( GET_STATE( RX ) )
93 {
94 case RX_TLLI_ASSIGNED:
95 SET_STATE (RX, RX_TLLI_UNASSIGNED);
96 break;
97 default:
98 TRACE_ERROR( "SIG_LLME_RX_UNASSIGN_REQ unexpected" );
99 break;
100 }
101 } /* sig_llme_rx_unassign_req() */