Lines Matching refs:packet_handler
56 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()
225 subscriptions[index].packet_handler(packet_type, channel, packet, size); in att_packet_handler()
239 void att_dispatch_register_client(btstack_packet_handler_t packet_handler){ in att_dispatch_register_client() argument
240 subscriptions[ATT_CLIENT].packet_handler = packet_handler; in att_dispatch_register_client()
244 void att_dispatch_register_server(btstack_packet_handler_t packet_handler){ in att_dispatch_register_server() argument
245 subscriptions[ATT_SERVER].packet_handler = packet_handler; in att_dispatch_register_server()
311 static void emit_mtu_exchange_complete(btstack_packet_handler_t packet_handler, hci_con_handle_t co… in emit_mtu_exchange_complete() argument
312 if (!packet_handler) return; in emit_mtu_exchange_complete()
318 packet_handler(HCI_EVENT_PACKET, con_handle, packet, 6); in emit_mtu_exchange_complete()
322 emit_mtu_exchange_complete(subscriptions[ATT_CLIENT].packet_handler, con_handle, new_mtu); in att_dispatch_server_mtu_exchanged()
326 emit_mtu_exchange_complete(subscriptions[ATT_SERVER].packet_handler, con_handle, new_mtu); in att_dispatch_client_mtu_exchanged()