comparison g23m/condat/ms/src/mfw/mfw_bt.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 | PROJECT: MMI-Framework (8445) $Workfile:: mfw_bt.h $|
4 | $Author:: Rm $Revision:: 1 $|
5 | CREATED: 03.01.01 $Modtime:: 03.01.01 10:48 $|
6 | STATE : code |
7 +--------------------------------------------------------------------+
8
9 MODULE : MFW_BT
10
11 PURPOSE : This modul contains the definition for BT management.
12 */
13
14 #ifndef DEF_MFW_BT_HEADER
15 #define DEF_MFW_BT_HEADER
16
17 /*
18 * events are usually organised as bitmaps
19 * due to the amount of events (more than 32) these are coded as enum
20 */
21 typedef enum
22 {
23 BT_NO_EVENT = 0,
24 BT_CREATE_PROFILE_CNF,
25 BT_DELETE_PROFILE_CNF,
26 BT_INIT_PROFILE_CNF,
27 BT_DEINIT_PROFILE_CNF,
28 BT_SERVICE_SEARCH_CNF,
29 BT_DEVICE_FOUND_IND,
30 BT_CONNECT_DEVICE_CNF,
31 BT_CONNECT_DEVICE_IND,
32 BT_DISCONNECT_DEVICE_CNF,
33 BT_DISCONNECT_DEVICE_IND,
34 BT_SRV_SYNC_CNF,
35 BT_TRANSFER_AUDIO_IN_CNF,
36 BT_TRANSFER_AUDIO_OUT_CNF,
37 BT_PIN_IND,
38 BT_RECONFIG_PROFILE_CNF,
39 BT_RESTORE_LIST_RESULT,
40 BT_SRV_SYNC_AUTH_IND,
41 BT_RESTORE_CONF_RESULT,
42 BT_SERVICE_FOUND_IND,
43 BT_DEVICE_SEARCH_CNF,
44 BT_DEVICE_PAIRED_IND,
45 BT_DISCON_DUN_FAX_CNF,
46 BT_CALL_MONITORING_STATUS,
47 BT_AUTHORIZATION_IND,
48 BT_DISCON_DUN_FAX_IND,
49 BT_OPP_OBJECT_PUSH_CNF,
50 BT_OPP_OBJECT_PULL_CNF,
51 BT_OPP_SERV_PUT_IND,
52 BT_OPP_SERV_PUT_CNF,
53 BT_SRV_SYNC_PULL_IND,
54 BT_SRV_SYNC_PUSH_IND,
55 BT_SRV_SYNC_PUSH_CNF,
56 BT_CONNECT_DEVICE_INF,
57 BT_TRUSTED_DEV_LIST_FULL,
58 BT_CHNG_LOCAL_NAME,
59 BT_READ_LOCAL_NAME,
60 BT_REMOTE_DEV_INFO_RES,
61 BT_CHNG_CONNECTABLE_MODE,
62 BT_CHNG_DISCOVERABLE_MODE,
63 BT_READ_BD_ADDR
64 /*#ifdef PCA_6350*/
65 ,
66 BT_PCA_GW_STATUS_CFM,
67 BT_PCA_GW_LINK_MONITORING,
68 BT_PCA_GW_CALL_MONITORING,
69 BT_PCA_GW_HANGUP_CFM,
70 /*#endif*/ /* PCA_6350 */
71 /* Cartman added begin */
72 BT_HSG_HEADSET_CONNECTION_IND,
73 BT_HSG_SPECIFIC_CMD_CFM,
74 BT_HSG_SAVE_LIST_CNF
75 /* Cartman added end */
76 } T_MFW_BT_EVENT;
77
78 /* constants */
79 #define MFW_BT_ADDR_MAX_LEN BTI_BD_ADDR_LENGTH
80 #define MFW_BT_NAME_MAX_LEN BTI_BD_NAME_LENGTH
81 #define MFW_BT_DEVICE_CLASS_LEN BTI_DEVICE_CLASS_LENGTH
82 #define MFW_BT_PIN_MAX_LEN BTI_PIN_LENGTH
83 #define MFW_BT_SERVICE_NAME_MAX_LEN BTI_SERVICE_NAME_LENGTH
84 #define MFW_BT_HSG_NAME_MAX_LEN BTI_HSG_NAME_LENGTH
85 #define MFW_BT_APPL_NAME_MAX_LEN BTI_APPLI_NAME_LENGTH
86 #define MFW_BT_PHONE_LIST_MAX_LEN BTI_PHONE_NB_LIST_MAX_LENGTH
87 #define MFW_BT_KEY_LIST_MAX_LEN BTI_PHONE_NB_LIST_MAX_LENGTH
88 #define MFW_BT_PHONE_NUMBER_MAX_LEN BTI_PHONE_NUMBER_MAX_LENGTH
89 #define MFW_BT_OPP_OBJECT_NAME_MAX_LEN BTI_OPP_NAME_MAX_LENGTH
90 #define MFW_BT_OPP_OBJECT_MIME_MAX_LEN BTI_OPP_MIME_MAX_LENGTH
91 /* default values */
92 #define MFW_BT_CONN_SCAN_TIME_DEFAULT_VALUE BTI_CONN_SCAN_TIME_DEFAULT_VALUE /* 1,28 s */
93 #define MFW_BT_CONN_SCAN_BREAK_DEFAULT_VALUE BTI_CONN_SCAN_BREAK_DEFAULT_VALUE /* 1,28 s */
94
95 #define MFW_BT_DEFAULT_HEADSET_ID BTI_DEFAULT_HEADSET_ID
96 #define MFW_BT_INVALID_HEADSET_ID BTI_INVALID_HEADSET_ID
97 #define MFW_BT_NO_ID BTI_NO_ID
98
99 /* service id's */
100 #define MFW_BT_Serial_Port BTI_Serial_Port
101 #define MFW_BT_LAN_Access BTI_LAN_Access
102 #define MFW_BT_Dial_Up_Networking BTI_Dial_Up_Networking
103 #define MFW_BT_IrMC_Sync BTI_IrMC_Sync
104 #define MFW_BT_OBEX_Object_Push BTI_OBEX_Object_Push
105 #define MFW_BT_OBEX_File_Transfer BTI_OBEX_File_Transfer
106 #define MFW_BT_IrMC_Sync_Command BTI_IrMC_Sync_Command
107 #define MFW_BT_Ser_Headset BTI_Headset
108 #define MFW_BT_Cordless_telephony BTI_Cordless_telephony
109 #define MFW_BT_Intercom BTI_Intercom
110 #define MFW_BT_Fax BTI_Fax
111 #define MFW_BT_Headset_Audio_Gateway BTI_Headset_Audio_Gateway
112 #define MFW_BT_WAP BTI_WAP
113 #define MFW_BT_WAP_Client BTI_WAP_Client
114
115 /* service names */
116 #define MFW_BT_SERV_HSG SERVICE_HSG
117 #define MFW_BT_SERV_DUN SERVICE_DUN
118 #define MFW_BT_SERV_FAX SERVICE_FAX_GW
119 #define MFW_BT_SERV_OPP SERVICE_OPP
120 #define MFW_BT_SERV_SYNC_C SERVICE_SYNC_C
121
122 /* authorization id's */
123 #define MFW_SERVICE_HSG SERVICE_HSG_ID
124 #define MFW_SERVICE_DUN SERVICE_DUN_ID
125 #define MFW_SERVICE_FAX SERVICE_FAX_ID
126 #define MFW_SERVICE_OPP SERVICE_OPP_ID
127 #define MFW_SERVICE_SYNC_C SERVICE_SYNC_C_ID
128
129 /* service id's */
130 #define MFW_SERVICE_ID_SPP BTI_SERVICE_ID_SPP
131 #define MFW_SERVICE_ID_LAN BTI_SERVICE_ID_LAN
132 #define MFW_SERVICE_ID_DUN BTI_SERVICE_ID_DUN
133 #define MFW_SERVICE_ID_SYNC BTI_SERVICE_ID_SYNC
134 #define MFW_SERVICE_ID_OPP BTI_SERVICE_ID_OPP
135 #define MFW_SERVICE_ID_FTP BTI_SERVICE_ID_FTP
136 #define MFW_SERVICE_ID_SYNC_CMD BTI_SERVICE_ID_SYNC_CMD
137 #define MFW_SERVICE_ID_HS BTI_SERVICE_ID_HS
138 #define MFW_SERVICE_ID_CORDLESS BTI_SERVICE_ID_CORDLESS
139 #define MFW_SERVICE_ID_INTERCOM BTI_SERVICE_ID_INTERCOM
140 #define MFW_SERVICE_ID_FAX BTI_SERVICE_ID_FAX
141 #define MFW_SERVICE_ID_HSG BTI_SERVICE_ID_HSG
142 #define MFW_SERVICE_ID_WAP BTI_SERVICE_ID_WAP
143 #define MFW_SERVICE_ID_WAP_CLIENT BTI_SERVICE_ID_WAP_CLIENT
144 #define MFW_SERVICE_ID_GENERIC_AUDIO BTI_SERVICE_ID_GENERIC_AUDIO
145
146 /* hsg security */
147 #define MFW_BT_HSG_CLIENT_NO_SECURITY (BTI_HSG_CLIENT_NO_SECURITY)
148 #define MFW_BT_HSG_CLIENT_AUTHENTICATION (BTI_HSG_CLIENT_AUTHENTICATION)
149 #define MFW_BT_HSG_CLIENT_ENCRYPTION (BTI_HSG_CLIENT_ENCRYPTION)
150 #define MFW_BT_HSG_CLIENT_AUTHORIZATION (BTI_HSG_CLIENT_AUTHORIZATION)
151
152 #define MFW_BT_HSG_SERVER_NO_SECURITY (BTI_HSG_SERVER_NO_SECURITY)
153 #define MFW_BT_HSG_SERVER_AUTHENTICATION (BTI_HSG_SERVER_AUTHENTICATION)
154 #define MFW_BT_HSG_SERVER_ENCRYPTION (BTI_HSG_SERVER_ENCRYPTION)
155 #define MFW_BT_HSG_SERVER_AUTHORIZATION (BTI_HSG_SERVER_AUTHORIZATION)
156
157 /* type definitions */
158 typedef unsigned char T_MFW_BT_BD_NAME;
159 typedef unsigned char T_MFW_BT_SERVICE_NAME;
160 typedef unsigned char T_MFW_BT_HSG_NAME;
161 typedef unsigned char T_MFW_BT_APPL_NAME;
162 typedef unsigned char T_MFW_BT_BD_ADDR;
163 typedef unsigned char T_MFW_DEVICE_CLASS;
164 typedef unsigned char T_MFW_BT_PIN;
165 typedef unsigned char T_MFW_BT_SYN_PASSWD;
166
167 typedef unsigned char T_MFW_BT_REQ_ID;
168 typedef unsigned char T_MFW_BT_CNF_ID;
169 typedef unsigned char T_MFW_BT_DEV_ID;
170 typedef unsigned char T_MFW_BT_IND_ID;
171 typedef unsigned char T_MFW_BT_SECURITY;
172 typedef unsigned char T_MFW_BT_CONN_TIME;
173 typedef unsigned char T_MFW_BT_NB_PHONE;
174 typedef unsigned char T_MFW_BT_SERVER_CONN_CNF;
175
176 typedef unsigned short T_MFW_BT_CONN_BREAK;
177 typedef unsigned char T_MFW_BT_PRIORITY;
178 typedef unsigned long T_MFW_BT_AUTHORIZATION_MASK;
179
180 typedef unsigned short T_MFW_BT_HSG_SERVER_SECURITY_MODE;
181 typedef unsigned short T_MFW_BT_HSG_CLIENT_SECURITY_MODE;
182
183 typedef unsigned short T_MFW_SERVICE_ID;
184
185 typedef char * T_MFW_BT_OPP_FILE_PATH;
186 /* the object store name */
187 typedef char * T_MFW_BT_SYN_OBJECT_STORE;
188 #define MFW_BT_SYNC_OBJECT_IDENTIFIER BTI_SYNC_OBJECT_IDENTIFIER
189
190 /* declaration security level */
191 #define MFW_BT_INCOM_AUTHENTICATION BTI_INCOMING_AUTHENTICATION
192 #define MFW_BT_INCOM_ENCRYPTION BTI_INCOMING_ENCRYPTION
193 #define MFW_BT_INCOM_AUTHORIZATION BTI_INCOMING_AUTHORIZATION
194 #define MFW_BT_OUTGO_AUTHENTICATION BTI_OUTGOING_AUTHENTICATION
195 #define MFW_BT_OUTGO_ENCRYPTION BTI_OUTGOING_ENCRYPTION
196 #define MFW_BT_OUTGO_AUTHORIZATION BTI_OUTGOING_AUTHORIZATION
197
198 /* declaration phone number list */
199 typedef unsigned char T_MFW_BT_HSG_PHONE_NUMBER;
200 #define T_MFW_BT_HSG_PHONE_NUMBER_LIST T_MFW_BT_HSG_PHONE_NUMBER[MFW_BT_PHONE_NUMBER_MAX_LEN];
201 /* declaration key list */
202 typedef unsigned char T_MFW_BT_HSG_KEY_LIST;
203 /* declaration error code by BT */
204 typedef unsigned char T_MFW_BT_ERROR_CAUSE;
205 #define MFW_BT_ERROR_TIMEOUT BTI_HSG_TIMEOUT
206 #define MFW_BT_NO_DEVICE BTI_HSG_NO_DEVICE
207 #define MFW_BT_DEV_CONN_FAIL BTI_HSG_DEVICE_CONNECTION_FAILED
208 #define MFW_BT_INV_PARA BTI_HSG_INVALID_PARAMETERS
209 #define MFW_BT_REST_LIST_ERR BTI_HSG_RESTORE_LIST_ERROR
210 #define MFW_BT_REST_CONFIG_ERR BTI_HSG_RESTORE_CONFIG_ERROR
211 #define MFW_BT_NO_ERROR BTI_NO_ERROR
212 #define MFW_BT_OPP_ABORTED BTI_OPP_ABORTED
213 #define MFW_BT_SYNC_ABORTED BTI_SYNC_ABORTED
214 /* declaration pairing status by BT */
215 typedef unsigned char T_MFW_BT_PAIRED_RESULT;
216 #define MFW_BT_PAIR_SUCCESS BTI_PAIRING_SUCESSFULL
217 #define MFW_BT_PAIR_FAIL BTI_PAIRING_FAILURE
218 /* maximal pairing address entries */
219 #define MAX_MFW_PAIRED_ADDR MAX_PAIRED_ADDR
220 #define MAX_MFW_AUTHORIZ_ADDR MAX_AUTH_ADDR
221
222 /* headset priorities in default headset list */
223 #define MFW_HSG_HEADSET_MAX_PRIORITY BTI_HSG_HEADSET_MAX_PRIORITY
224
225 /* Cartman added begin */
226 typedef char T_MFW_BT_HSG_CMD_TO_HS;
227 /* Cartman added end */
228
229
230 /* MFW - BT management functional return codes */
231 typedef enum
232 {
233 MFW_BT_RET_FAIL = -1, /* execution of command failed */
234 MFW_BT_RET_OK /* execution of command completed */
235 } T_MFW_BT_RETURN;
236
237 /* declaration auto connect state */
238 typedef enum
239 {
240 MFW_BT_AUTO_CONNECT_ON = 0,
241 MFW_BT_AUTO_CONNECT_OFF
242 } T_MFW_BT_AUTO_CONNECT_STATE;
243
244 /* declaration service type */
245 typedef enum
246 {
247 MFW_BT_HEADSET = BTI_HEADSET,
248 MFW_BT_DIAL_UP = BTI_DIAL_UP,
249 MFW_BT_FAX_GW = BTI_FAX_GW,
250 MFW_BT_OPP = BTI_OPP,
251 MFW_BT_SYNC = BTI_SYNC,
252 MFW_BT_SYNC_CMD = BTI_SYNC_CMD,
253 MFW_BT_PCA_GW = BTI_PCA_GW
254 } T_MFW_BT_SERVICE_TYPE;
255
256 /* declaration subtype of profile */
257 typedef enum
258 {
259 MFW_BT_CLIENT = BTI_CLIENT,
260 MFW_BT_SERVER = BTI_SERVER,
261 MFW_BT_NO_SUBTYPE = BTI_NO_SUBTYP
262 } T_MFW_BT_SUBTYPE_DEV;
263
264 /* declaration connection mode */
265 typedef enum
266 {
267 MFW_BT_AUTO_OUTG_DEF_CONN_OFF = 0,
268 MFW_BT_AUTO_OUTG_DEF_CONN_ON
269 } T_MFW_BT_CONFIG_MODE;
270
271 /* declaration mode of PIN delivery */
272 typedef enum
273 {
274 PIN_PROVIDED,
275 PIN_UNABLE
276 } T_MFW_BT_PIN_MODE;
277
278 /* declaration result by BT */
279 typedef enum
280 {
281 MFW_BT_OK = BTI_OK,
282 MFW_BT_NOK = BTI_NOK,
283 MFW_BT_NO_SUPP = BTP_NOT_SUPP,
284 MFW_BT_INVALID_PARA = BTP_INVALID_PARAMETER,
285 MFW_BT_NOT_READY = BTP_NOT_READY,
286 MFW_BT_INT_ERR = BTP_INT_ERR,
287 MFW_BT_MEM_ERR = BTP_MEMORY_ERR,
288 MFW_BT_EXECUTE,
289 MFW_BT_FAIL,
290 MFW_BT_HSG_ALREADY_STORED
291 } T_MFW_BT_RESULT_BT;
292
293 typedef enum
294 {
295 MFW_BT_PROFILE_INIT = BTI_PROFILE_INIT,
296 MFW_BT_PROFILE_ENABLE = BTI_PROFILE_ENABLE
297 } T_MFW_BT_ACTION;
298 /* declaration config dialup */
299 typedef enum
300 {
301 MFW_BT_LINK_MONIT_ON = BTI_DUN_LINK_MONIT_ON,
302 MFW_BT_LINK_MONIT_OFF = BTI_DUN_LINK_MONIT_OFF
303 } T_MFW_BT_LINK_EVENT;
304
305 typedef enum
306 {
307 MFW_BT_CALL_MONIT_ON = BTI_DUN_CALL_MONIT_ON,
308 MFW_BT_CALL_MONIT_OFF = BTI_DUN_CALL_MONIT_OFF
309 } T_MFW_BT_CALL_EVENT;
310
311
312 /* declaration common security modes */
313 typedef enum
314 {
315 MFW_BT_SECURITY_MODE_1 = BTI_SM_SECURITY_MODE_1,
316 MFW_BT_SECURITY_MODE_2 = BTI_SM_SECURITY_MODE_2,
317 MFW_BT_SECURITY_MODE_3 = BTI_SM_SECURITY_MODE_3
318 } T_MFW_BT_SECURITY_MODE;
319
320 /* declaration opp put response */
321 typedef enum
322 {
323 MFW_BT_OPP_CONTINUE = BTI_OPP_CONT,
324 MFW_BT_OPP_R_ENTITY_TOO_L = BTI_OPP_TOO_LARGE,
325 MFW_BT_OPP_FORBIDDEN = BTI_OPP_FORBIDDEN
326 } T_MFW_BT_OPP_PUT_RES;
327
328 /* declaration storing type of object */
329 typedef enum
330 {
331 MFW_BT_PATH = BTI_TYPE_PATH,
332 MFW_BT_BUFFER = BTI_TYPE_BUFFER
333 } T_MFW_BT_OBJ_TYPE;
334
335 /* declaration pairable modes */
336 typedef enum
337 {
338 MFW_BT_PAIRABLE = BTI_PAIRABLE,
339 MFW_BT_NON_PAIRABLE = BTI_NON_PAIRABLE
340 } T_MFW_BT_PAIRABLE_MODE;
341
342 /* declaration parameter headset */
343 typedef enum
344 {
345 MFW_BT_MIC_GAIN = BTI_MIC_GAIN,
346 MFW_BT_SPEAKER_GAIN = BTI_SPEAKER_GAIN
347 } T_MFW_BT_PARAM_NUMBER;
348
349 typedef enum
350 {
351 MFW_BT_PARA_INC = BTI_PARA_INC,
352 MFW_BT_PARA_DEC = BTI_PARA_DEC,
353 MFW_BT_PARA_SET = BTI_PARA_SET
354 } T_MFW_BT_CHANGE_PARA;
355 /* call monitoring status by dun */
356 typedef enum
357 {
358 MFW_BT_CALL_IN_PROGRESS = 0,
359 MFW_BT_CALL_ESTABLISHED,
360 MFW_BT_CALL_PAUSED,
361 MFW_BT_CALL_RESUMED,
362 MFW_BT_HANGUP_IN_PROGRESS,
363 MFW_BT_CALL_RELEASED
364 } T_MFW_BT_CALL_STATUS;
365
366 /* declaration data authorization modi */
367 typedef enum
368 {
369 MFW_BT_AUTHORIZED_ONCE = BTI_AUTHORIZED_ONCE,
370 MFW_BT_AUTHORIZED_ALWAYS = BTI_AUTHORIZED_ALWAYS,
371 MFW_BT_UNAUTHORIZED = BTI_UNAUTHORIZED
372 }T_MFW_BT_AUTHORIZATION_MODE;
373
374 /* declaration data connection direction */
375 typedef enum
376 {
377 MFW_BT_INCOM = INCOM_CONN,
378 MFW_BT_OUTGO = OUTGO_CONN
379 } T_MFW_BT_CONN_DIR;
380
381 /* declaration opp server mode */
382 typedef enum
383 {
384 MFW_BT_OPP_NO_MODE = BTI_NO_OPP_MODE,
385 MFW_BT_OPP_SILENT_MODE = BTI_OPP_SILENT_FILE_MODE,
386 MFW_BT_OPP_FILE_MODE = BTI_OPP_EVENT_FILE_MODE,
387 MFW_BT_OPP_BUFFER_MODE = BTI_OPP_EVENT_BUFFER_MODE
388 } T_MFW_BT_OPP_SERV_MODE;
389
390 /* declaration syn server mode */
391 typedef enum
392 {
393 MFW_BT_SYNC_NO_MODE = BTI_NO_SYNC_MODE,
394 MFW_BT_SYNC_GEN_MODE = BTI_GEN_SYNC,
395 MFW_BT_SYNC_INIT_MODE = BTI_INIT_SYNC
396 } T_MFW_BT_SYNC_SERV_MODE;
397
398 /* declaration syn server authentication mode */
399 typedef enum
400 {
401 MFW_BT_SYNC_NO_AUTH_MODE = BTI_NO_SYNC_AUTHENTICATION_MODE,
402 MFW_BT_SYNC_INIT_AUTH_MODE = BTI_INITIATE_AUTHENTICATION,
403 MFW_BT_SYNC_NO_INIT_AUTH_MODE = BTI_NO_INITIATE_AUTHENTICATION
404 } T_MFW_BT_SYNC_AUTH_MODE;
405
406 /* declaration syn server commands */
407 typedef enum
408 {
409 MFW_BT_SYNC_CO_SYNC = BTI_SYNC_COM_SYNC,
410 MFW_BT_SYNC_CO_PUT = BTI_SYNC_COM_PUT
411 } T_MFW_BT_SYNC_COMMAND;
412
413 /* declaration source ids in connection indication */
414 typedef enum
415 {
416 MFW_BT_REM_HEADSET = REM_HEADSET,
417 MFW_BT_GSM_NETWORK = GSM_NETWORK,
418 MFW_BT_NO_HSG = NO_PROFILE_HSG
419 } T_MFW_BT_SOURCE;
420
421 /* declaration of discoverable modes for btctrl */
422 typedef enum
423 {
424 MFW_BT_NON_DISCOVERABLE = BTI_NON_DISCOVERABLE,
425 MFW_BT_LIMITED_DISCOVERABLE = BTI_LIMITED_DISCOVERABLE,
426 MFW_BT_GENERAL_DISCOVERABLE = BTI_GENERAL_DISCOVERABLE
427 } T_MFW_BT_DISCOVERABLE_MODE;
428
429 /* declaration of connectable modes for btctrl */
430 typedef enum
431 {
432 MFW_BT_NON_CONNECTABLE = BTI_NON_CONNECTABLE,
433 MFW_BT_CONNECTABLE = BTI_CONNECTABLE
434 }T_MFW_BT_CONNECTABLE_MODE;
435
436
437 /* structures */
438 /* declaration headset client configuration parameter */
439 typedef struct
440 {
441 T_MFW_BT_CONFIG_MODE config_mode;
442 T_MFW_BT_HSG_CLIENT_SECURITY_MODE security;
443 } T_MFW_BT_HSG_CLIENT_CONFIG;
444
445
446 /* declaration sync server configuration parameter */
447 typedef struct
448 {
449 T_MFW_BT_SYNC_SERV_MODE mfw_syn_srv_mode;
450 T_MFW_BT_SYNC_AUTH_MODE mfw_syn_srv_auth_mode;
451 } T_MFW_BT_SYNC_SERVER_CONFIG;
452
453 /* declaration headset server configuration parameter */
454 typedef struct
455 {
456 T_MFW_BT_SERVER_CONN_CNF serv_con_conf;
457 T_MFW_BT_CONN_BREAK conn_break;
458 T_MFW_BT_CONN_TIME conn_time;
459 T_MFW_BT_NB_PHONE nb_phone;
460 T_MFW_BT_HSG_SERVER_SECURITY_MODE security;
461 T_MFW_BT_HSG_PHONE_NUMBER mfw_phone_list[MFW_BT_PHONE_LIST_MAX_LEN][MFW_BT_PHONE_NUMBER_MAX_LEN];
462 T_MFW_BT_HSG_KEY_LIST mfw_key_list[MFW_BT_KEY_LIST_MAX_LEN];
463 } T_MFW_BT_HSG_SERVER_CONFIG;
464
465 /* declaration dial up configuration parameter */
466 typedef struct
467 {
468 T_MFW_BT_LINK_EVENT link_event;
469 T_MFW_BT_CALL_EVENT call_event;
470 } T_MFW_BT_DUN_CONFIG;
471
472 /* declaration fax gateway configuration parameter */
473 typedef struct
474 {
475 T_MFW_BT_LINK_EVENT link_event;
476 T_MFW_BT_CALL_EVENT call_event;
477 } T_MFW_BT_FAX_CONFIG;
478
479
480 /* declaration opp type object */
481 typedef struct
482 {
483 T_MFW_BT_OBJ_TYPE mfw_object_type;
484 U8 * mfw_buffer_start;
485 U16 mfw_buffer_size;
486 T_MFW_BT_OPP_FILE_PATH mfw_path;/* path to delivered object (f.e.default business card) */
487 char * mfw_object_name;
488 char * mfw_object_mime_type;
489 ULONG mfw_object_length;
490 }T_MFW_BT_OPP_OBJECT;
491
492 #define T_MFW_BT_SYNC_OBJECT T_MFW_BT_OPP_OBJECT
493
494 /* declaration opp server configuration parameter */
495 typedef struct
496 {
497 T_MFW_BT_OPP_SERV_MODE mfw_opp_mode;
498 T_MFW_BT_OPP_FILE_PATH mfw_inbox_path;/* path for store of objects */
499 T_MFW_BT_OPP_OBJECT mfw_opp_object;
500 } T_MFW_BT_OPP_SERVER_CONFIG;
501
502
503 /* declaration opp server put request parameter */
504 typedef struct
505 {
506 T_MFW_BT_SERVICE_TYPE service;
507 T_MFW_BT_SUBTYPE_DEV subtype;
508 T_MFW_BT_BD_ADDR bd_addr[MFW_BT_ADDR_MAX_LEN];
509 T_MFW_BT_OPP_OBJECT mfw_opp_object;
510 } T_MFW_BT_OPP_PUT_IND;
511
512 /* declaration opp server put confirm parameter */
513 typedef struct
514 {
515 T_MFW_BT_SERVICE_TYPE service;
516 T_MFW_BT_SUBTYPE_DEV subtype;
517 T_MFW_BT_BD_ADDR bd_addr[MFW_BT_ADDR_MAX_LEN];
518 T_MFW_BT_OPP_OBJECT mfw_opp_object;
519 T_MFW_BT_ERROR_CAUSE error_cause;
520 } T_MFW_BT_OPP_PUT_CNF;
521
522 /* declaration opp client push object parameter to server */
523 typedef struct
524 {
525 T_MFW_BT_SERVICE_TYPE service;
526 T_MFW_BT_SUBTYPE_DEV subtype;
527 T_MFW_BT_BD_ADDR bd_addr[MFW_BT_ADDR_MAX_LEN];
528 T_MFW_BT_OPP_OBJECT mfw_opp_object;
529 T_MFW_BT_ERROR_CAUSE error_cause;
530 } T_MFW_BT_OPP_PUSH_CNF;
531
532 /* declaration opp client pull object parameter from server */
533 typedef struct
534 {
535 T_MFW_BT_SERVICE_TYPE service;
536 T_MFW_BT_SUBTYPE_DEV subtype;
537 T_MFW_BT_BD_ADDR bd_addr[MFW_BT_ADDR_MAX_LEN];
538 T_MFW_BT_OPP_OBJECT mfw_opp_object;
539 T_MFW_BT_ERROR_CAUSE error_cause;
540 } T_MFW_BT_OPP_PULL_CNF;
541
542 /* declaration info structure of headset */
543 typedef struct
544 {
545 T_MFW_BT_BD_ADDR bd_addr[MFW_BT_ADDR_MAX_LEN];
546 T_MFW_BT_HSG_NAME hsg_name[MFW_BT_HSG_NAME_MAX_LEN];
547 T_MFW_BT_PRIORITY priority;
548 BOOL mfw_remote_audio_control_support;
549 } T_MFW_BT_HEADSET_INFO;
550
551 /* declaration data disconnection confirm profile hsg */
552 typedef struct
553 {
554 T_MFW_BT_SERVICE_TYPE service;
555 T_MFW_BT_CNF_ID cnf_id;
556 T_MFW_BT_BD_ADDR bd_addr[MFW_BT_ADDR_MAX_LEN];
557 } T_MFW_BT_DISCONNECT_CNF;
558
559 /* declaration data disconnection confirm profile dun/fax */
560 typedef struct
561 {
562 T_MFW_BT_SERVICE_TYPE service;
563 T_MFW_BT_RESULT_BT result_bd;
564 } T_MFW_BT_DISCON_DUN_FAX_CNF;
565
566 /* declaration data pin indication */
567 typedef struct
568 {
569 T_MFW_BT_BD_ADDR bd_addr[MFW_BT_ADDR_MAX_LEN];
570 T_MFW_BT_BD_NAME bd_name[MFW_BT_NAME_MAX_LEN];
571 } T_MFW_BT_PIN_IND;
572
573 /* declaration data authorization indication */
574 typedef struct
575 {
576 T_MFW_BT_BD_ADDR bd_addr[MFW_BT_ADDR_MAX_LEN];
577 T_MFW_BT_BD_NAME bd_name[MFW_BT_NAME_MAX_LEN];
578 T_MFW_BT_APPL_NAME appli_name[MFW_BT_APPL_NAME_MAX_LEN];
579 T_MFW_BT_AUTHORIZATION_MASK auth_mask_mfw;
580 T_MFW_BT_CONN_DIR connection_dir;
581 } T_MFW_BT_AUTHORIZATION_IND;
582
583 /*declaration data service paramater */
584 typedef struct
585 {
586 T_MFW_BT_AUTHORIZATION_MASK mfw_authorization_mask;
587 T_MFW_BT_SERVICE_NAME service_name[MFW_BT_SERVICE_NAME_MAX_LEN];
588 } T_MFW_BT_SERVICE_PARAM;
589
590 /* declaration data transfer audio out confirm */
591 typedef struct
592 {
593 T_MFW_BT_SERVICE_TYPE service;
594 T_MFW_BT_CNF_ID cnf_id;
595 T_MFW_BT_BD_ADDR bd_addr[MFW_BT_ADDR_MAX_LEN];
596 T_MFW_BT_RESULT_BT result_bd;
597 } T_MFW_BT_TRANSFER_AUDIO_OUT_CNF;
598
599 /* declaration data transfer audio in confirm */
600 typedef struct
601 {
602 T_MFW_BT_SERVICE_TYPE service;
603 T_MFW_BT_BD_ADDR bd_addr[MFW_BT_ADDR_MAX_LEN];
604 T_MFW_BT_RESULT_BT result_bd;
605 } T_MFW_BT_TRANSFER_AUDIO_IN_CNF;
606
607 /* declaration data connection confirm for headset */
608 typedef struct
609 {
610 T_MFW_BT_SERVICE_TYPE service;
611 T_MFW_BT_CNF_ID cnf_id;
612 T_MFW_BT_BD_ADDR bd_addr[MFW_BT_ADDR_MAX_LEN];
613 T_MFW_BT_ERROR_CAUSE cause;
614 T_MFW_BT_RESULT_BT result_bd;
615 } T_MFW_BT_CONNECT_CNF;
616
617 /* declaration data connection indication*/
618 typedef struct
619 {
620 T_MFW_BT_SERVICE_TYPE service;
621 T_MFW_BT_IND_ID ind_id;
622 T_MFW_BT_BD_ADDR bd_addr[MFW_BT_ADDR_MAX_LEN];
623 T_MFW_BT_BD_NAME bd_name[MFW_BT_NAME_MAX_LEN];
624 T_MFW_BT_SOURCE mfw_src_id;
625 } T_MFW_BT_CONNECT_IND;
626
627 /* declaration data connection information */
628 typedef struct
629 {
630 T_MFW_BT_SERVICE_TYPE service;
631 T_MFW_BT_IND_ID ind_id;
632 T_MFW_BT_BD_ADDR bd_addr[MFW_BT_ADDR_MAX_LEN];
633 } T_MFW_BT_CONNECT_INF;
634
635 /* declaration data disconnection indication for fax and dun */
636 typedef struct
637 {
638 T_MFW_BT_SERVICE_TYPE service;
639 } T_MFW_BT_DISCON_DUN_FAX_IND;
640
641 /* declaration data disconnection indication */
642 typedef struct
643 {
644 T_MFW_BT_SERVICE_TYPE service;
645 T_MFW_BT_BD_ADDR bd_addr[MFW_BT_ADDR_MAX_LEN];
646 T_MFW_BT_IND_ID ind_id;
647 } T_MFW_BT_DISCONNECT_IND;
648
649 /* declaration data search confirm */
650 typedef struct
651 {
652 T_MFW_BT_SERVICE_TYPE service;
653 } T_MFW_BT_SERVICE_SEARCH_CNF;
654
655 /* declaration data search confirm */
656 typedef struct
657 {
658 T_MFW_BT_RESULT_BT result;
659 } T_MFW_BT_DEVICE_SEARCH_CNF;
660
661
662 /* declaration data service indication */
663 typedef struct
664 {
665 T_MFW_BT_SERVICE_TYPE service;
666 T_MFW_BT_BD_ADDR bd_addr[MFW_BT_ADDR_MAX_LEN];
667 T_MFW_DEVICE_CLASS cod[MFW_BT_DEVICE_CLASS_LEN];
668 T_MFW_BT_BD_NAME bd_name[MFW_BT_NAME_MAX_LEN];
669 T_MFW_BT_SERVICE_NAME service_name[MFW_BT_SERVICE_NAME_MAX_LEN];
670 } T_MFW_BT_SERVICE_IND;
671
672 /* declaration data device indication */
673 typedef struct
674 {
675 T_MFW_BT_BD_ADDR bd_addr[MFW_BT_ADDR_MAX_LEN];
676 T_MFW_DEVICE_CLASS cod[MFW_BT_DEVICE_CLASS_LEN];
677 T_MFW_BT_BD_NAME bd_name[MFW_BT_NAME_MAX_LEN];
678 U32 num_services;
679 U32 services;
680 } T_MFW_BT_DEVICE_IND;
681
682 /* declaration data profile confirm */
683 typedef struct
684 {
685 T_MFW_BT_SERVICE_TYPE service;
686 T_MFW_BT_RESULT_BT result_bd;
687 T_MFW_BT_ACTION action;
688 T_MFW_BT_SUBTYPE_DEV subtype;
689 T_MFW_BT_OPP_SERV_MODE mfw_opp_mode;
690 T_MFW_BT_SYNC_SERV_MODE mfw_sync_mode;
691 T_MFW_BT_SYNC_AUTH_MODE mfw_syn_aut_mode;
692 } T_MFW_BT_PROFILE_CNF;
693
694 typedef struct
695 {
696 T_MFW_BT_SERVICE_TYPE profile;
697 } T_MFW_BT_PROFILE_CREATE_CNF;
698
699 typedef struct
700 {
701 T_MFW_BT_SERVICE_TYPE profile;
702 } T_MFW_BT_PROFILE_DELETE_CNF;
703
704 typedef struct
705 {
706 U8 id;
707 T_MFW_BT_BD_ADDR bd_addr[MFW_BT_ADDR_MAX_LEN];
708 T_MFW_BT_HSG_NAME hsg_name[MFW_BT_HSG_NAME_MAX_LEN];
709 T_MFW_BT_PRIORITY priority;
710 }T_MFW_BT_DEFAULT_DEV;
711
712 typedef struct
713 {
714 T_MFW_BT_SERVICE_TYPE service;
715 T_MFW_BT_ERROR_CAUSE cause;
716 }T_MFW_BT_REST_CONFIG;
717
718 typedef struct
719 {
720 T_MFW_BT_BD_ADDR rem_bd_addr[MFW_BT_ADDR_MAX_LEN];
721 T_MFW_BT_BD_NAME rem_bd_name[MFW_BT_NAME_MAX_LEN];
722 T_MFW_BT_PAIRED_RESULT pair_res;
723 }T_MFW_BT_DEV_PAIR_IND;
724
725 typedef struct
726 {
727 T_MFW_BT_SERVICE_TYPE service;
728 T_MFW_BT_CALL_STATUS call_state;
729 } T_MFW_BT_CALL_STATUS_DUN_FAX;
730
731 /* structures for list with addresses and names of desired device(service id) - dynamicly */
732 typedef struct T_MFW_BT_SERVICE_ID_TAG
733 {
734 struct T_MFW_BT_SERVICE_ID_TAG *next; /* next block of bluetooth device */
735 T_MFW_BT_BD_ADDR bd_addr[MFW_BT_ADDR_MAX_LEN];
736 T_MFW_DEVICE_CLASS cod[MFW_BT_DEVICE_CLASS_LEN];
737 T_MFW_BT_BD_NAME bd_name[MFW_BT_NAME_MAX_LEN];
738 T_MFW_BT_SERVICE_NAME service_name[MFW_BT_SERVICE_NAME_MAX_LEN];
739 } T_MFW_BT_SERVICE_ID;
740
741 typedef struct
742 {
743 T_MFW_BT_SERVICE_TYPE service;
744 T_MFW_BT_SERVICE_ID *device_id;
745 } T_MFW_BT_SERVICE_LST;
746 /* structure for pointer to list of found devices */
747 typedef struct
748 {
749 T_MFW_BT_SERVICE_LST *list_ptr;
750 } T_MFW_BT_SERVICE_LST_P;
751
752 /* structures for list with address and names of found services of a device - dynamicly */
753 typedef struct T_MFW_BT_DEVICE_ID_TAG
754 {
755 struct T_MFW_BT_DEVICE_ID_TAG *next; /* next block of bluetooth device */
756 T_MFW_BT_BD_ADDR bd_addr[MFW_BT_ADDR_MAX_LEN];
757 T_MFW_DEVICE_CLASS cod[MFW_BT_DEVICE_CLASS_LEN];
758 T_MFW_BT_BD_NAME bd_name[MFW_BT_NAME_MAX_LEN];
759 U32 num_services;
760 U32 services;
761 } T_MFW_BT_DEVICE_ID;
762
763 typedef struct
764 {
765 T_MFW_BT_DEVICE_ID *device_id;
766 } T_MFW_BT_DEVICE_LST;
767 /* structure for pointer to list of found devices and their services */
768 typedef struct
769 {
770 T_MFW_BT_DEVICE_LST *list_ptr;
771 } T_MFW_BT_DEVICE_LST_P;
772
773 /* structure of list of paired devices */
774 typedef struct
775 {
776 U8 count;
777 T_MFW_BT_BD_ADDR paired_bd_addr[MAX_MFW_PAIRED_ADDR][MFW_BT_ADDR_MAX_LEN];
778 } T_MFW_BT_DEV_PAIR_LIST;
779
780 /* structure of list of authorization database devices */
781 typedef struct
782 {
783 T_MFW_BT_AUTHORIZATION_MASK mask_authorization;
784 T_MFW_BT_BD_ADDR remote_bd_addr[MFW_BT_ADDR_MAX_LEN];
785 } T_MFW_BT_AUTHORIZATION_ELEMENT;
786
787
788 typedef struct
789 {
790 U8 count;
791 T_MFW_BT_AUTHORIZATION_ELEMENT auth_devices[MAX_MFW_AUTHORIZ_ADDR];
792 } T_MFW_BT_AUTHORIZATION_LIST;
793
794 /* an sync object store list */
795 typedef struct mfw_bt_object_store_list_struct
796 {
797 struct mfw_bt_object_store_list_struct *next_object; /* pointer to next object */
798 T_MFW_BT_SYN_OBJECT_STORE object_store; /* name of the object store */
799 /* usually this is where the char array for the object store name can be found */
800 } T_MFW_BT_SYN_OBJECT_STORE_ITEM;
801
802 /* the list is just a pointer to the first item */
803 typedef T_MFW_BT_SYN_OBJECT_STORE_ITEM * T_MFW_BT_SYN_OBJECT_STORE_LIST;
804
805 /* structure syn object id */
806 typedef struct
807 {
808 U16 mfw_object_size;
809 char * mfw_location;
810 } T_MFW_BT_SYNC_OBJECT_ID;
811
812 /* structure for response of synchronization operation */
813 typedef struct
814 {
815 T_MFW_BT_SERVICE_TYPE service;
816 T_MFW_BT_SUBTYPE_DEV subtype;
817 T_MFW_BT_ERROR_CAUSE mfw_error_state;
818 T_MFW_BT_BD_ADDR mfw_client_bd_addr[MFW_BT_ADDR_MAX_LEN];
819 T_MFW_BT_BD_NAME mfw_client_name[MFW_BT_NAME_MAX_LEN];
820 } T_MFW_BT_SRV_SYNC_CNF;
821
822 /* structure for request authentication password */
823 typedef struct
824 {
825 T_MFW_BT_SERVICE_TYPE service;
826 T_MFW_BT_SUBTYPE_DEV subtype;
827 T_MFW_BT_BD_ADDR mfw_client_bd_addr[MFW_BT_ADDR_MAX_LEN];
828 T_MFW_BT_BD_NAME mfw_client_name[MFW_BT_NAME_MAX_LEN];
829 } T_MFW_BT_SRV_SYNC_AUTH_IND;
830
831 /* structure for request pull object from server */
832 typedef struct
833 {
834 T_MFW_BT_SERVICE_TYPE service;
835 T_MFW_BT_SUBTYPE_DEV subtype;
836 T_MFW_BT_BD_ADDR mfw_client_bd_addr[MFW_BT_ADDR_MAX_LEN];
837 T_MFW_BT_SYNC_OBJECT_ID mfw_object_id;
838 } T_MFW_BT_SRV_SYNC_PULL_IND;
839
840 /* structure for request push object to server */
841 typedef struct
842 {
843 T_MFW_BT_SERVICE_TYPE service;
844 T_MFW_BT_SUBTYPE_DEV subtype;
845 T_MFW_BT_BD_ADDR mfw_client_bd_addr[MFW_BT_ADDR_MAX_LEN];
846 T_MFW_BT_SYNC_OBJECT_ID mfw_object_id;
847 } T_MFW_BT_SRV_SYNC_PUSH_IND;
848
849
850 /* structure for confirm object push to server */
851 typedef struct
852 {
853 T_MFW_BT_SERVICE_TYPE service;
854 T_MFW_BT_SUBTYPE_DEV subtype;
855 T_MFW_BT_BD_ADDR mfw_client_bd_addr[MFW_BT_ADDR_MAX_LEN];
856 T_MFW_BT_SYNC_OBJECT mfw_object;
857 T_MFW_BT_SYNC_OBJECT_ID mfw_object_id;
858 } T_MFW_BT_SRV_SYNC_PUSH_CNF;
859
860 /* BT CTRL events */
861 typedef struct
862 {
863 BOOL success; /*< 0: 1> BTCTRL success */
864 } T_MFW_BT_CHNG_LOCAL_NAME;
865
866 typedef struct
867 {
868 BOOL success; /*< 0: 1> BTCTRL success */
869 T_MFW_BT_BD_NAME bd_name[MFW_BT_NAME_MAX_LEN]; /*< 1:248> Bluetooth device name */
870 } T_MFW_BT_READ_LOCAL_NAME;
871
872 typedef struct
873 {
874 BOOL success; /*< 0: 1> BTCTRL success */
875 T_MFW_BT_BD_ADDR bd_addr[MFW_BT_ADDR_MAX_LEN]; /*< 1: 6> Bluetooth device address */
876 T_MFW_DEVICE_CLASS cod[MFW_BT_DEVICE_CLASS_LEN]; /*< 7: 3> Bluetooth class of device */
877 T_MFW_BT_BD_NAME bd_name[MFW_BT_NAME_MAX_LEN]; /*< 10:248> Bluetooth device name */
878 } T_MFW_BT_REMOTE_DEV_INFO_RES;
879
880 typedef struct
881 {
882 BOOL success; /*< 0: 1> BTCTRL success */
883 T_MFW_BT_CONNECTABLE_MODE mode; /*< 1: 4> Conn/Disc Mode */
884 ULONG scan_interval; /*< 5: 4> Scan Interval */
885 ULONG scan_window; /*< 9: 4> Scan Window */
886 } T_MFW_BT_CHNG_CONNECTABLE_MODE;
887
888 typedef struct
889 {
890 BOOL success; /*< 0: 1> BTCTRL success */
891 T_MFW_BT_DISCOVERABLE_MODE mode; /*< 1: 4> Conn/Disc Mode */
892 ULONG scan_interval; /*< 5: 4> Scan Interval */
893 ULONG scan_window; /*< 9: 4> Scan Window */
894 } T_MFW_BT_CHNG_DISCOVERABLE_MODE;
895
896 typedef struct
897 {
898 BOOL success; /*< 0: 1> BTCTRL success */
899 T_MFW_BT_BD_ADDR bd_addr[MFW_BT_ADDR_MAX_LEN]; /*< 1: 6> Bluetooth device address */
900 } T_MFW_BT_READ_BD_ADDR;
901
902 /*#ifdef PCA_6350*/
903
904 typedef enum
905 {
906 MFW_BT_PCA_LINK_MONIT_ON = BTI_PCA_LINK_MONIT_ON,
907 MFW_BT_PCA_LINK_MONIT_OFF = BTI_PCA_LINK_MONIT_OFF
908 } T_MFW_BT_PCA_LINK_EVENT;
909
910 typedef enum
911 {
912 MFW_BT_PCA_CALL_MONIT_ON = BTI_PCA_CALL_MONIT_ON,
913 MFW_BT_PCA_CALL_MONIT_OFF = BTI_PCA_CALL_MONIT_OFF
914 } T_MFW_BT_PCA_CALL_EVENT;
915
916 /* declaration pca gateway configuration parameter */
917 typedef struct
918 {
919 T_MFW_BT_PCA_LINK_EVENT link_event;
920 T_MFW_BT_PCA_CALL_EVENT call_event;
921 } T_MFW_BT_PCA_CONFIG;
922
923 typedef enum
924 {
925 MFW_BT_PCA_GW_DISABLED = BTI_PCA_GW_DISABLED,
926 MFW_BT_PCA_GW_ENABLED = BTI_PCA_GW_ENABLED
927 } T_MFW_BT_PCA_GW_STATUS;
928
929 typedef enum
930 {
931 MFW_BT_PCA_GW_NOT_CONNECTED = BTI_PCA_GW_NOT_CONNECTED,
932 MFW_BT_PCA_GW_CONNECTED = BTI_PCA_GW_CONNECTED
933 } T_MFW_BT_PCA_GW_LINK_STATUS;
934
935 typedef enum
936 {
937 MFW_BT_PCA_GW_CALL_IN_PROGRESS = BTI_PCA_GW_CALL_IN_PROGRESS,
938 MFW_BT_PCA_GW_CALL_ESTABLISHED = BTI_PCA_GW_CALL_ESTABLISHED,
939 MFW_BT_PCA_GW_CALL_PAUSED = BTI_PCA_GW_CALL_PAUSED,
940 MFW_BT_PCA_GW_CALL_RESUMED = BTI_PCA_GW_CALL_RESUMED,
941 MFW_BT_PCA_GW_HANGUP_IN_PROGRESS = BTI_PCA_GW_HANGUP_IN_PROGRESS,
942 MFW_BT_PCA_GW_CALL_RELEASED = BTI_PCA_GW_CALL_RELEASED
943 } T_MFW_BT_PCA_GW_CALL_STATUS;
944
945 typedef struct
946 {
947 T_MFW_BT_PCA_GW_STATUS status;
948 } T_MFW_BT_PCA_GW_STATUS_CFM;
949
950 typedef struct
951 {
952 T_MFW_BT_BD_ADDR bd_addr[MFW_BT_ADDR_MAX_LEN];
953 T_MFW_BT_PCA_GW_LINK_STATUS link_status;
954 } T_MFW_BT_PCA_GW_LINK_MONITORING;
955
956 typedef struct
957 {
958 T_MFW_BT_PCA_GW_CALL_STATUS call_status;
959 } T_MFW_BT_PCA_GW_CALL_MONITORING;
960
961 typedef struct
962 {
963 BOOL hangup;
964 } T_MFW_BT_PCA_GW_HANGUP_CFM;
965 /*#endif*/ /* PCA_6350 */
966
967
968 /* Cartman added begin */
969
970 typedef enum
971 {
972 MFW_BT_HSG_CONNECT_NETWORK_ANSWER_OK = (BTI_HSG_CONNECT_NETWORK_ANSWER_OK),
973 MFW_BT_HSG_CONNECT_NETWORK_ANSWER_NOK = (BTI_HSG_CONNECT_NETWORK_ANSWER_NOK)
974 } T_MFW_BT_HSG_CONNECT_NETWORK_ANSWER;
975
976 typedef enum
977 {
978 MFW_BT_HSG_CONNECT_NETWORK_TYPE_AUTOMATIC_DIAL = (BTI_HSG_CONNECT_NETWORK_TYPE_AUTOMATIC_DIAL),
979 MFW_BT_HSG_CONNECT_NETWORK_TYPE_MANUAL_DIAL = (BTI_HSG_CONNECT_NETWORK_TYPE_MANUAL_DIAL)
980 }T_MFW_BT_HSG_CONNECT_NETWORK_TYPE;
981
982 typedef enum
983 {
984 MFW_BT_HSG_CMD_TYPE_RESULT_CODE = (BTI_HSG_CMD_TYPE_RESULT_CODE),
985 MFW_BT_HSG_CMD_TYPE_UNSOLICITED_RESULT = (BTI_HSG_CMD_TYPE_UNSOLICITED_RESULT)
986 }T_MFW_BT_HSG_SPECIFIC_CMD_TYPE;
987
988 typedef struct
989 {
990 T_MFW_BT_SERVICE_TYPE service;
991 T_MFW_BT_IND_ID ind_id;
992 T_MFW_BT_BD_ADDR bd_addr[MFW_BT_ADDR_MAX_LEN];
993 } T_MFW_BT_HSG_HEADSET_CONNECTION_IND;
994
995 typedef struct
996 {
997 T_MFW_BT_HSG_CMD_TO_HS cmd[100];
998 } T_MFW_BT_HSG_SPECIFIC_CMD_CFM;
999
1000 typedef struct
1001 {
1002 UBYTE result;
1003 } T_MFW_BT_HSG_SAVE_LIST_CNF;
1004
1005 /* Cartman added end */
1006
1007
1008
1009 /*
1010 * BT Parameter
1011 */
1012 typedef union
1013 {
1014 T_MFW_BT_PROFILE_CREATE_CNF prof_create_cnf;
1015 T_MFW_BT_PROFILE_DELETE_CNF prof_delete_cnf;
1016 T_MFW_BT_SERVICE_SEARCH_CNF search_conf; /* finish search of services */
1017 T_MFW_BT_DEVICE_SEARCH_CNF dev_search_conf;/* finish search of devices and their services */
1018 T_MFW_BT_DEVICE_IND device_ind; /* found new device */
1019 T_MFW_BT_SERVICE_IND service_ind; /* found new service */
1020 T_MFW_BT_SERVICE_LST_P service_lst_p; /* pointer to list of found devices (search confirm)*/
1021 T_MFW_BT_DEVICE_LST_P device_lst_p; /* pointer to list of found services (device confirm)*/
1022 T_MFW_BT_TRANSFER_AUDIO_IN_CNF audio_in_cnf;/* info audio in confirm */
1023 T_MFW_BT_TRANSFER_AUDIO_OUT_CNF audio_out_cnf;/* info audio out confirm */
1024 T_MFW_BT_DISCONNECT_IND disconnect_ind; /* info disconnection indication */
1025 T_MFW_BT_PIN_IND pin_ind; /* info pin indication (remote request) */
1026 T_MFW_BT_AUTHORIZATION_IND authoriz_ind; /* info authorization indication (remote request) */
1027 T_MFW_BT_DISCON_DUN_FAX_CNF disc_dun_fax_cnf;/* info disconnect dun/ fax */
1028 T_MFW_BT_DISCONNECT_CNF disconnect_cnf; /* info disconnection confirm */
1029 T_MFW_BT_CONNECT_CNF connect_cnf; /* info connection confirm */
1030 T_MFW_BT_DISCON_DUN_FAX_IND con_dun_fax_ind; /* info disconnection indication dial up and fax */
1031 T_MFW_BT_PROFILE_CNF profile; /* info init/deinit profile confirm */
1032 T_MFW_BT_REST_CONFIG restore_conf; /* result restoring configuration bluetooth device */
1033 T_MFW_BT_CONNECT_IND connect_indication; /* info connection indication by remote device */
1034 T_MFW_BT_CONNECT_INF connect_information; /* connection information RFCOMM level */
1035 T_MFW_BT_DEV_PAIR_IND pair_ind; /* result of pairing procedure with remote device */
1036 T_MFW_BT_CALL_STATUS_DUN_FAX call_status; /* call monitoring status dun,fax */
1037 T_MFW_BT_OPP_PUT_IND opp_s_obj; /* info about opp server object put request from client to server (server side)*/
1038 T_MFW_BT_OPP_PUT_CNF opp_s_obj_cnf; /* info about success of object put procedure from client to server (server side) */
1039 T_MFW_BT_OPP_PUSH_CNF opp_cl_push_ob_cnf; /* info about success of object push procedure to server (client side) */
1040 T_MFW_BT_OPP_PULL_CNF opp_cl_pull_ob_cnf; /* info about success of object push procedure from server (client side) */
1041 T_MFW_BT_SRV_SYNC_CNF srv_sync_cnf; /* info about success of synchronization operation */
1042 T_MFW_BT_SRV_SYNC_AUTH_IND srv_sync_auth; /* request password for authentication at OBEX level for synchronization */
1043 T_MFW_BT_SRV_SYNC_PULL_IND sync_pull_ind; /* request to pull an syn object from server to the sync client */
1044 T_MFW_BT_SRV_SYNC_PUSH_IND sync_push_ind; /* request to push an syn object to the server from the sync client */
1045 T_MFW_BT_SRV_SYNC_PUSH_CNF sync_push_cnf; /* confirmation that push of syn object is done */
1046 T_MFW_BT_CHNG_LOCAL_NAME chng_local_name; /* result of change local name request */
1047 T_MFW_BT_READ_LOCAL_NAME read_local_name; /* result of read local name request */
1048 T_MFW_BT_REMOTE_DEV_INFO_RES remote_dev_info; /* remote device information */
1049 T_MFW_BT_CHNG_CONNECTABLE_MODE chng_conn_mode; /* result of change connectable mode request */
1050 T_MFW_BT_CHNG_DISCOVERABLE_MODE chng_disc_mode; /* result of change discoverable mode request */
1051 T_MFW_BT_READ_BD_ADDR read_bd_addr; /* bt device address */
1052 /*#ifdef PCA_6350*/
1053 T_MFW_BT_PCA_GW_STATUS_CFM pca_gw_status;
1054 T_MFW_BT_PCA_GW_LINK_MONITORING pca_link_mon;
1055 T_MFW_BT_PCA_GW_CALL_MONITORING pca_call_mon;
1056 T_MFW_BT_PCA_GW_HANGUP_CFM pca_hangup;
1057 /*#endif*/ /* PCA_6350 */
1058
1059 /* Cartman added begin */
1060 T_MFW_BT_HSG_HEADSET_CONNECTION_IND hsg_headset_connection_ind;
1061 T_MFW_BT_HSG_SPECIFIC_CMD_CFM hsg_specific_cmd_cfm;
1062 T_MFW_BT_HSG_SAVE_LIST_CNF hsg_save_list_cnf;
1063 /* Cartman added end */
1064
1065 } T_MFW_BT_PARA;
1066
1067 /*
1068 * BT Control Block
1069 */
1070 typedef struct
1071 {
1072 T_MFW_EVENT emask; /* events of interest */
1073 T_MFW_EVENT event; /* current event */
1074 T_MFW_CB handler;
1075 T_MFW_BT_PARA para;
1076 } T_MFW_BT;
1077
1078
1079
1080 int bt_init (void);
1081 void bt_exit (void);
1082 EXTERN T_MFW_HND bt_create (T_MFW_HND hWin,
1083 T_MFW_EVENT event,
1084 T_MFW_CB cbfunc);
1085 EXTERN T_MFW_RES bt_delete (T_MFW_HND hWin);
1086 EXTERN T_MFW_BT_RESULT_BT bt_init_profile_hsg_cl (T_MFW_BT_SERVICE_TYPE service,
1087 T_MFW_BT_HSG_CLIENT_CONFIG config);
1088 EXTERN T_MFW_BT_RESULT_BT bt_init_profile_hsg_serv (T_MFW_BT_SERVICE_TYPE service,
1089 T_MFW_BT_HSG_SERVER_CONFIG mfw_config);
1090 EXTERN T_MFW_BT_RESULT_BT bt_init_profile_dun (T_MFW_BT_SERVICE_TYPE service,
1091 T_MFW_BT_DUN_CONFIG dun_filter);
1092 EXTERN T_MFW_BT_RESULT_BT bt_deinit_profile (T_MFW_BT_SERVICE_TYPE service,
1093 T_MFW_BT_SUBTYPE_DEV subtype);
1094 EXTERN T_MFW_BT_RESULT_BT bt_reconfig_profile_hsg_cl (T_MFW_BT_SERVICE_TYPE service,
1095 T_MFW_BT_HSG_CLIENT_CONFIG config);
1096 EXTERN T_MFW_BT_RESULT_BT bt_reconfig_profile_hsg_serv (T_MFW_BT_SERVICE_TYPE service,
1097 T_MFW_BT_HSG_SERVER_CONFIG mfw_config);
1098 EXTERN T_MFW_BT_RESULT_BT bt_reconfig_profile_dun (T_MFW_BT_SERVICE_TYPE service,
1099 T_MFW_BT_DUN_CONFIG dun_filter);
1100
1101 /* Searching devices/services */
1102 EXTERN T_MFW_BT_RESULT_BT bt_device_search(void);
1103 EXTERN T_MFW_BT_RESULT_BT bt_service_search(T_MFW_BT_SERVICE_TYPE service);
1104 EXTERN T_MFW_BT_RESULT_BT bt_extended_search(UINT8 inq_length,
1105 UINT8 max_num_of_responses,
1106 T_MFW_DEVICE_CLASS class_of_device[],
1107 BOOLEAN need_device_name,
1108 BOOLEAN need_services,
1109 T_MFW_SERVICE_ID service_id);
1110 EXTERN T_MFW_BT_RESULT_BT bt_search_abort(void);
1111
1112
1113 EXTERN T_MFW_BT_RESULT_BT bt_connect_hsg (T_MFW_BT_SERVICE_TYPE service,
1114 T_MFW_BT_REQ_ID req_id,
1115 T_MFW_BT_BD_ADDR bd_addr[], UINT8 mode);
1116 EXTERN T_MFW_BT_RESULT_BT bt_auto_connect(T_MFW_BT_SERVICE_TYPE service,
1117 T_MFW_BT_AUTO_CONNECT_STATE set_state);
1118 EXTERN T_MFW_BT_RESULT_BT bt_get_auto_connect(T_MFW_BT_SERVICE_TYPE service,
1119 T_MFW_BT_HSG_CLIENT_CONFIG *conf);
1120 EXTERN T_MFW_BT_RESULT_BT bt_set_pref_headset(T_MFW_BT_SERVICE_TYPE service,
1121 T_MFW_BT_BD_ADDR bd_addr[],
1122 T_MFW_BT_HSG_NAME hsg_name[],
1123 T_MFW_BT_PRIORITY priority,
1124 BOOL rem_audio_ctr_supp_hsg,
1125 T_MFW_BT_CNF_ID * headset_cnf_id);
1126 EXTERN T_MFW_BT_RESULT_BT bt_reset_pref_hsg(T_MFW_BT_SERVICE_TYPE service,
1127 T_MFW_BT_DEV_ID dev_id);
1128
1129 EXTERN T_MFW_BT_RESULT_BT bt_disconnect_service (T_MFW_BT_SERVICE_TYPE service);
1130 EXTERN T_MFW_BT_RESULT_BT bt_send_pin (T_MFW_BT_BD_ADDR bd_addr[],
1131 T_MFW_BT_PIN pin_code[],
1132 T_MFW_BT_PIN_MODE pin_mode);
1133 EXTERN T_MFW_BT_RESULT_BT bt_authorization_reply (T_MFW_BT_BD_ADDR bd_addr[],
1134 T_MFW_BT_AUTHORIZATION_MASK mfw_auth_mask,
1135 T_MFW_BT_AUTHORIZATION_MODE auth_mode);
1136 EXTERN T_MFW_BT_RESULT_BT bt_get_authorization_device (T_MFW_BT_BD_ADDR bd_addr[],
1137 T_MFW_BT_AUTHORIZATION_MASK * mask);
1138 EXTERN T_MFW_BT_RESULT_BT bt_set_authorization_device (T_MFW_BT_BD_ADDR bd_addr[],
1139 T_MFW_BT_AUTHORIZATION_MASK mask);
1140 EXTERN T_MFW_BT_RESULT_BT bt_del_authorizations_device (T_MFW_BT_BD_ADDR bd_addr[]);
1141 EXTERN T_MFW_BT_RESULT_BT bt_del_authorization (T_MFW_BT_BD_ADDR bd_addr[],T_MFW_BT_AUTHORIZATION_MASK service_mask);
1142 #ifdef _SIMULATION_
1143 EXTERN T_MFW_BT_RESULT_BT bt_transfer_audio_in (T_MFW_BT_SERVICE_TYPE service);
1144 EXTERN T_MFW_BT_RESULT_BT bt_transfer_audio_out(T_MFW_BT_SERVICE_TYPE service,
1145 T_MFW_BT_REQ_ID req_id,
1146 T_MFW_BT_BD_ADDR bd_addr[]);
1147 #endif
1148 EXTERN T_MFW_BT_RESULT_BT bt_set_param_headset (T_MFW_BT_SERVICE_TYPE service,
1149 T_MFW_BT_PARAM_NUMBER nb,
1150 T_MFW_BT_CHANGE_PARA type,
1151 U16 new_value);
1152 EXTERN T_MFW_BT_RESULT_BT bt_get_default_service_info (T_MFW_BT_SERVICE_TYPE service,
1153 T_MFW_BT_DEV_ID dev_id,
1154 T_MFW_BT_HEADSET_INFO *hs_info);
1155 EXTERN T_MFW_BT_RESULT_BT bt_set_prio_default_service (T_MFW_BT_SERVICE_TYPE service,
1156 T_MFW_BT_DEV_ID dev_id,
1157 T_MFW_BT_PRIORITY priority);
1158 EXTERN T_MFW_BT_RETURN bt_list_paired_dev(T_MFW_BT_DEV_PAIR_LIST * pair_list);
1159 EXTERN T_MFW_BT_RETURN bt_list_auth_dev(T_MFW_BT_AUTHORIZATION_LIST * authorization_list);
1160 EXTERN T_MFW_BT_RETURN bt_clear_all_lists_found_serv (void);
1161 EXTERN T_MFW_BT_RETURN bt_clear_list_found_dev (void);
1162 EXTERN T_MFW_BT_RETURN bt_clear_list_found_serv (T_MFW_BT_SERVICE_TYPE service);
1163 EXTERN T_MFW_BT_RETURN bt_authorized_devices(T_MFW_BT_AUTHORIZATION_LIST * authorization_list,T_MFW_BT_AUTHORIZATION_MASK service_mask );
1164 EXTERN void bt_signal (MfwEvt event, void *para);
1165 EXTERN int bt_sign_exec (T_MFW_HDR * hdr,T_MFW_EVENT event,
1166 T_MFW_BT_PARA *para);
1167 EXTERN T_MFW_BT_RESULT_BT bt_get_config (T_MFW_BT_SERVICE_TYPE service,
1168 T_MFW_BT_HSG_CLIENT_CONFIG *client_conf,
1169 T_MFW_BT_HSG_SERVER_CONFIG *server_conf);
1170 #ifdef _SIMULATION_
1171 EXTERN T_MFW_BT_RESULT_BT bt_save_config (T_MFW_BT_SERVICE_TYPE service);
1172 EXTERN T_MFW_BT_RESULT_BT bt_restore_config (T_MFW_BT_SERVICE_TYPE service);
1173 EXTERN T_MFW_BT_RESULT_BT bt_save_default_list (T_MFW_BT_SERVICE_TYPE service);
1174 EXTERN T_MFW_BT_RESULT_BT bt_restore_default_list (T_MFW_BT_SERVICE_TYPE service);
1175 #endif
1176 EXTERN T_MFW_BT_RESULT_BT bt_set_security_mode (T_MFW_BT_SECURITY_MODE sec_mode);
1177 EXTERN T_MFW_BT_RESULT_BT bt_set_pair_mode (T_MFW_BT_PAIRABLE_MODE pair_mode);
1178 EXTERN T_MFW_BT_RESULT_BT bt_start_profile_application (T_MFW_BT_SERVICE_TYPE service);
1179 EXTERN T_MFW_BT_RESULT_BT bt_stop_profile_application (T_MFW_BT_SERVICE_TYPE service);
1180 EXTERN T_MFW_BT_RESULT_BT bt_set_default_security (U8 security_level);
1181 EXTERN T_MFW_BT_RESULT_BT bt_start_pairing (T_MFW_BT_BD_ADDR bd_addr[],
1182 T_MFW_BT_PIN pin_code[],
1183 T_MFW_BT_PIN_MODE pin_mode);
1184 EXTERN T_MFW_BT_RESULT_BT bt_delete_paired_device (T_MFW_BT_BD_ADDR bd_addr[]);
1185 EXTERN T_MFW_BT_RESULT_BT bt_check_pair (T_MFW_BT_BD_ADDR bd_addr[]);
1186 EXTERN T_MFW_BT_RESULT_BT bt_register_sm (void);
1187 EXTERN T_MFW_BT_RESULT_BT bt_deregister_sm(void);
1188 EXTERN T_MFW_BT_RESULT_BT bt_init_profile_fax (T_MFW_BT_SERVICE_TYPE service,
1189 T_MFW_BT_FAX_CONFIG fax_filter);
1190 EXTERN T_MFW_BT_RESULT_BT bt_reconfig_profile_fax (T_MFW_BT_SERVICE_TYPE service,
1191 T_MFW_BT_FAX_CONFIG fax_filter);
1192
1193 EXTERN T_MFW_BT_RESULT_BT bt_init_profile_opp (T_MFW_BT_SERVICE_TYPE service,
1194 T_MFW_BT_SUBTYPE_DEV subtype,
1195 T_MFW_BT_OPP_SERVER_CONFIG serv_config);
1196 EXTERN T_MFW_BT_RESULT_BT bt_reconf_profile_opp (T_MFW_BT_SERVICE_TYPE service,
1197 T_MFW_BT_SUBTYPE_DEV subtype,
1198 T_MFW_BT_OPP_SERVER_CONFIG serv_config);
1199 EXTERN T_MFW_BT_RESULT_BT bt_opp_put_reply ( T_MFW_BT_SERVICE_TYPE service,
1200 T_MFW_BT_SUBTYPE_DEV subtype,
1201 T_MFW_BT_OPP_PUT_RES opp_put_res,
1202 T_MFW_BT_OPP_OBJECT received_obj);
1203 EXTERN T_MFW_BT_RESULT_BT bt_opp_push_object (T_MFW_BT_SERVICE_TYPE service,
1204 T_MFW_BT_SUBTYPE_DEV subtype,
1205 T_MFW_BT_BD_ADDR server_address[],
1206 BOOL mfw_keep_connection,
1207 T_MFW_BT_OPP_OBJECT mfw_obj_to_push);
1208 EXTERN T_MFW_BT_RESULT_BT bt_opp_pull_object (T_MFW_BT_SERVICE_TYPE service,
1209 T_MFW_BT_SUBTYPE_DEV subtype,
1210 T_MFW_BT_BD_ADDR server_address[],
1211 BOOL mfw_keep_connection,
1212 T_MFW_BT_OPP_OBJECT mfw_obj_to_pull);
1213 EXTERN T_MFW_BT_RESULT_BT bt_opp_exch_objects (T_MFW_BT_SERVICE_TYPE service,
1214 T_MFW_BT_SUBTYPE_DEV subtype,
1215 T_MFW_BT_OPP_OBJECT obj_to_push,
1216 T_MFW_BT_OPP_OBJECT obj_to_pull,
1217 T_MFW_BT_BD_ADDR server_address[],
1218 BOOL mfw_keep_connection);
1219 EXTERN T_MFW_BT_RESULT_BT bt_init_profile_syn_s (T_MFW_BT_SERVICE_TYPE service,
1220 T_MFW_BT_SUBTYPE_DEV subtype,
1221 T_MFW_BT_SYN_OBJECT_STORE_LIST list_availabe_objects,
1222 T_MFW_BT_SYNC_SERVER_CONFIG mfw_config);
1223 EXTERN T_MFW_BT_RESULT_BT bt_reconf_profile_syn_s (T_MFW_BT_SERVICE_TYPE service,
1224 T_MFW_BT_SUBTYPE_DEV subtype,
1225 T_MFW_BT_SYN_OBJECT_STORE_LIST list_availabe_objects,
1226 T_MFW_BT_SYNC_SERVER_CONFIG mfw_config);
1227 EXTERN T_MFW_BT_RESULT_BT bt_syn_s_send_com (T_MFW_BT_SERVICE_TYPE service,
1228 T_MFW_BT_SUBTYPE_DEV subtype,
1229 T_MFW_BT_SYNC_COMMAND sync_comm,
1230 T_MFW_BT_SYN_OBJECT_STORE sync_object,
1231 T_MFW_BT_BD_ADDR sync_client_address[]);
1232 EXTERN T_MFW_BT_RESULT_BT bt_syn_s_auth_res (T_MFW_BT_SERVICE_TYPE service,
1233 T_MFW_BT_SUBTYPE_DEV subtype,
1234 T_MFW_BT_SYN_PASSWD * mfw_sync_password);
1235 EXTERN T_MFW_BT_RESULT_BT bt_syn_s_sync_terminate (T_MFW_BT_SERVICE_TYPE service,
1236 T_MFW_BT_SUBTYPE_DEV subtype);
1237 EXTERN T_MFW_BT_RESULT_BT bt_syn_s_pull_resp (T_MFW_BT_SERVICE_TYPE service,
1238 T_MFW_BT_SUBTYPE_DEV subtype,
1239 T_MFW_BT_SYNC_OBJECT mfw_syn_pull_obj);
1240 EXTERN T_MFW_BT_RESULT_BT bt_syn_s_push_resp (T_MFW_BT_SERVICE_TYPE service,
1241 T_MFW_BT_SUBTYPE_DEV subtype,
1242 T_MFW_BT_SYNC_OBJECT mfw_syn_push_obj);
1243 EXTERN T_MFW_BT_RESULT_BT bt_is_pref_headset(T_MFW_BT_SERVICE_TYPE service,
1244 T_MFW_BT_BD_ADDR bd_addr[],
1245 T_MFW_BT_CNF_ID * headset_cnf_id);
1246 /* BT CTRL */
1247
1248 EXTERN T_MFW_BT_RESULT_BT bt_set_conn_mode(T_MFW_BT_CONNECTABLE_MODE cmode,
1249 UINT16 scan_interval,
1250 UINT16 scan_window);
1251
1252
1253 EXTERN T_MFW_BT_RESULT_BT bt_set_disc_mode(T_MFW_BT_DISCOVERABLE_MODE dmode,
1254 UINT16 scan_interval,
1255 UINT16 scan_window);
1256
1257 EXTERN T_MFW_BT_RESULT_BT bt_get_local_name(void);
1258 EXTERN T_MFW_BT_RESULT_BT bt_set_local_name(T_MFW_BT_BD_NAME name[]);
1259 EXTERN T_MFW_BT_RESULT_BT bt_get_bd_addr(void);
1260
1261 EXTERN T_MFW_BT_RESULT_BT bt_get_remote_dev_info(T_MFW_BT_BD_ADDR bd_addr[]);
1262 EXTERN T_MFW_BT_RESULT_BT bt_start_btctrl(void);
1263 EXTERN T_MFW_BT_RESULT_BT bt_stop_btctrl(void);
1264
1265 /* enable profiles */
1266 EXTERN T_MFW_BT_RESULT_BT bt_enable_hsg_profile(void);
1267 EXTERN T_MFW_BT_RESULT_BT bt_enable_dun_profile(void);
1268 EXTERN T_MFW_BT_RESULT_BT bt_enable_fax_profile(void);
1269
1270 EXTERN T_MFW_BT_RESULT_BT bt_hsg_client_disable(void);
1271 EXTERN T_MFW_BT_RESULT_BT bt_hsg_server_disable(void);
1272 EXTERN T_MFW_BT_RESULT_BT bt_dun_gw_disable(void);
1273 EXTERN T_MFW_BT_RESULT_BT bt_fax_gw_disable(void);
1274 EXTERN T_MFW_BT_RESULT_BT bt_opp_client_disable(void);
1275 EXTERN T_MFW_BT_RESULT_BT bt_opp_server_disable(void);
1276 EXTERN T_MFW_BT_RESULT_BT bt_syn_server_disable(void);
1277
1278 /*#ifdef PCA_6350*/
1279 EXTERN T_MFW_BT_RESULT_BT bt_pca_gw_enable(void);
1280 EXTERN T_MFW_BT_RESULT_BT bt_pca_gw_config(T_MFW_BT_PCA_CONFIG event_filters);
1281 EXTERN T_MFW_BT_RESULT_BT bt_pca_gw_security(UINT8 security_level);
1282 EXTERN T_MFW_BT_RESULT_BT bt_pca_gw_hangup(void);
1283 EXTERN T_MFW_BT_RESULT_BT bt_pca_gw_disable(void);
1284
1285 /*#endif*/ /* PCA_6350 */
1286
1287 /* Cartman added begin */
1288
1289 EXTERN T_MFW_BT_RESULT_BT bt_hsg_connect_network (T_MFW_BT_HSG_CONNECT_NETWORK_ANSWER network_answer,
1290 T_MFW_BT_HSG_CONNECT_NETWORK_TYPE network_type,
1291 T_MFW_BT_HSG_PHONE_NUMBER phone_nb[]);
1292 EXTERN T_MFW_BT_RESULT_BT bt_hsg_send_specific_cmd_to_hs (T_MFW_BT_HSG_SPECIFIC_CMD_TYPE command_type,
1293 T_MFW_BT_HSG_CMD_TO_HS cmd[]);
1294 EXTERN T_MFW_BT_RESULT_BT bt_dun_gw_security (UINT8 security_level);
1295 EXTERN T_MFW_BT_RESULT_BT bt_opp_client_security (UINT8 security_level);
1296 EXTERN T_MFW_BT_RESULT_BT bt_opp_server_security (UINT8 security_level);
1297
1298 /* Cartman added end */
1299
1300 #endif