1 /****************************************************************************** 2 * 3 * Copyright (C) 2003-2012 Broadcom Corporation 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at: 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 * 17 ******************************************************************************/ 18 19 /****************************************************************************** 20 * 21 * This is the private interface file for the BTA audio gateway. 22 * 23 ******************************************************************************/ 24 #ifndef BTA_AG_INT_H 25 #define BTA_AG_INT_H 26 27 #include "bta_sys.h" 28 #include "bta_api.h" 29 #include "bta_ag_api.h" 30 #include "bta_ag_at.h" 31 32 /* Send RING & CLIP in one AT cmd */ 33 #ifndef BTA_AG_MULTI_RESULT_INCLUDED 34 #define BTA_AG_MULTI_RESULT_INCLUDED FALSE 35 #endif 36 37 /* Replace : in VGS and VGM for HSP */ 38 #ifndef BTA_HSP_RESULT_REPLACE_COLON 39 #define BTA_HSP_RESULT_REPLACE_COLON TRUE 40 #endif 41 42 /***************************************************************************** 43 ** Constants 44 *****************************************************************************/ 45 /* Number of SCBs (AG service instances that can be registered) */ 46 #ifndef BTA_AG_NUM_SCB 47 #define BTA_AG_NUM_SCB 2 48 #endif 49 50 /* Time to wait for retry in case of collision */ 51 #ifndef BTA_AG_COLLISION_TIMEOUT_MS 52 #define BTA_AG_COLLISION_TIMEOUT_MS (2 * 1000) /* 2 seconds */ 53 #endif 54 55 /* RFCOMM MTU SIZE */ 56 #define BTA_AG_MTU 256 57 58 /* Max number of peer and local HF indicators */ 59 #define BTA_AG_MAX_NUM_PEER_HF_IND 20 60 #define BTA_AG_MAX_NUM_LOCAL_HF_IND 4 61 62 /* Internal profile indexes */ 63 #define BTA_AG_HSP 0 /* index for HSP */ 64 #define BTA_AG_HFP 1 /* index for HFP */ 65 #define BTA_AG_NUM_IDX 2 /* number of profile indexes */ 66 67 /* profile role for connection */ 68 #define BTA_AG_ACP 0 /* accepted connection */ 69 #define BTA_AG_INT 1 /* initiating connection */ 70 71 /* feature mask that matches spec */ 72 #define BTA_AG_BSRF_FEAT_SPEC (BTA_AG_FEAT_3WAY | BTA_AG_FEAT_ECNR | \ 73 BTA_AG_FEAT_VREC | BTA_AG_FEAT_INBAND | \ 74 BTA_AG_FEAT_VTAG | BTA_AG_FEAT_REJECT | \ 75 BTA_AG_FEAT_ECS | BTA_AG_FEAT_ECC | \ 76 BTA_AG_FEAT_EXTERR | BTA_AG_FEAT_CODEC | \ 77 BTA_AG_FEAT_HF_IND | BTA_AG_FEAT_ESCO | \ 78 BTA_AG_FEAT_VOIP) 79 80 #define BTA_AG_SDP_FEAT_SPEC (BTA_AG_FEAT_3WAY | BTA_AG_FEAT_ECNR | \ 81 BTA_AG_FEAT_VREC | BTA_AG_FEAT_INBAND | \ 82 BTA_AG_FEAT_VTAG) 83 84 enum 85 { 86 /* these events are handled by the state machine */ 87 BTA_AG_API_REGISTER_EVT = BTA_SYS_EVT_START(BTA_ID_AG), 88 BTA_AG_API_DEREGISTER_EVT, 89 BTA_AG_API_OPEN_EVT, 90 BTA_AG_API_CLOSE_EVT, 91 BTA_AG_API_AUDIO_OPEN_EVT, 92 BTA_AG_API_AUDIO_CLOSE_EVT, 93 BTA_AG_API_RESULT_EVT, 94 BTA_AG_API_SETCODEC_EVT, 95 BTA_AG_RFC_OPEN_EVT, 96 BTA_AG_RFC_CLOSE_EVT, 97 BTA_AG_RFC_SRV_CLOSE_EVT, 98 BTA_AG_RFC_DATA_EVT, 99 BTA_AG_SCO_OPEN_EVT, 100 BTA_AG_SCO_CLOSE_EVT, 101 BTA_AG_DISC_ACP_RES_EVT, 102 BTA_AG_DISC_INT_RES_EVT, 103 BTA_AG_DISC_OK_EVT, 104 BTA_AG_DISC_FAIL_EVT, 105 BTA_AG_CI_RX_WRITE_EVT, 106 BTA_AG_RING_TIMEOUT_EVT, 107 BTA_AG_SVC_TIMEOUT_EVT, 108 BTA_AG_CI_SCO_DATA_EVT, 109 BTA_AG_CI_SLC_READY_EVT, 110 BTA_AG_MAX_EVT, 111 112 /* these events are handled outside of the state machine */ 113 BTA_AG_API_ENABLE_EVT, 114 BTA_AG_API_DISABLE_EVT 115 }; 116 117 /* Actions to perform after a SCO event */ 118 enum 119 { 120 BTA_AG_POST_SCO_NONE, /* no action */ 121 BTA_AG_POST_SCO_CLOSE_RFC, /* close RFCOMM channel after SCO closes */ 122 BTA_AG_POST_SCO_RING, /* send RING result code after SCO opens */ 123 BTA_AG_POST_SCO_CALL_CONN, /* send call indicators after SCO opens/closes */ 124 BTA_AG_POST_SCO_CALL_ORIG, /* send call indicators after SCO closes */ 125 BTA_AG_POST_SCO_CALL_END, /* send call indicators after SCO closes */ 126 BTA_AG_POST_SCO_CALL_END_INCALL /* send call indicators for end call & incoming call after SCO closes */ 127 }; 128 129 /* sco states */ 130 enum 131 { 132 BTA_AG_SCO_SHUTDOWN_ST, /* no sco listening, all sco connections closed */ 133 BTA_AG_SCO_LISTEN_ST, /* sco listening */ 134 #if (BTM_WBS_INCLUDED == TRUE ) 135 BTA_AG_SCO_CODEC_ST, /* sco codec negotiation */ 136 #endif 137 BTA_AG_SCO_OPENING_ST, /* sco connection opening */ 138 BTA_AG_SCO_OPEN_CL_ST, /* opening sco connection being closed */ 139 BTA_AG_SCO_OPEN_XFER_ST, /* opening sco connection being transferred */ 140 BTA_AG_SCO_OPEN_ST, /* sco open */ 141 BTA_AG_SCO_CLOSING_ST, /* sco closing */ 142 BTA_AG_SCO_CLOSE_OP_ST, /* closing sco being opened */ 143 BTA_AG_SCO_CLOSE_XFER_ST, /* closing sco being transferred */ 144 BTA_AG_SCO_SHUTTING_ST /* sco shutting down */ 145 }; 146 147 /***************************************************************************** 148 ** Data types 149 *****************************************************************************/ 150 151 /* data type for BTA_AG_API_ENABLE_EVT */ 152 typedef struct 153 { 154 BT_HDR hdr; 155 tBTA_AG_PARSE_MODE parse_mode; 156 tBTA_AG_CBACK *p_cback; 157 } tBTA_AG_API_ENABLE; 158 159 /* data type for BTA_AG_API_REGISTER_EVT */ 160 typedef struct 161 { 162 BT_HDR hdr; 163 char p_name[2][BTA_SERVICE_NAME_LEN+1]; 164 tBTA_SERVICE_MASK services; 165 tBTA_SEC sec_mask; 166 tBTA_AG_FEAT features; 167 UINT8 app_id; 168 } tBTA_AG_API_REGISTER; 169 170 /* data type for BTA_AG_API_OPEN_EVT */ 171 typedef struct 172 { 173 BT_HDR hdr; 174 BD_ADDR bd_addr; 175 tBTA_SERVICE_MASK services; 176 tBTA_SEC sec_mask; 177 } tBTA_AG_API_OPEN; 178 179 /* data type for BTA_AG_API_RESULT_EVT */ 180 typedef struct 181 { 182 BT_HDR hdr; 183 tBTA_AG_RES result; 184 tBTA_AG_RES_DATA data; 185 } tBTA_AG_API_RESULT; 186 187 /* data type for BTA_AG_API_SETCODEC_EVT */ 188 typedef struct 189 { 190 BT_HDR hdr; 191 tBTA_AG_PEER_CODEC codec; 192 } tBTA_AG_API_SETCODEC; 193 194 /* data type for BTA_AG_DISC_RESULT_EVT */ 195 typedef struct 196 { 197 BT_HDR hdr; 198 UINT16 status; 199 } tBTA_AG_DISC_RESULT; 200 201 /* data type for RFCOMM events */ 202 typedef struct 203 { 204 BT_HDR hdr; 205 UINT16 port_handle; 206 } tBTA_AG_RFC; 207 208 /* data type for BTA_AG_CI_RX_WRITE_EVT */ 209 typedef struct 210 { 211 BT_HDR hdr; 212 // char p_data[BTA_AG_MTU+1]; 213 } tBTA_AG_CI_RX_WRITE; 214 215 /* union of all event datatypes */ 216 typedef union 217 { 218 BT_HDR hdr; 219 tBTA_AG_API_ENABLE api_enable; 220 tBTA_AG_API_REGISTER api_register; 221 tBTA_AG_API_OPEN api_open; 222 tBTA_AG_API_RESULT api_result; 223 #if (BTM_WBS_INCLUDED == TRUE ) 224 tBTA_AG_API_SETCODEC api_setcodec; 225 #endif 226 tBTA_AG_DISC_RESULT disc_result; 227 tBTA_AG_RFC rfc; 228 tBTA_AG_CI_RX_WRITE ci_rx_write; 229 } tBTA_AG_DATA; 230 231 /* type for each profile */ 232 typedef struct 233 { 234 UINT32 sdp_handle; 235 UINT8 scn; 236 } tBTA_AG_PROFILE; 237 238 #if (BTM_WBS_INCLUDED == TRUE) 239 typedef enum 240 { 241 BTA_AG_SCO_MSBC_SETTINGS_T2 = 0, /* preferred/default when codec is mSBC */ 242 BTA_AG_SCO_MSBC_SETTINGS_T1, 243 } tBTA_AG_SCO_MSBC_SETTINGS; 244 #endif 245 246 /* type for each service control block */ 247 typedef struct 248 { 249 char clip[BTA_AG_AT_MAX_LEN+1]; /* number string used for CLIP */ 250 UINT16 serv_handle[BTA_AG_NUM_IDX]; /* RFCOMM server handles */ 251 tBTA_AG_AT_CB at_cb; /* AT command interpreter */ 252 BD_ADDR peer_addr; /* peer bd address */ 253 tSDP_DISCOVERY_DB *p_disc_db; /* pointer to discovery database */ 254 tBTA_SERVICE_MASK reg_services; /* services specified in register API */ 255 tBTA_SERVICE_MASK open_services; /* services specified in open API */ 256 UINT16 conn_handle; /* RFCOMM handle of connected service */ 257 tBTA_SEC serv_sec_mask; /* server security mask */ 258 tBTA_SEC cli_sec_mask; /* client security mask */ 259 tBTA_AG_FEAT features; /* features registered by application */ 260 tBTA_AG_PEER_FEAT peer_features; /* peer device features */ 261 UINT16 peer_version; /* profile version of peer device */ 262 UINT16 hsp_version; /* HSP profile version */ 263 UINT16 sco_idx; /* SCO handle */ 264 BOOLEAN in_use; /* scb in use */ 265 BOOLEAN dealloc; /* TRUE if service shutting down */ 266 BOOLEAN clip_enabled; /* set to TRUE if HF enables CLIP reporting */ 267 BOOLEAN ccwa_enabled; /* set to TRUE if HF enables CCWA reporting */ 268 BOOLEAN cmer_enabled; /* set to TRUE if HF enables CMER reporting */ 269 BOOLEAN cmee_enabled; /* set to TRUE if HF enables CME ERROR reporting */ 270 BOOLEAN inband_enabled; /* set to TRUE if inband ring enabled */ 271 BOOLEAN svc_conn; /* set to TRUE when service level connection up */ 272 UINT8 state; /* state machine state */ 273 UINT8 conn_service; /* connected service */ 274 UINT8 peer_scn; /* peer scn */ 275 UINT8 app_id; /* application id */ 276 UINT8 role; /* initiator/acceptor role */ 277 UINT8 post_sco; /* action to perform after sco event */ 278 UINT8 call_ind; /* CIEV call indicator value */ 279 UINT8 callsetup_ind; /* CIEV callsetup indicator value */ 280 UINT8 service_ind; /* CIEV service indicator value */ 281 UINT8 signal_ind; /* CIEV signal indicator value */ 282 UINT8 roam_ind; /* CIEV roam indicator value */ 283 UINT8 battchg_ind; /* CIEV battery charge indicator value */ 284 UINT8 callheld_ind; /* CIEV call held indicator value */ 285 BOOLEAN retry_with_sco_only; /* indicator to try with SCO only when eSCO fails */ 286 UINT32 bia_masked_out; /* indicators HF does not want us to send */ 287 alarm_t *collision_timer; 288 alarm_t *ring_timer; 289 #if (BTM_WBS_INCLUDED == TRUE) 290 alarm_t *codec_negotiation_timer; 291 tBTA_AG_PEER_CODEC peer_codecs; /* codecs for eSCO supported by the peer */ 292 tBTA_AG_PEER_CODEC sco_codec; /* codec to be used for eSCO connection */ 293 tBTA_AG_PEER_CODEC inuse_codec; /* codec being used for the current SCO connection */ 294 BOOLEAN codec_updated; /* set to TRUE whenever the app updates codec type */ 295 BOOLEAN codec_fallback; /* If sco nego fails for mSBC, fallback to CVSD */ 296 tBTA_AG_SCO_MSBC_SETTINGS codec_msbc_settings; /* settings to be used for the impending eSCO */ 297 #endif 298 299 tBTA_AG_HF_IND peer_hf_indicators[BTA_AG_MAX_NUM_PEER_HF_IND]; /* Peer supported 300 HF indicators */ 301 tBTA_AG_HF_IND local_hf_indicators[BTA_AG_MAX_NUM_LOCAL_HF_IND]; /* Local supported 302 HF indicators */ 303 } tBTA_AG_SCB; 304 305 /* type for sco data */ 306 typedef struct 307 { 308 tBTM_ESCO_CONN_REQ_EVT_DATA conn_data; /* SCO data for pending conn request */ 309 tBTA_AG_SCB *p_curr_scb; /* SCB associated with SCO connection */ 310 tBTA_AG_SCB *p_xfer_scb; /* SCB associated with SCO transfer */ 311 UINT16 cur_idx; /* SCO handle */ 312 UINT8 state; /* SCO state variable */ 313 BOOLEAN param_updated; /* if params were updated to non-default */ 314 tBTM_ESCO_PARAMS params; /* ESCO parameters */ 315 } tBTA_AG_SCO_CB; 316 317 318 /* type for AG control block */ 319 typedef struct 320 { 321 tBTA_AG_SCB scb[BTA_AG_NUM_SCB]; /* service control blocks */ 322 tBTA_AG_PROFILE profile[BTA_AG_NUM_IDX]; /* profile-specific data */ 323 tBTA_AG_SCO_CB sco; /* SCO data */ 324 tBTA_AG_CBACK *p_cback; /* application callback */ 325 tBTA_AG_PARSE_MODE parse_mode; /* parse/pass-through mode */ 326 } tBTA_AG_CB; 327 328 /***************************************************************************** 329 ** Global data 330 *****************************************************************************/ 331 332 /* constant lookup tables */ 333 extern const UINT16 bta_ag_uuid[BTA_AG_NUM_IDX]; 334 extern const UINT8 bta_ag_sec_id[BTA_AG_NUM_IDX]; 335 extern const tBTA_AG_AT_CMD *bta_ag_at_tbl[BTA_AG_NUM_IDX]; 336 337 /* control block declaration */ 338 #if BTA_DYNAMIC_MEMORY == FALSE 339 extern tBTA_AG_CB bta_ag_cb; 340 #else 341 extern tBTA_AG_CB *bta_ag_cb_ptr; 342 #define bta_ag_cb (*bta_ag_cb_ptr) 343 #endif 344 345 /* config struct */ 346 extern tBTA_AG_CFG *p_bta_ag_cfg; 347 extern tBTA_AG_HF_IND bta_ag_local_hf_ind_cfg[]; 348 349 /***************************************************************************** 350 ** Function prototypes 351 *****************************************************************************/ 352 353 /* main functions */ 354 extern void bta_ag_scb_dealloc(tBTA_AG_SCB *p_scb); 355 extern UINT16 bta_ag_scb_to_idx(tBTA_AG_SCB *p_scb); 356 extern tBTA_AG_SCB *bta_ag_scb_by_idx(UINT16 idx); 357 extern UINT8 bta_ag_service_to_idx(tBTA_SERVICE_MASK services); 358 extern UINT16 bta_ag_idx_by_bdaddr(BD_ADDR peer_addr); 359 extern BOOLEAN bta_ag_other_scb_open(tBTA_AG_SCB *p_curr_scb); 360 extern BOOLEAN bta_ag_scb_open(tBTA_AG_SCB *p_curr_scb); 361 extern tBTA_AG_SCB *bta_ag_get_other_idle_scb (tBTA_AG_SCB *p_curr_scb); 362 extern void bta_ag_sm_execute(tBTA_AG_SCB *p_scb, UINT16 event, tBTA_AG_DATA *p_data); 363 extern BOOLEAN bta_ag_hdl_event(BT_HDR *p_msg); 364 extern void bta_ag_collision_cback (tBTA_SYS_CONN_STATUS status, UINT8 id, 365 UINT8 app_id, BD_ADDR peer_addr); 366 extern void bta_ag_resume_open (tBTA_AG_SCB *p_scb); 367 368 /* SDP functions */ 369 extern BOOLEAN bta_ag_add_record(UINT16 service_uuid, char *p_service_name, UINT8 scn, 370 tBTA_AG_FEAT features, UINT32 sdp_handle); 371 extern void bta_ag_create_records(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 372 extern void bta_ag_del_records(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 373 extern BOOLEAN bta_ag_sdp_find_attr(tBTA_AG_SCB *p_scb, tBTA_SERVICE_MASK service); 374 extern void bta_ag_do_disc(tBTA_AG_SCB *p_scb, tBTA_SERVICE_MASK service); 375 extern void bta_ag_free_db(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 376 377 /* RFCOMM functions */ 378 extern void bta_ag_start_servers(tBTA_AG_SCB *p_scb, tBTA_SERVICE_MASK services); 379 extern void bta_ag_close_servers(tBTA_AG_SCB *p_scb, tBTA_SERVICE_MASK services); 380 extern BOOLEAN bta_ag_is_server_closed (tBTA_AG_SCB *p_scb); 381 extern void bta_ag_rfc_do_close(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 382 extern void bta_ag_rfc_do_open(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 383 384 /* SCO functions */ 385 extern BOOLEAN bta_ag_sco_is_open(tBTA_AG_SCB *p_scb); 386 extern BOOLEAN bta_ag_sco_is_opening(tBTA_AG_SCB *p_scb); 387 extern void bta_ag_sco_conn_rsp(tBTA_AG_SCB *p_scb, tBTM_ESCO_CONN_REQ_EVT_DATA *p_data); 388 389 /* AT command functions */ 390 extern void bta_ag_at_hsp_cback(tBTA_AG_SCB *p_scb, UINT16 cmd, UINT8 arg_type, 391 char *p_arg, INT16 int_arg); 392 extern void bta_ag_at_hfp_cback(tBTA_AG_SCB *p_scb, UINT16 cmd, UINT8 arg_type, 393 char *p_arg, INT16 int_arg); 394 extern void bta_ag_at_err_cback(tBTA_AG_SCB *p_scb, BOOLEAN unknown, char *p_arg); 395 extern BOOLEAN bta_ag_inband_enabled(tBTA_AG_SCB *p_scb); 396 extern void bta_ag_send_call_inds(tBTA_AG_SCB *p_scb, tBTA_AG_RES result); 397 398 /* Action functions */ 399 extern void bta_ag_register(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 400 extern void bta_ag_deregister(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 401 extern void bta_ag_start_dereg(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 402 extern void bta_ag_start_close(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 403 extern void bta_ag_start_open(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 404 extern void bta_ag_disc_int_res(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 405 extern void bta_ag_disc_acp_res(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 406 extern void bta_ag_disc_fail(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 407 extern void bta_ag_open_fail(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 408 extern void bta_ag_rfc_fail(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 409 extern void bta_ag_rfc_close(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 410 extern void bta_ag_rfc_open(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 411 extern void bta_ag_rfc_acp_open(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 412 extern void bta_ag_rfc_data(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 413 extern void bta_ag_sco_listen(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 414 extern void bta_ag_sco_open(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 415 extern void bta_ag_sco_close(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 416 #if (BTM_WBS_INCLUDED == TRUE ) 417 extern void bta_ag_sco_codec_nego(tBTA_AG_SCB *p_scb, BOOLEAN result); 418 extern void bta_ag_codec_negotiate (tBTA_AG_SCB *p_scb); 419 #endif 420 extern void bta_ag_sco_shutdown(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 421 extern void bta_ag_sco_conn_open(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 422 extern void bta_ag_sco_conn_close(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 423 extern void bta_ag_post_sco_open(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 424 extern void bta_ag_post_sco_close(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 425 extern void bta_ag_svc_conn_open(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 426 extern void bta_ag_result(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 427 extern void bta_ag_setcodec(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 428 #if (BTM_WBS_INCLUDED == TRUE ) 429 extern void bta_ag_send_bcs(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 430 #endif 431 extern void bta_ag_send_ring(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 432 extern void bta_ag_ci_sco_data(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 433 extern void bta_ag_set_esco_param(BOOLEAN set_reset, tBTM_ESCO_PARAMS *param); 434 extern void bta_ag_ci_rx_data(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 435 extern void bta_ag_rcvd_slc_ready(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data); 436 #endif /* BTA_AG_INT_H */ 437