1 /*
2  * Copyright (c) 2025 Croxel, Inc.
3  * Copyright (c) 2025 CogniPilot Foundation
4  *
5  * SPDX-License-Identifier: Apache-2.0
6  */
7 
8 #ifndef ZEPHYR_DRIVERS_SENSOR_BMM350_BMM350_DECODER_H_
9 #define ZEPHYR_DRIVERS_SENSOR_BMM350_BMM350_DECODER_H_
10 
11 #include "bmm350.h"
12 
13 void bmm350_decoder_compensate_raw_data(const struct bmm350_raw_mag_data *raw_data,
14 					const struct mag_compensate *comp,
15 					struct bmm350_mag_temp_data *out);
16 
17 int bmm350_encode(const struct device *dev,
18 		  const struct sensor_read_config *read_config,
19 		  bool is_trigger,
20 		  uint8_t *buf);
21 
22 int bmm350_get_decoder(const struct device *dev, const struct sensor_decoder_api **decoder);
23 
24 #endif /* ZEPHYR_DRIVERS_SENSOR_BMM350_BMM350_DECODER_H_ */
25