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