Files
salmanoff/stimBuffApis/livoxGen1/livoxGen1Proto1CpsBridge.h
T
hayodea fc5ebb72b9 LivoxGen1: Port to coros
No longer uses CPS. We also found and documented a potential bug in
the way we deal with disablePcloudData during detachDeviceReq.
2026-05-28 15:17:50 -04:00

40 lines
1.3 KiB
C++

#ifndef LIVOX_GEN1_PROTO1_CPS_BRIDGE_H
#define LIVOX_GEN1_PROTO1_CPS_BRIDGE_H
#include <memory>
#include <adapters/smo/livoxProto1CpsAwaiters.h>
#include <spinscale/co/invokers.h>
#include <spinscale/componentThread.h>
#include "livoxGen1Internal.h"
namespace smo::stim_buff {
sscl::co::ViralNonPostingInvoker<adapters::smo::GetOrCreateDeviceResult>
coAwaitGetOrCreateDevice(
const std::shared_ptr<sscl::ComponentThread> &componentThread,
const std::string &deviceIdentifier,
const LivoxProviderParams &params);
sscl::co::ViralNonPostingInvoker<adapters::smo::GetReturnModeResult>
coAwaitGetReturnMode(
const std::shared_ptr<sscl::ComponentThread> &componentThread,
const std::shared_ptr<livoxProto1::Device> &device);
sscl::co::ViralNonPostingInvoker<bool> coAwaitEnablePcloudData(
const std::shared_ptr<sscl::ComponentThread> &componentThread,
const std::shared_ptr<livoxProto1::Device> &device);
sscl::co::ViralNonPostingInvoker<bool> coAwaitDisablePcloudData(
const std::shared_ptr<sscl::ComponentThread> &componentThread,
const std::shared_ptr<livoxProto1::Device> &device);
sscl::co::ViralNonPostingInvoker<bool> coAwaitDestroyDevice(
const std::shared_ptr<sscl::ComponentThread> &componentThread,
const std::shared_ptr<livoxProto1::Device> &device);
} // namespace smo::stim_buff
#endif // LIVOX_GEN1_PROTO1_CPS_BRIDGE_H