summaryrefslogtreecommitdiff
path: root/firmware/os/algos/calibration/online_calibration/common_data/result_callback_interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/os/algos/calibration/online_calibration/common_data/result_callback_interface.h')
-rw-r--r--firmware/os/algos/calibration/online_calibration/common_data/result_callback_interface.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/firmware/os/algos/calibration/online_calibration/common_data/result_callback_interface.h b/firmware/os/algos/calibration/online_calibration/common_data/result_callback_interface.h
index ca54f2fb..585f67fd 100644
--- a/firmware/os/algos/calibration/online_calibration/common_data/result_callback_interface.h
+++ b/firmware/os/algos/calibration/online_calibration/common_data/result_callback_interface.h
@@ -20,11 +20,19 @@ class ResultCallbackInterface {
// 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.
+ // sensor_index: Platform-dependent index that identifies the sensor (useful
+ // for devices with more than one sensor type).
+ // calibration_index: Platform-dependent index that identifies the calibration
+ // value that is being applied (distinct calibrations may
+ // be utilized according to physical state [e.g., different
+ // magnetometer biases may be required for the open/closed
+ // states of a foldable device]).
// 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;
+ virtual void SetCalibrationEvent(
+ uint64_t event_timestamp_nanos, SensorType sensor_type,
+ uint8_t sensor_index, uint8_t calibration_index,
+ CalibrationTypeFlags flags, const CalibrationDataThreeAxis &cal_data) = 0;
};
} // namespace online_calibration