Home
last modified time | relevance | path

Searched refs:port_handle (Results 1 – 11 of 11) sorted by relevance

/hal_espressif-3.5.0/components/bt/host/bluedroid/bta/hf_ag/
Dbta_ag_rfc.c46 void bta_ag_port_cback_1(UINT32 code, UINT16 port_handle);
47 void bta_ag_port_cback_2(UINT32 code, UINT16 port_handle);
48 void bta_ag_port_cback_3(UINT32 code, UINT16 port_handle);
50 void bta_ag_mgmt_cback_1(UINT32 code, UINT16 port_handle, void* data);
51 void bta_ag_mgmt_cback_2(UINT32 code, UINT16 port_handle, void* data);
52 void bta_ag_mgmt_cback_3(UINT32 code, UINT16 port_handle, void* data);
54 int bta_ag_data_cback_1(UINT16 port_handle, void *p_data, UINT16 len);
55 int bta_ag_data_cback_2(UINT16 port_handle, void *p_data, UINT16 len);
56 int bta_ag_data_cback_3(UINT16 port_handle, void *p_data, UINT16 len);
93 static void bta_ag_port_cback(UINT32 code, UINT16 port_handle, UINT16 handle) in bta_ag_port_cback() argument
[all …]
Dbta_ag_act.c501 …if (PORT_SUCCESS != (status = PORT_CheckConnection(p_data->rfc.port_handle, FALSE, dev_addr, &lcid… in bta_ag_rfc_acp_open()
531 i, p_scb->serv_handle[i], p_data->rfc.port_handle); in bta_ag_rfc_acp_open()
532 if (p_scb->serv_handle[i] == p_data->rfc.port_handle) { in bta_ag_rfc_acp_open()
534 p_scb->conn_handle = p_data->rfc.port_handle; in bta_ag_rfc_acp_open()
/hal_espressif-3.5.0/components/bt/host/bluedroid/bta/hf_client/
Dbta_hf_client_rfc.c45 static void bta_hf_client_port_cback(UINT32 code, UINT16 port_handle) in bta_hf_client_port_cback() argument
51 if (port_handle != bta_hf_client_cb.scb.conn_handle) { in bta_hf_client_port_cback()
53 port_handle, bta_hf_client_cb.scb.conn_handle); in bta_hf_client_port_cback()
73 static void bta_hf_client_mgmt_cback(UINT32 code, UINT16 port_handle, void* data) in bta_hf_client_mgmt_cback() argument
79 … code, port_handle, bta_hf_client_cb.scb.conn_handle, bta_hf_client_cb.scb.serv_handle); in bta_hf_client_mgmt_cback()
82 if ((code != PORT_SUCCESS) && (port_handle != bta_hf_client_cb.scb.conn_handle)) { in bta_hf_client_mgmt_cback()
83 APPL_TRACE_DEBUG("bta_hf_client_mgmt_cback ignoring handle:%d", port_handle); in bta_hf_client_mgmt_cback()
88 …if ((bta_hf_client_cb.scb.conn_handle && (port_handle == bta_hf_client_cb.scb.conn_handle)) || /* … in bta_hf_client_mgmt_cback()
89 … (port_handle == bta_hf_client_cb.scb.serv_handle)) { /* incoming connection */ in bta_hf_client_mgmt_cback()
92 … APPL_TRACE_ERROR ("bta_hf_client_mgmt_cback: PORT_SUCCESS, ignoring handle = %d", port_handle); in bta_hf_client_mgmt_cback()
[all …]
Dbta_hf_client_act.c277 bta_hf_client_cb.scb.serv_handle, p_data->rfc.port_handle); in bta_hf_client_rfc_acp_open()
280 …if (PORT_SUCCESS != (status = PORT_CheckConnection(p_data->rfc.port_handle, FALSE, dev_addr, &lcid… in bta_hf_client_rfc_acp_open()
300 bta_hf_client_cb.scb.conn_handle = p_data->rfc.port_handle; in bta_hf_client_rfc_acp_open()
/hal_espressif-3.5.0/components/bt/host/bluedroid/bta/jv/
Dbta_jv_act.c118 static void bta_jv_port_mgmt_sr_cback(UINT32 code, UINT16 port_handle, void* data);
119 static void bta_jv_port_event_sr_cback(UINT32 code, UINT16 port_handle);
120 static int bta_jv_port_data_co_cback(UINT16 port_handle, UINT8 *buf, UINT16 len, int type);
203 tBTA_JV_RFC_CB *bta_jv_alloc_rfc_cb(UINT16 port_handle, tBTA_JV_PCB **pp_pcb) in bta_jv_alloc_rfc_cb() argument
219 p_cb->rfc_hdl[0] = port_handle; in bta_jv_alloc_rfc_cb()
221 port_handle, p_cb->handle); in bta_jv_alloc_rfc_cb()
223 p_pcb = &bta_jv_cb.port_cb[port_handle - 1]; in bta_jv_alloc_rfc_cb()
225 p_pcb->port_handle = port_handle; in bta_jv_alloc_rfc_cb()
233 "limit:%d", port_handle, BTA_JV_MAX_RFC_CONN); in bta_jv_alloc_rfc_cb()
247 tBTA_JV_PCB *bta_jv_rfc_port_to_pcb(UINT16 port_handle) in bta_jv_rfc_port_to_pcb() argument
[all …]
Dbta_jv_api.c1066 return bta_jv_cb.port_cb[bta_jv_cb.rfc_cb[hi].rfc_hdl[si] - 1].port_handle; in BTA_JvRfcommGetPortHdl()
/hal_espressif-3.5.0/components/bt/host/bluedroid/stack/include/stack/
Dport_api.h99 typedef int (tPORT_DATA_CALLBACK) (UINT16 port_handle, void *p_data, UINT16 len);
104 typedef int (tPORT_DATA_CO_CALLBACK) (UINT16 port_handle, UINT8 *p_buf, UINT16 len, int type);
106 typedef void (tPORT_CALLBACK) (UINT32 code, UINT16 port_handle);
108 typedef void (tPORT_MGMT_CALLBACK) (UINT32 code, UINT16 port_handle, void* data);
271 extern int PORT_SetEventCallback (UINT16 port_handle,
283 int PORT_ClearKeepHandleFlag (UINT16 port_handle);
297 extern int PORT_SetDataCallback (UINT16 port_handle,
300 extern int PORT_SetDataCOCallback (UINT16 port_handle, tPORT_DATA_CO_CALLBACK *p_port_cb);
312 extern int PORT_SetEventMask (UINT16 port_handle, UINT32 mask);
/hal_espressif-3.5.0/components/bt/host/bluedroid/stack/rfcomm/
Dport_api.c310 int PORT_SetEventCallback (UINT16 port_handle, tPORT_CALLBACK *p_port_cb) in PORT_SetEventCallback() argument
315 if ((port_handle == 0) || (port_handle > MAX_RFC_PORTS)) { in PORT_SetEventCallback()
319 p_port = &rfc_cb.port.port[port_handle - 1]; in PORT_SetEventCallback()
325 RFCOMM_TRACE_API ("PORT_SetEventCallback() handle:%d", port_handle); in PORT_SetEventCallback()
341 int PORT_ClearKeepHandleFlag (UINT16 port_handle) in PORT_ClearKeepHandleFlag() argument
346 if ((port_handle == 0) || (port_handle > MAX_RFC_PORTS)) { in PORT_ClearKeepHandleFlag()
350 p_port = &rfc_cb.port.port[port_handle - 1]; in PORT_ClearKeepHandleFlag()
368 int PORT_SetDataCallback (UINT16 port_handle, tPORT_DATA_CALLBACK *p_port_cb) in PORT_SetDataCallback() argument
375 if ((port_handle == 0) || (port_handle > MAX_RFC_PORTS)) { in PORT_SetDataCallback()
379 p_port = &rfc_cb.port.port[port_handle - 1]; in PORT_SetDataCallback()
[all …]
/hal_espressif-3.5.0/components/bt/host/bluedroid/bta/hf_client/include/
Dbta_hf_client_int.h110 UINT16 port_handle; member
/hal_espressif-3.5.0/components/bt/host/bluedroid/bta/jv/include/
Dbta_jv_int.h154 UINT16 port_handle;/* port handle */ member
/hal_espressif-3.5.0/components/bt/host/bluedroid/bta/hf_ag/include/
Dbta_ag_int.h210 UINT16 port_handle; member