blob: ca54f2fb6063d561558d86e20af286e1c9575247 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#ifndef LOCATION_LBS_CONTEXTHUB_NANOAPPS_CALIBRATION_ONLINE_CALIBRATION_COMMON_DATA_RESULT_CALLBACK_INTERFACE_H_
#define LOCATION_LBS_CONTEXTHUB_NANOAPPS_CALIBRATION_ONLINE_CALIBRATION_COMMON_DATA_RESULT_CALLBACK_INTERFACE_H_
#include "calibration/online_calibration/common_data/calibration_data.h"
#include "calibration/online_calibration/common_data/sensor_data.h"
namespace online_calibration {
// Interface for a results callback implementation (useful for building
// calibration event loggers).
class ResultCallbackInterface {
protected:
// Protected destructor. The implementation can destroy itself, it can't be
// destroyed through this interface.
virtual ~ResultCallbackInterface() = default;
public:
// Sets a calibration event, such as a magnetometer calibration event.
//
// event_timestamp_nanos: Timestamp in nanoseconds of when the calibration
// event was produced in the sensor timebase.
// sensor_type: Which sensor the calibration was produced for.
// flags: What kind of update the calibration was, e.g. offset, quality
// degradation (like a magnetization event), over temperature, etc.
virtual void SetCalibrationEvent(uint64_t event_timestamp_nanos,
SensorType sensor_type,
CalibrationTypeFlags flags) = 0;
};
} // namespace online_calibration
#endif // LOCATION_LBS_CONTEXTHUB_NANOAPPS_CALIBRATION_ONLINE_CALIBRATION_COMMON_DATA_RESULT_CALLBACK_INTERFACE_H_
|