18#include "sensorring/device/hardware/vl53l8cx/VL53L8CX_Params.hpp"
22#include "sensorring/platform/SensorringExport.hpp"
28class VL53L8CX_DeviceImpl;
78 static std::future<bool>
fetchTofMeasurementAsync(
const std::vector<VL53L8CX_Device*>& devices, std::chrono::milliseconds timeout);
86 void comCallback(
const com::ComEndpoint source,
const std::vector<uint8_t>& data)
override;
88 void onResetSensorState()
override;
89 void onClearDataFlag()
override;
91 friend class VL53L8CX_DeviceImpl;
92 std::unique_ptr<VL53L8CX_DeviceImpl> _impl;
Base device combining IDevice and BaseSensor with device ID and state.
Interface type definition.
Collection of math functions.
Structures for ToF measurements.
Uniquely identifies a communication endpoint by its string ID.
Definition ComEndpoint.hpp:25
BaseDevice(DeviceID id, com::ComInterface *interface, com::ComEndpoint target, bool enable)
Constructs the device with the given ID, communication interface, endpoint, and enable flag.
static std::future< bool > fetchTofMeasurementAsync(const std::vector< VL53L8CX_Device * > &devices, std::chrono::milliseconds timeout)
Fetch Time-of-Flight measurements asynchronously from a set of devices.
~VL53L8CX_Device()
Destructor.
std::pair< const measurement::TofMeasurement &, DeviceState > getLatestTransformedMeasurement() const
Get the most recent transformed measurement and current sensor state.
static std::future< bool > requestTofMeasurementAsync(const std::vector< VL53L8CX_Device * > &devices, std::chrono::milliseconds timeout)
Request Time-of-Flight measurements asynchronously on a set of devices.
std::pair< const measurement::TofMeasurement &, DeviceState > getLatestMeasurement() const
Get the most recent measurement and current sensor state.
VL53L8CX_Device(VL53L8CX_Params params, com::ComInterfaceID interface, unsigned int idx)
Construct a new VL53L8CX device instance.
const VL53L8CX_Params & getParams() const
Get the sensor parameters used to configure this device.
Definition ComInterfaceID.hpp:32
Parameter structure of the Time-of-Flight sensor of a sensor board.
Definition VL53L8CX_Params.hpp:18