FreeCalypso > hg > leo2moko-debug
comparison chipsetsw/services/atp/atp_gsm_bt_api.h @ 0:509db1a7b7b8
initial import: leo2moko-r1
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Mon, 01 Jun 2015 03:24:05 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:509db1a7b7b8 |
---|---|
1 /******************************************************************************* | |
2 * | |
3 * File Name : atp_gsm_bt_api.h | |
4 * | |
5 * Definition used by atp_gsm_bt_api.c | |
6 * | |
7 * (C) Texas Instruments, all rights reserved | |
8 * | |
9 * Version number : 0.1 Date : 10-Jully-2000 | |
10 * | |
11 * History : 0.1 - Created by E. Baissus | |
12 * | |
13 * | |
14 * Author : Eric Baissus : e-baissus@ti.com | |
15 * | |
16 ******************************************************************************/ | |
17 | |
18 #ifndef ATP_GSM_BT_API_H | |
19 #define ATP_GSM_BT_API_H | |
20 | |
21 #include "atp/bti_at.h" | |
22 | |
23 | |
24 /* Extern function for GSM definition */ | |
25 /****************************************************************************** | |
26 * Function name: bti_at_init_req | |
27 * | |
28 * Description : This function is called by GSM in order to register GSM to BT PS. | |
29 * | |
30 * | |
31 * Parameters : None | |
32 * | |
33 * Return : None // function bti_at_init_cnf() used to issue result | |
34 * | |
35 * History : 0.1 (10-Jully-2000) | |
36 * 0.2 (01-Jan-2001) | |
37 * | |
38 ******************************************************************************/ | |
39 void bti_at_init_req(void); | |
40 | |
41 | |
42 /****************************************************************************** | |
43 * Function name: bti_at_deinit_ind | |
44 * | |
45 * Description : This function is called by GSM to de-register GSM from BT PS | |
46 * Not Used | |
47 * | |
48 * Parameters : None | |
49 * | |
50 * Return : None | |
51 * | |
52 * | |
53 * History : 0.1 (10-Jully-2000) | |
54 * 0.2 (01-Jan-2001) | |
55 * | |
56 ******************************************************************************/ | |
57 void bti_at_deinit_req(void); | |
58 | |
59 | |
60 /****************************************************************************** | |
61 * Function name: bti_at_open_port_res | |
62 * | |
63 * Description : This function is called by GSM to accept or refuse | |
64 * an open port request issued by BT side | |
65 * | |
66 * | |
67 * Parameters : gsm_port_nb = number of the gsm port | |
68 * bti_gsm_port_info = custom information to open a GSM/GPRS port | |
69 * result = BTI_ACK or BTI_NAK | |
70 * | |
71 * Return : None | |
72 * | |
73 * | |
74 * History : 0.1 (10-Jully-2000) | |
75 * 0.2 (01-Jan-2001) | |
76 * | |
77 ******************************************************************************/ | |
78 void bti_at_open_port_res(T_BTI_PORT_NB gsm_port_nb, | |
79 T_BTI_GSM_PORT_INFO gsm_port_info, | |
80 T_BTI_ACK ack); | |
81 | |
82 | |
83 /****************************************************************************** | |
84 * Function name: bti_at_close_port_res | |
85 * | |
86 * Description : Not used by BT PS - Port is always closed whatever the | |
87 * acknowledge is | |
88 * | |
89 * Parameters : gsm_port_nb = number of the gsm port | |
90 * | |
91 * Return : None | |
92 * | |
93 * | |
94 * History : 0.1 (10-Jully-2000) | |
95 * | |
96 ******************************************************************************/ | |
97 void bti_at_close_port_res(T_BTI_PORT_NB gsm_port_nb); | |
98 | |
99 | |
100 /****************************************************************************** | |
101 * Function name: bti_at_cmd_req | |
102 * | |
103 * Description : This function is called by GSM to provide unsollicited code | |
104 * or information text to BT PS | |
105 * | |
106 * Parameters : gsm_port_nb = number of the gsm port | |
107 * cmd = command in text format | |
108 * | |
109 * Return : None | |
110 * | |
111 * | |
112 * History : 0.1 (10-Jully-2000) | |
113 * | |
114 ******************************************************************************/ | |
115 void bti_at_cmd_req(T_BTI_PORT_NB gsm_port_nb, | |
116 char * cmd); | |
117 | |
118 | |
119 /****************************************************************************** | |
120 * Function name: bti_at_cmd_res | |
121 * | |
122 * Description : This function is called by GSM to provide result code to BT | |
123 * | |
124 * Parameters : gsm_port_nb = number of the gsm port | |
125 * cmd = command in text format | |
126 * | |
127 * Return : None | |
128 * | |
129 * | |
130 * History : 0.1 (10-Jully-2000) | |
131 * | |
132 ******************************************************************************/ | |
133 void bti_at_cmd_res(T_BTI_PORT_NB gsm_port_nb, | |
134 char * cmd); | |
135 | |
136 | |
137 /****************************************************************************** | |
138 * Function name: bti_at_abort_res | |
139 * | |
140 * Description : This function is called by GSM to comfirm a command abort | |
141 * | |
142 * | |
143 * Parameters : gsm_port_nb = number of the gsm port | |
144 * | |
145 * Return : None | |
146 * | |
147 * | |
148 * History : 0.1 (10-Jully-2000) | |
149 * | |
150 ******************************************************************************/ | |
151 void bti_at_abort_res(T_BTI_PORT_NB gsm_port_nb); | |
152 | |
153 | |
154 | |
155 /****************************************************************************** | |
156 * Function name: bti_get_bt_data | |
157 * | |
158 * Description : This function is called by GSM to get data from BT side . | |
159 * Copy is processed by BT side | |
160 * | |
161 * Parameters : gsm_port_nb = number of the gsm port | |
162 * data_buffer = pointer on a buffer in which data can be copied | |
163 * nb_bytes_to_copy = number of bytes to copy into data_buffer | |
164 * | |
165 * Return : None | |
166 * | |
167 * | |
168 * History : 0.1 (10-Jully-2000) | |
169 * 0.2 (01-Jan-2001) | |
170 * | |
171 ******************************************************************************/ | |
172 void bti_get_bt_data (T_BTI_PORT_NB gsm_port_nb, | |
173 char * data_buffer, | |
174 unsigned long nb_bytes_to_copy); | |
175 | |
176 | |
177 | |
178 /****************************************************************************** | |
179 * Function name: bti_data_ready_req | |
180 * | |
181 * Description : This function is called by GSM to indicate that data are | |
182 * available for BT PS. | |
183 * | |
184 * | |
185 * Parameters : gsm_port_nb = number of the gsm port | |
186 * nb_bytes_available = number of bytes of data available | |
187 * | |
188 * Return : None | |
189 * | |
190 * History : 0.1 (10-Jully-2000) | |
191 * 0.2 (01-Jan-2001) | |
192 * | |
193 ******************************************************************************/ | |
194 void bti_data_ready_req (T_BTI_PORT_NB gsm_port_nb, | |
195 unsigned long nb_bytes_available); | |
196 | |
197 | |
198 /****************************************************************************** | |
199 * Function name: bti_data_ready_res | |
200 * | |
201 * Description : This function is called by GSM to indicate that it can receive | |
202 * new data from BT PS | |
203 * | |
204 * | |
205 * Parameters : gsm_port_nb = number of the gsm port | |
206 * | |
207 * Return : None | |
208 * | |
209 * History : 0.1 (10-Jully-2000) | |
210 * 0.2 (01-Jan-2001) | |
211 * | |
212 ******************************************************************************/ | |
213 void bti_data_ready_res (T_BTI_PORT_NB gsm_port_nb); | |
214 | |
215 | |
216 /****************************************************************************** | |
217 * Function name: bti_at_signal_change_req | |
218 * | |
219 * Description : This function is called by GSM to provide a new signal line status | |
220 * to BT | |
221 * | |
222 * | |
223 * Parameters : gsm_port_nb = number of the gsm port | |
224 * dce_signal = signal value | |
225 * ring_type_1 = voice, data or fax | |
226 * ring_type_2 = not used | |
227 * | |
228 * Return : None | |
229 * | |
230 * History : 0.1 (01-Jan-2001) | |
231 * | |
232 ******************************************************************************/ | |
233 void bti_at_signal_change_req (T_BTI_PORT_NB gsm_port_nb, | |
234 T_BTI_AT_DCE_SIGNAL dce_signal, | |
235 T_BTI_AT_RING_TYPE ring_type_1, | |
236 T_BTI_AT_RING_TYPE ring_type_2); | |
237 | |
238 | |
239 #endif |