Home
last modified time | relevance | path

Searched refs:gap_handle (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Bluetooth/system/stack/gap/
Dgap_conn.cc55 uint16_t gap_handle; /* GAP handle */ member
267 return (p_ccb->gap_handle); in GAP_ConnOpen()
285 return (p_ccb->gap_handle); in GAP_ConnOpen()
294 return (p_ccb->gap_handle); in GAP_ConnOpen()
315 uint16_t GAP_ConnClose(uint16_t gap_handle) { in GAP_ConnClose() argument
316 tGAP_CCB* p_ccb = gap_find_ccb_by_handle(gap_handle); in GAP_ConnClose()
359 uint16_t GAP_ConnReadData(uint16_t gap_handle, uint8_t* p_data, in GAP_ConnReadData() argument
361 tGAP_CCB* p_ccb = gap_find_ccb_by_handle(gap_handle); in GAP_ConnReadData()
470 uint16_t GAP_ConnWriteData(uint16_t gap_handle, BT_HDR* msg) { in GAP_ConnWriteData() argument
471 tGAP_CCB* p_ccb = gap_find_ccb_by_handle(gap_handle); in GAP_ConnWriteData()
[all …]
/packages/modules/Bluetooth/system/stack/include/
Dgap_api.h93 typedef void(tGAP_CONN_CALLBACK)(uint16_t gap_handle, uint16_t event,
147 uint16_t GAP_ConnClose(uint16_t gap_handle);
162 uint16_t GAP_ConnReadData(uint16_t gap_handle, uint8_t* p_data,
192 uint16_t GAP_ConnWriteData(uint16_t gap_handle, BT_HDR* msg);
205 const RawAddress* GAP_ConnGetRemoteAddr(uint16_t gap_handle);
217 uint16_t GAP_ConnGetRemMtuSize(uint16_t gap_handle);
231 uint16_t GAP_ConnGetL2CAPCid(uint16_t gap_handle);
/packages/modules/Bluetooth/system/bta/hearing_aid/
Dhearing_aid.cc188 HearingDevice* FindByGapHandle(uint16_t gap_handle) { in FindByGapHandle() argument
190 [&gap_handle](const HearingDevice& device) { in FindByGapHandle()
191 return device.gap_handle == gap_handle; in FindByGapHandle()
781 if (hearingDevice->gap_handle != GAP_INVALID_HANDLE) { in OnServiceChangeEvent()
782 GAP_ConnClose(hearingDevice->gap_handle); in OnServiceChangeEvent()
783 hearingDevice->gap_handle = GAP_INVALID_HANDLE; in OnServiceChangeEvent()
1085 if (hearingDevice->gap_handle == GAP_INVALID_HANDLE && in OnPsmRead()
1101 uint16_t gap_handle = GAP_ConnOpen( in ConnectSocket() local
1106 if (gap_handle == GAP_INVALID_HANDLE) { in ConnectSocket()
1109 hearingDevice->gap_handle = gap_handle; in ConnectSocket()
[all …]
/packages/modules/Bluetooth/system/bta/include/
Dbta_hearing_aid_api.h139 uint16_t gap_handle; member
186 gap_handle(GAP_INVALID_HANDLE), in HearingDevice()
213 gap_handle(GAP_INVALID_HANDLE), in HearingDevice()
/packages/modules/Bluetooth/system/bta/jv/
Dbta_jv_act.cc960 static void bta_jv_l2cap_client_cback(uint16_t gap_handle, uint16_t event, in bta_jv_l2cap_client_cback() argument
962 tBTA_JV_L2C_CB* p_cb = &bta_jv_cb.l2c_cb[gap_handle]; in bta_jv_l2cap_client_cback()
965 if (gap_handle >= BTA_JV_MAX_L2C_CONN && !p_cb->p_cback) return; in bta_jv_l2cap_client_cback()
967 log::verbose("gap_handle={}, evt=0x{:x}", gap_handle, event); in bta_jv_l2cap_client_cback()
969 evt_data.l2c_open.handle = gap_handle; in bta_jv_l2cap_client_cback()
973 evt_data.l2c_open.rem_bda = *GAP_ConnGetRemoteAddr(gap_handle); in bta_jv_l2cap_client_cback()
974 evt_data.l2c_open.tx_mtu = GAP_ConnGetRemMtuSize(gap_handle); in bta_jv_l2cap_client_cback()
995 evt_data.data_ind.handle = gap_handle; in bta_jv_l2cap_client_cback()
1124 static void bta_jv_l2cap_server_cback(uint16_t gap_handle, uint16_t event, in bta_jv_l2cap_server_cback() argument
1126 tBTA_JV_L2C_CB* p_cb = &bta_jv_cb.l2c_cb[gap_handle]; in bta_jv_l2cap_server_cback()
[all …]