comparison src/aci2/aci/sap_aci.c @ 3:93999a60b835

src/aci2, src/condat2: import of g23m/condat source pieces from TCS211
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 26 Sep 2016 00:29:36 +0000
parents
children
comparison
equal deleted inserted replaced
2:c41a534f33c6 3:93999a60b835
1 /*
2 +-----------------------------------------------------------------------------
3 | Project : GSM-PS
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 : MUX for ACI primitives
18 |
19 | Different entities sends the same ACI primitives. In this
20 | file the correct PSA function will call
21 +-----------------------------------------------------------------------------
22 */
23
24 /*==== INCLUDES ===================================================*/
25
26 #ifndef SAP_ACI_C
27 #define SAP_ACI_C
28 #endif
29
30 #include "aci_all.h"
31 /*==== INCLUDES ===================================================*/
32 #include "aci_cmh.h"
33 #include "ati_cmd.h"
34 #include "aci_cmd.h"
35
36 #include "aci.h"
37
38 /*==== CONSTANTS ==================================================*/
39
40
41 /*==== TYPES ======================================================*/
42
43
44 /*==== EXPORT =====================================================*/
45
46
47 /*==== VARIABLES ==================================================*/
48
49
50 /*==== FUNCTIONS ==================================================*/
51
52 /*
53 +-------------------------------------------------------------------+
54 | PROJECT : GSM MODULE : SAP_DTI |
55 | ROUTINE : psa_dti_ready_ind |
56 +-------------------------------------------------------------------+
57
58 PURPOSE : processes the DTI_READY_IND primitive send by other entity.
59 This indicates that the entity is ready to get
60 the next data primitive.
61 */
62
63 GLOBAL const void psa_dti_ready_ind( T_DTI_READY_IND *dti_ready_ind )
64 {
65 switch (dti_ready_ind->tui)
66 {
67 case DTI_ENTITY_UART:
68 psa_uart_dti_ready_ind (dti_ready_ind);
69 break;
70
71 default:
72 TRACE_EVENT ("[ERR] sap_dti_ready_ind(): unknown TUI");
73 PFREE (dti_ready_ind);
74 break;
75 }
76 }
77
78 /*
79 +-------------------------------------------------------------------+
80 | PROJECT : GSM MODULE : SAP_DTI |
81 | ROUTINE : psa_dti_data_ind |
82 +-------------------------------------------------------------------+
83
84 PURPOSE : processes the DTI_DATA_IND primitive send by other entity.
85 This indicates that the entity is ready to get
86 the next data primitive.
87 */
88
89 GLOBAL const void psa_dti_data_ind( T_DTI_DATA_IND *dti_data_ind )
90 {
91 switch (dti_data_ind->tui)
92 {
93 case DTI_ENTITY_UART:
94 psa_uart_dti_data_ind (dti_data_ind);
95 break;
96
97 default:
98 TRACE_EVENT ("[ERR] sap_dti_data_ind(): unknown TUI");
99 PFREE (dti_data_ind);
100 break;
101 }
102 }
103
104 /*
105 +-------------------------------------------------------------------+
106 | PROJECT : GSM MODULE : SAP_DTI |
107 | ROUTINE : psa_dti_data_test_ind |
108 +-------------------------------------------------------------------+
109
110 PURPOSE : processes the DTI_DATA_TEST_IND primitive send by other
111 entity. This indicates that the entity is ready to get
112 the next data primitive.
113 */
114
115 #ifdef _SIMULATION_
116
117 GLOBAL const void psa_dti_data_test_ind ( T_DTI_DATA_TEST_IND *dti_data_test_ind )
118 {
119 switch (dti_data_test_ind->tui)
120 {
121 case DTI_ENTITY_UART:
122 psa_uart_dti_data_test_ind (dti_data_test_ind);
123 break;
124
125 default:
126 TRACE_EVENT ("[ERR] sap_dti_data_test_ind(): unknown TUI");
127 PFREE (dti_data_test_ind);
128 break;
129 }
130 }
131 #endif /* _SIMULATION_ */