1 /*
2  * Copyright (c) 2025 TDK Invensense
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef ZEPHYR_DRIVERS_SENSOR_ICM42670_H_
8 #define ZEPHYR_DRIVERS_SENSOR_ICM42670_H_
9 
10 #include <zephyr/drivers/gpio.h>
11 #include <zephyr/drivers/sensor.h>
12 #include <zephyr/kernel.h>
13 
14 #include "icm42x70.h"
15 
16 int icm42670_gyro_config(struct icm42x70_data *drv_data, enum sensor_attribute attr,
17 			 const struct sensor_value *val);
18 void icm42670_convert_gyro(struct sensor_value *val, int16_t raw_val, uint16_t fs);
19 int icm42670_sample_fetch_gyro(const struct device *dev);
20 uint16_t convert_bitfield_to_gyr_fs(uint8_t bitfield);
21 
22 #endif /* ZEPHYR_DRIVERS_SENSOR_ICM42670_H_ */
23