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.
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
#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 ¶ms);
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user