comparison src/g23m-gprs/gmm/gmm_rxf.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 : GPRS (8441)
4 | Modul : gmm_rxf.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 GMM and implements all
18 | procedures and functions as described in the
19 | SDL-documentation (RX-statemachine)
20 +-----------------------------------------------------------------------------
21 */
22
23
24 #ifndef GMM_RXF_C
25 #define GMM_RXF_C
26 #endif
27
28 #define ENTITY_GMM
29
30 /*==== INCLUDES =============================================================*/
31
32 #include "typedefs.h" /* to get Condat data types */
33 #include "vsi.h" /* to get a lot of macros */
34 #include "macdef.h"
35 #include "gprs.h"
36 #include "gsm.h" /* to get a lot of macros */
37 #include "ccdapi.h" /* to get CCD API */
38 #include "cnf_gmm.h" /* to get cnf-definitions */
39 #include "mon_gmm.h" /* to get mon-definitions */
40 #include "prim.h" /* to get the definitions of used SAP and directions */
41 #include "gmm.h" /* to get the global entity definitions */
42 #include "gmm_txs.h" /* to get some signals */
43
44 /*==== CONST ================================================================*/
45
46 /*==== LOCAL VARS ===========================================================*/
47
48 /*==== PRIVATE FUNCTIONS ====================================================*/
49
50 /*==== PUBLIC FUNCTIONS =====================================================*/
51
52
53
54 /*
55 +------------------------------------------------------------------------------
56 | Function : rxgmm_init
57 +------------------------------------------------------------------------------
58 | Description : The function rxgmm_init() ....
59 |
60 | Parameters : void
61 |
62 +------------------------------------------------------------------------------
63 */
64 GLOBAL void rxgmm_init ( void )
65 {
66 TRACE_FUNCTION( "rxgmm_init" );
67
68 /*
69 * Initialise service RX with state RX_READY.
70 */
71 INIT_STATE ( RX, RX_READY );
72
73 } /* rxgmm_init() */
74
75 /*
76 +------------------------------------------------------------------------------
77 | Function : rx_gmm_status
78 +------------------------------------------------------------------------------
79 | Description : The function kern_gmm_status() ....
80 |
81 | Parameters : cause - error cause
82 |
83 +------------------------------------------------------------------------------
84 */
85 GLOBAL void rx_gmm_status ( UBYTE cause )
86 {
87 GMM_TRACE_FUNCTION( "rx_gmm_status" );
88 {
89 MCAST (gmm_status, GMM_STATUS);
90 gmm_status->gmm_cause.cause_value = cause;
91 vsi_o_ttrace(VSI_CALLER TC_EVENT,"Info: cause: %i", cause);
92
93 sig_rx_tx_data_req (CURRENT_TLLI, GMM_STATUS);
94 }
95 GMM_RETURN;
96 } /* rx_gmm_status() */
97
98