6#include "dawn/proto/nimble/hci.hxx"
12 void ble_hci_sock_ack_handler(
void *param);
15void CProtoNimbleHci::thread()
17 DAWNINFO(
"start HCI thread\n");
21#ifdef CONFIG_DAWN_PROTO_NIMBLE_DUMMY
26 while (!threadCtl.shouldQuit());
28 ble_hci_sock_ack_handler(
nullptr);
33 DAWNINFO(
"clean HCI thread\n");
36void CProtoNimbleHci::start()
42void CProtoNimbleHci::stop()
46#ifdef CONFIG_DAWN_PROTO_NIMBLE_DUMMY
47 threadCtl.requestStop();
52 DAWNERR(
"nimble HCI stop not supported on real backend\n");
60bool CProtoNimbleHci::isRunning()
const
bool isRunning() const
Check if the worker thread is running.
int threadStop()
Stop the worker thread.
int threadStart()
Start the worker thread.
void setThreadFunc(Func &&func)
Assign the function executed by threadStart().
Out-of-tree user-extension hooks for Dawn.