21#include "sensorring/platform/SensorringExport.hpp"
29class HTPA32_DeviceImpl;
85 bool sendMeasurementRequest(std::uint8_t sequence_number)
override;
86 bool sendMeasurementTransmissionRequest()
override;
89 struct InterfaceTag {};
97 void comCallback(
const com::ComEndpoint source, std::uint8_t command,
const std::vector<uint8_t>& data)
override;
99 void onClearDataFlag()
override;
101 friend class HTPA32_DeviceImpl;
102 friend class HTPA32_DeviceTestAccess;
103 std::unique_ptr<HTPA32_DeviceImpl> _impl;
Interface type definition.
Parameter structure for the HTPA32 thermal sensor.
Structures for thermal measurements.
Abstract interface for thermal-sensing devices.
Device wrapper for an HTPA32 thermal sensor on the sensorring bus.
Definition HTPA32_Device.hpp:39
const HTPA32_Params & getParams() const override
Get the sensor parameters used to configure this device.
std::future< bool > getEepromAsync(std::chrono::milliseconds timeout)
Request the EEPROM content asynchronously.
bool stopCalibration() override
Stop any ongoing thermal calibration sequence.
bool configure() override
Configure the device. Reads the EEPROM once on first call.
bool startCalibration(unsigned int window) override
Start a thermal calibration over a sliding window of frames.
~HTPA32_Device()
Destructor.
HTPA32_Device(HTPA32_Params params, com::ComInterfaceID interface, unsigned int idx)
Construct a new HTPA32 device instance.
ThermalSensor(DeviceID id, com::ComInterface *interface, com::ComEndpoint target)
Construct a ThermalSensor with Device params.
Uniquely identifies a communication endpoint as a (Direction, BoardAddress, DeviceId) tuple.
Definition ComEndpoint.hpp:37
Uniquely identifies a communication interface by type and name.
Definition ComInterfaceID.hpp:51
Parameter structure of the thermal sensor of a sensor board.
Definition HTPA32_Params.hpp:28