Home
last modified time | relevance | path

Searched refs:packet_handler (Results 1 – 25 of 211) sorted by relevance

123456789

/btstack/src/ble/
H A Datt_dispatch.c56 btstack_packet_handler_t packet_handler; member
94 subscriptions[index].packet_handler(HCI_EVENT_PACKET, l2cap_cid, packet, size); in att_dispatch_handle_can_send_now()
114 … if ( (subscriptions[index].packet_handler != NULL) && subscriptions[index].waiting_for_can_send){ in att_dispatch_handle_can_send_now()
116 subscriptions[index].packet_handler(HCI_EVENT_PACKET, l2cap_cid, packet, size); in att_dispatch_handle_can_send_now()
126 if ((subscriptions[i].packet_handler != NULL) && subscriptions[i].waiting_for_can_send){ in att_dispatch_handle_can_send_now()
150 if (!subscriptions[index].packet_handler) return; in att_dispatch_handle_att_pdu()
151 subscriptions[index].packet_handler(packet_type, channel, packet, size); in att_dispatch_handle_att_pdu()
212 if (subscriptions[index].packet_handler != NULL){ in att_packet_handler()
213 subscriptions[index].packet_handler(packet_type, channel, packet, size); in att_packet_handler()
224 if (subscriptions[index].packet_handler != NULL){ in att_packet_handler()
[all …]
/btstack/src/classic/
H A Davrcp_cover_art_client.c124 …over_art_client_emit_connection_established(btstack_packet_handler_t packet_handler, uint8_t statu… in avrcp_cover_art_client_emit_connection_established() argument
129 (*packet_handler)(HCI_EVENT_PACKET, 0, buffer, size); in avrcp_cover_art_client_emit_connection_established()
135 (*cover_art_client->packet_handler)(HCI_EVENT_PACKET, 0, buffer, size); in cover_art_client_emit_operation_complete_event()
138 static void avrcp_cover_art_client_emit_connection_released(btstack_packet_handler_t packet_handler in avrcp_cover_art_client_emit_connection_released() argument
141 (*packet_handler)(HCI_EVENT_PACKET, 0, buffer, size); in avrcp_cover_art_client_emit_connection_released()
182 … client->packet_handler(BIP_DATA_PACKET, client->cover_art_cid, (uint8_t *) data_buffer, data_len); in avrcp_cover_art_client_parser_callback_get_operation()
262 btstack_packet_handler_t packet_handler; in avrcp_cover_art_goep_event_handler() local
275 … avrcp_cover_art_client_emit_connection_established(cover_art_client->packet_handler, status, in avrcp_cover_art_goep_event_handler()
292 packet_handler = cover_art_client->packet_handler; in avrcp_cover_art_goep_event_handler()
294 avrcp_cover_art_client_emit_connection_released(packet_handler, cover_art_cid); in avrcp_cover_art_goep_event_handler()
[all …]
H A Drfcomm.h133 btstack_packet_handler_t packet_handler; member
194 btstack_packet_handler_t packet_handler; member
294 uint8_t rfcomm_create_channel(btstack_packet_handler_t packet_handler, bd_addr_t addr, uint8_t serv…
305 uint8_t rfcomm_create_channel_with_initial_credits(btstack_packet_handler_t packet_handler, bd_addr…
321 uint8_t rfcomm_register_service(btstack_packet_handler_t packet_handler, uint8_t channel, uint16_t …
332 uint8_t rfcomm_register_service_with_initial_credits(btstack_packet_handler_t packet_handler, uint8…
H A Dbnep.h144 btstack_packet_handler_t packet_handler; member
157 btstack_packet_handler_t packet_handler; member
215 int bnep_connect(btstack_packet_handler_t packet_handler, bd_addr_t addr, uint16_t l2cap_psm, uint1…
225 uint8_t bnep_register_service(btstack_packet_handler_t packet_handler, uint16_t service_uuid, uint1…
H A Dbnep.c110 …x bd_addr: %s, handler %p", status, bd_addr_to_str(channel->remote_addr), channel->packet_handler); in bnep_emit_open_channel_complete()
111 if (!channel->packet_handler) return; in bnep_emit_open_channel_complete()
125 (*channel->packet_handler)(HCI_EVENT_PACKET, 0, (uint8_t *) event, sizeof(event)); in bnep_emit_open_channel_complete()
130 …L_TIMEOUT bd_addr: %s, handler %p", bd_addr_to_str(channel->remote_addr), channel->packet_handler); in bnep_emit_channel_timeout()
131 if (!channel->packet_handler) return; in bnep_emit_channel_timeout()
142 (*channel->packet_handler)(HCI_EVENT_PACKET, 0, (uint8_t *) event, sizeof(event)); in bnep_emit_channel_timeout()
147 …EL_CLOSED bd_addr: %s, handler %p", bd_addr_to_str(channel->remote_addr), channel->packet_handler); in bnep_emit_channel_closed()
148 if (!channel->packet_handler) return; in bnep_emit_channel_closed()
158 (*channel->packet_handler)(HCI_EVENT_PACKET, 0, (uint8_t *) event, sizeof(event)); in bnep_emit_channel_closed()
163 if (!channel->packet_handler) return; in bnep_emit_ready_to_send()
[all …]
/btstack/src/
H A Dl2cap.h198 btstack_packet_handler_t packet_handler; member
218 btstack_packet_handler_t packet_handler; member
419 btstack_packet_handler_t packet_handler; member
439 void l2cap_register_fixed_channel(btstack_packet_handler_t packet_handler, uint16_t channel_id);
505 uint8_t l2cap_create_channel(btstack_packet_handler_t packet_handler, bd_addr_t address, uint16_t p…
537 uint8_t l2cap_register_service(btstack_packet_handler_t packet_handler, uint16_t psm, uint16_t mtu,…
611 uint8_t l2cap_ertm_create_channel(btstack_packet_handler_t packet_handler, bd_addr_t address, uint1…
659 uint8_t l2cap_cbm_register_service(btstack_packet_handler_t packet_handler, uint16_t psm, gap_secur…
697 uint8_t l2cap_cbm_create_channel(btstack_packet_handler_t packet_handler, hci_con_handle_t con_hand…
729 uint8_t l2cap_ecbm_register_service(btstack_packet_handler_t packet_handler, uint16_t psm, uint16_t…
[all …]
/btstack/tool/migration_to_v1.0/
H A Dmigration.cocci21 identifier packet_handler;
23 - hci_register_packet_handler(packet_handler);
24 + hci_register_packet_handler(&packet_handler);
27 identifier packet_handler;
29 - hci_register_packet_handler(&packet_handler);
31 + callback_registration.callback = &packet_handler;
35 identifier hci_register_packet_handler.packet_handler, packet_type, packet, size;
37 packet_handler(uint8_t packet_type,
45 identifier packet_handler;
47 - l2cap_register_packet_handler(packet_handler);
[all …]
/btstack/test/gap/
H A Dhci_test.cpp35 static void (*packet_handler)(uint8_t packet_type, uint8_t *packet, uint16_t size); variable
47 packet_handler(HCI_EVENT_PACKET, (uint8_t *) &packet_sent_event[0], sizeof(packet_sent_event));
87 packet_handler = handler; in hci_transport_test_register_packet_handler()
530 packet_handler(HCI_ACL_DATA_PACKET, packet, sizeof(packet)); in TEST()
533 packet_handler(HCI_ACL_DATA_PACKET, packet, sizeof(packet)); in TEST()
541 packet_handler(HCI_ACL_DATA_PACKET, packet, sizeof(packet)); in TEST()
545 packet_handler(HCI_ACL_DATA_PACKET, packet, sizeof(packet)); in TEST()
550 packet_handler(HCI_ACL_DATA_PACKET, packet, 2000); in TEST()
557 packet_handler(HCI_ACL_DATA_PACKET, packet, sizeof(packet)); in TEST()
562 packet_handler(HCI_ACL_DATA_PACKET, packet, sizeof(packet)); in TEST()
[all …]
/btstack/port/stm32-f4discovery-usb/port/
H A Dhci_transport_h2_stm32.c59 static void (*packet_handler)(uint8_t packet_type, uint8_t *packet, uint16_t size) = NULL; variable
77 packet_handler(HCI_EVENT_PACKET, (uint8_t *) &packet_sent_event[0], sizeof(packet_sent_event)); in hci_transport_h2_stm32_block_sent()
81 packet_handler(packet_type, packet, size); in hci_transport_h2_stm32_packet_received()
107 packet_handler = handler; in hci_transport_h2_stm32_register_packet_handler()
/btstack/platform/daemon/binding/python/btstack/
H A Dbtstack_client.py22 packet_handler = None variable in BTstackClient
46 self.packet_handler = callback
66 if not self.packet_handler == None:
67 self.packet_handler(event)
/btstack/example/
H A Dhog_mouse_demo.c107 static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size);
154 hci_event_callback_registration.callback = &packet_handler; in hog_mouse_setup()
158 l2cap_event_callback_registration.callback = &packet_handler; in hog_mouse_setup()
161 sm_event_callback_registration.callback = &packet_handler; in hog_mouse_setup()
164 hids_device_register_packet_handler(packet_handler); in hog_mouse_setup()
307 static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){ in packet_handler() function
H A Dspp_flowcontrol.c60 static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size);
80 hci_event_callback_registration.callback = &packet_handler; in spp_service_setup()
89 … rfcomm_register_service_with_initial_credits(&packet_handler, RFCOMM_SERVER_CHANNEL, 0xffff, 1); in spp_service_setup()
133 static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){ in packet_handler() function
H A Dpbap_client_demo.c63 static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size);
156 pbap_connect(&packet_handler, remote_addr, &pbap_cid); in stdin_process()
269 static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){ in packet_handler() function
341 static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){ in packet_handler() function
352 pbap_connect(&packet_handler, remote_addr, &pbap_cid); in packet_handler()
412 hci_event_callback_registration.callback = &packet_handler; in btstack_main()
H A Dspp_counter.c63 static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size);
88 hci_event_callback_registration.callback = &packet_handler; in spp_service_setup()
99 …rfcomm_register_service(packet_handler, RFCOMM_SERVER_CHANNEL, 0xffff); // reserved channel, mtu … in spp_service_setup()
182 static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){ in packet_handler() function
H A Dpanu_demo.c109 static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size);
134 bnep_register_service(packet_handler, BLUETOOTH_SERVICE_CLASS_PANU, 1691); in panu_setup()
138 bnep_register_service(packet_handler, BLUETOOTH_SERVICE_CLASS_NAP, 1691); in panu_setup()
149 hci_event_callback_registration.callback = &packet_handler; in panu_setup()
293 …bnep_connect(packet_handler, remote_addr, bnep_l2cap_psm, BLUETOOTH_SERVICE_CLASS_PANU, bnep_remot… in handle_sdp_client_query_result()
310 static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size) in packet_handler() function
H A Dhsp_hs_demo.c178 static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t * event, uint16_t event_s… in packet_handler() function
297 hci_event_callback_registration.callback = &packet_handler; in btstack_main()
299 hci_register_sco_packet_handler(&packet_handler); in btstack_main()
302 hsp_hs_register_packet_handler(packet_handler); in btstack_main()
H A Dgatt_counter.c84 static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size);
145 hci_event_callback_registration.callback = &packet_handler; in le_counter_setup()
149 att_server_register_packet_handler(packet_handler); in le_counter_setup()
206 static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){ in packet_handler() function
/btstack/src/ble/gatt-service/
H A Dlink_loss_service_client.c118 lls_client_replace_subevent_id_and_emit(connection->packet_handler, packet, size, in lls_client_connected()
148 btstack_assert(connection->packet_handler != NULL); in lls_client_emit_done_event()
164 (*connection->packet_handler)(HCI_EVENT_PACKET, 0, event, pos); in lls_client_emit_done_event()
178 …lls_client_emit_uint8(connection->basic_connection.cid, connection->packet_handler, GATTSERVICE_SU… in lls_client_emit_read_event()
261 … lls_client_replace_subevent_id_and_emit(connection->packet_handler, packet, size, in lls_client_packet_handler_internal()
365 btstack_packet_handler_t packet_handler, in link_loss_service_client_connect() argument
371 btstack_assert(packet_handler != NULL); in link_loss_service_client_connect()
378 lls_connection->packet_handler = packet_handler; in link_loss_service_client_connect()
H A Dtx_power_service_client.c120 txps_client_replace_subevent_id_and_emit(connection->packet_handler, packet, size, in txps_client_connected()
159 …txps_client_emit_uint8(connection->basic_connection.cid, connection->packet_handler, GATTSERVICE_… in txps_client_emit_read_event()
232 … txps_client_replace_subevent_id_and_emit(connection->packet_handler, packet, size, in txps_client_packet_handler_internal()
307 btstack_packet_handler_t packet_handler, in tx_power_service_client_connect() argument
313 btstack_assert(packet_handler != NULL); in tx_power_service_client_connect()
320 txps_connection->packet_handler = packet_handler; in tx_power_service_client_connect()
H A Dimmediate_alert_service_client.c117 ias_client_replace_subevent_id_and_emit(connection->packet_handler, packet, size, in ias_client_connected()
187 ias_client_replace_subevent_id_and_emit(connection->packet_handler, in ias_client_packet_handler_internal()
249 btstack_packet_handler_t packet_handler, in immediate_alert_service_client_connect() argument
254 btstack_assert(packet_handler != NULL); in immediate_alert_service_client_connect()
260 ias_connection->packet_handler = packet_handler; in immediate_alert_service_client_connect()
H A Dhids_device.c94 static btstack_packet_handler_t packet_handler; variable
150 if (!packet_handler) return; in hids_device_emit_event_with_uint8()
157 (*packet_handler)(HCI_EVENT_PACKET, 0, buffer, sizeof(buffer)); in hids_device_emit_event_with_uint8()
167 if (!packet_handler) return; in hids_device_emit_event_with_uint8_uint8_t()
175 (*packet_handler)(HCI_EVENT_PACKET, 0, buffer, sizeof(buffer)); in hids_device_emit_event_with_uint8_uint8_t()
185 if (!packet_handler) return; in hids_device_emit_event()
191 (*packet_handler)(HCI_EVENT_PACKET, 0, buffer, sizeof(buffer)); in hids_device_emit_event()
213 (*packet_handler)(HCI_EVENT_PACKET, 0, event, pos); in hids_device_emit_report()
225 if (!packet_handler) return; in hids_device_can_send_now()
231 (*packet_handler)(HCI_EVENT_PACKET, 0, buffer, sizeof(buffer)); in hids_device_can_send_now()
[all …]
/btstack/test/sdp_client/
H A Dmock.c9 static btstack_packet_handler_t packet_handler; variable
17 packet_handler(HCI_EVENT_PACKET, 0, event, sizeof(event)); in l2cap_request_can_send_now_event()
22 packet_handler = handler; in l2cap_create_channel()
/btstack/test/classic-oob-pairing/
H A Dspp_counter.c63 static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size);
88 hci_event_callback_registration.callback = &packet_handler; in spp_service_setup()
99 …rfcomm_register_service(packet_handler, RFCOMM_SERVER_CHANNEL, 0xffff); // reserved channel, mtu … in spp_service_setup()
182 static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){ in packet_handler() function
/btstack/src/mesh/
H A Dadv_bearer.h106 void adv_bearer_register_for_network_pdu(btstack_packet_handler_t packet_handler);
107 void adv_bearer_register_for_beacon(btstack_packet_handler_t packet_handler);
108 void adv_bearer_register_for_provisioning_pdu(btstack_packet_handler_t packet_handler);
H A Dadv_bearer.c323 void adv_bearer_register_for_network_pdu(btstack_packet_handler_t packet_handler){ in adv_bearer_register_for_network_pdu() argument
324 client_callbacks[MESH_NETWORK_ID] = packet_handler; in adv_bearer_register_for_network_pdu()
326 void adv_bearer_register_for_beacon(btstack_packet_handler_t packet_handler){ in adv_bearer_register_for_beacon() argument
327 client_callbacks[MESH_BEACON_ID] = packet_handler; in adv_bearer_register_for_beacon()
329 void adv_bearer_register_for_provisioning_pdu(btstack_packet_handler_t packet_handler){ in adv_bearer_register_for_provisioning_pdu() argument
330 client_callbacks[PB_ADV_ID] = packet_handler; in adv_bearer_register_for_provisioning_pdu()

123456789