There are several different issues when trying to build the icm42605 sensor driver: * Missing entry in drivers/sensor/CMakeLists.txt * Issues with #ifndef in header files * Issues with const usage * Missing function prototypes in headers * Fix use of LOG_MODULE_REGISTER v LOG_MODULE_DECLARE * Add missing dts node to tests/drivers/build_all/spi.dtsi Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
20 lines
614 B
C
20 lines
614 B
C
/*
|
|
* Copyright (c) 2020 TDK Invensense
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef ZEPHYR_DRIVERS_SENSOR_ICM42605_ICM42605_SETUP_H_
|
|
#define ZEPHYR_DRIVERS_SENSOR_ICM42605_ICM42605_SETUP_H_
|
|
|
|
#include <device.h>
|
|
|
|
int icm42605_sensor_init(const struct device *dev);
|
|
int icm42605_turn_on_fifo(const struct device *dev);
|
|
int icm42605_turn_off_fifo(const struct device *dev);
|
|
int icm42605_turn_off_sensor(const struct device *dev);
|
|
int icm42605_turn_on_sensor(const struct device *dev);
|
|
int icm42605_set_odr(const struct device *dev, int a_rate, int g_rate);
|
|
|
|
#endif /* __SENSOR_ICM42605_ICM42605_SETUP__ */
|