6#include "dawn/proto/nimble/host.hxx"
11#include "modbus/mbport.h"
12#include "nimble/nimble_port.h"
16void CProtoNimbleHost::thread()
18 DAWNINFO(
"start Host thread\n");
22#ifdef CONFIG_DAWN_PROTO_NIMBLE_DUMMY
27 while (!threadCtl.shouldQuit());
34 DAWNINFO(
"clean Host thread\n");
37void CProtoNimbleHost::start()
39 threadCtl.setThreadFunc([
this]() { thread(); });
40 threadCtl.threadStart();
43void CProtoNimbleHost::stop()
47#ifdef CONFIG_DAWN_PROTO_NIMBLE_DUMMY
48 threadCtl.requestStop();
53 DAWNERR(
"nimble host stop not supported on real backend\n");
58 threadCtl.threadStop();
61bool CProtoNimbleHost::isRunning()
const
63 return threadCtl.isRunning();
Out-of-tree user-extension hooks for Dawn.