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_RM3100_DECODER_H_ 9 #define ZEPHYR_DRIVERS_SENSOR_RM3100_DECODER_H_ 10 11 #include <stdint.h> 12 #include <zephyr/drivers/sensor.h> 13 #include "rm3100.h" 14 15 int rm3100_encode(const struct device *dev, 16 const struct sensor_chan_spec *const channels, 17 size_t num_channels, 18 uint8_t *buf); 19 20 uint8_t rm3100_encode_channel(enum sensor_channel chan); 21 22 int rm3100_get_decoder(const struct device *dev, 23 const struct sensor_decoder_api **decoder); 24 25 #endif /* ZEPHYR_DRIVERS_SENSOR_RM3100_DECODER_H_ */ 26