1 /* 2 * Copyright 2023 Google LLC 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #ifndef ZEPHYR_INCLUDE_INPUT_ANALOG_AXIS_SETTINGS_H_ 8 #define ZEPHYR_INCLUDE_INPUT_ANALOG_AXIS_SETTINGS_H_ 9 10 #include <stdint.h> 11 #include <zephyr/device.h> 12 13 /** 14 * @addtogroup input_analog_axis 15 * @{ 16 */ 17 18 /** 19 * @brief Save the calibration data. 20 * 21 * Save the calibration data permanently on the specifided device, requires 22 * the @ref settings subsystem to be configured and initialized. 23 * 24 * @param dev Analog axis device. 25 * 26 * @retval 0 If successful. 27 * @retval -errno In case of any other error. 28 */ 29 int analog_axis_calibration_save(const struct device *dev); 30 31 /** @} */ 32 33 #endif /* ZEPHYR_INCLUDE_INPUT_ANALOG_AXIS_SETTINGS_H_ */ 34