6#include "dawn/proto/nimble/hci.hxx"
14 void ble_hci_sock_ack_handler(
void *param);
17void CProtoNimbleHci::thread()
19 DAWNINFO(
"start HCI thread\n");
23#ifdef CONFIG_DAWN_PROTO_NIMBLE_DUMMY
28 while (!threadCtl.shouldQuit());
30 ble_hci_sock_ack_handler(
nullptr);
35 DAWNINFO(
"clean HCI thread\n");
38void CProtoNimbleHci::start()
40 threadCtl.setThreadFunc([
this]() { thread(); });
41 threadCtl.threadStart();
44void CProtoNimbleHci::stop()
48#ifdef CONFIG_DAWN_PROTO_NIMBLE_DUMMY
49 threadCtl.requestStop();
54 DAWNERR(
"nimble HCI stop not supported on real backend\n");
59 threadCtl.threadStop();
62bool CProtoNimbleHci::isRunning()
const
64 return threadCtl.isRunning();
Out-of-tree user-extension hooks for Dawn.