Files
salmanoff/stimBuffApis/livoxGen1/ioUringAssemblyEngine.h
T

43 lines
877 B
C++

#ifndef _LIVOX_GEN1_IOURING_ASSEMBLY_ENGINE_H
#define _LIVOX_GEN1_IOURING_ASSEMBLY_ENGINE_H
#include <cstdint>
#include <cstddef>
#include <memory>
#include <functional>
#include <vector>
#include <chrono>
#include <atomic>
#include <livoxProto1/device.h>
#include "frameAssemblyDesc.h"
namespace smo {
namespace stim_buff {
class IoUringAssemblyEngine
{
public:
IoUringAssemblyEngine();
~IoUringAssemblyEngine() = default;
// Telemetry helpers
static size_t computePointsPerDgram(int returnMode);
static size_t computePointsPerFrame(int returnMode, size_t nDgramsPerFrame)
{ return computePointsPerDgram(returnMode) * nDgramsPerFrame; }
private:
// Cached descriptor for reuse across iterations
FrameAssemblyDesc* desc;
void cancelIncompleteAndFillDummies();
};
} // namespace stim_buff
} // namespace smo
#endif // _LIVOX_GEN1_IOURING_ASSEMBLY_ENGINE_H