Lines Matching defs:impl
172 struct HciLayer::impl : public hal::HciHalCallbacks { struct in bluetooth::hci::HciLayer
173 impl(HciLayer& module) : hal_(nullptr), module_(module) {} in impl() function
175 ~impl() {} in ~impl()
177 void Start(hal::HciHal* hal) { in Start()
200 void drop(EventPacketView) {} in drop()
202 void dequeue_and_send_acl() { in dequeue_and_send_acl()
207 void Stop() { in Stop()
223 void send_acl(std::unique_ptr<hci::BasePacketBuilder> packet) { in send_acl()
230 void send_sco(std::unique_ptr<hci::BasePacketBuilder> packet) { in send_sco()
237 void command_status_callback(EventPacketView event) { in command_status_callback()
261 void command_complete_callback(EventPacketView event) { in command_complete_callback()
285 void le_meta_event_callback(EventPacketView event) { in le_meta_event_callback()
295 void hciEventReceived(hal::HciPacket event_bytes) override { in hciEventReceived()
303 void hci_event_received_handler(EventPacketView event) { in hci_event_received_handler()
311 void aclDataReceived(hal::HciPacket data_bytes) override { in aclDataReceived()
318 void scoDataReceived(hal::HciPacket data_bytes) override { in scoDataReceived()
323 void EnqueueCommand(std::unique_ptr<CommandPacketBuilder> command, in EnqueueCommand()
330 …and(std::unique_ptr<CommandPacketBuilder> command, OnceCallback<void(CommandStatusView)> on_status, in EnqueueCommand()
336 void handle_enqueue_command_with_complete(std::unique_ptr<CommandPacketBuilder> command, in handle_enqueue_command_with_complete()
343 void handle_enqueue_command_with_status(std::unique_ptr<CommandPacketBuilder> command, in handle_enqueue_command_with_status()
350 void send_next_command() { in send_next_command()
372 BidiQueueEnd<AclPacketBuilder, AclPacketView>* GetAclQueueEnd() { in GetAclQueueEnd()
376 …andler(EventCode event_code, Callback<void(EventPacketView)> event_handler, os::Handler* handler) { in RegisterEventHandler()
381 … handle_register_event_handler(EventCode event_code, Callback<void(EventPacketView)> event_handler, in handle_register_event_handler()
389 void UnregisterEventHandler(EventCode event_code) { in UnregisterEventHandler()
394 void handle_unregister_event_handler(EventCode event_code) { in handle_unregister_event_handler()
398 …d RegisterLeEventHandler(SubeventCode subevent_code, Callback<void(LeMetaEventView)> event_handler, in RegisterLeEventHandler()
404 …ster_le_event_handler(SubeventCode subevent_code, Callback<void(LeMetaEventView)> subevent_handler, in handle_register_le_event_handler()
413 void UnregisterLeEventHandler(SubeventCode subevent_code) { in UnregisterLeEventHandler()
418 void handle_unregister_le_event_handler(SubeventCode subevent_code) { in handle_unregister_le_event_handler()
423 hal::HciHal* hal_;
426 HciLayer& module_;
429 SecurityInterfaceImpl security_interface{module_};
430 LeSecurityInterfaceImpl le_security_interface{module_};
431 LeAdvertisingInterfaceImpl le_advertising_interface{module_};
432 LeScanningInterfaceImpl le_scanning_interface{module_};
435 std::list<CommandQueueEntry> command_queue_;
437 std::map<EventCode, EventHandler> event_handlers_;
438 std::map<SubeventCode, SubeventHandler> subevent_handlers_;
439 OpCode waiting_command_{OpCode::NONE};
440 uint8_t command_credits_{1}; // Send reset first
441 Alarm* hci_timeout_alarm_{nullptr};
444 BidiQueue<AclPacketView, AclPacketBuilder> acl_queue_{3 /* TODO: Set queue depth */};
445 os::EnqueueBuffer<AclPacketView> incoming_acl_packet_buffer_{acl_queue_.GetDownEnd()};