1 /* 2 * Copyright (c) 2020 Intel Corporation. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #ifndef __TEST_DUMMY_SENSOR_H__ 8 #define __TEST_DUMMY_SENSOR_H__ 9 10 #include <zephyr/kernel.h> 11 #include <zephyr/device.h> 12 #include <zephyr/drivers/sensor.h> 13 #define DUMMY_SENSOR_NAME "dummy_sensor" 14 #define DUMMY_SENSOR_NAME_NO_TRIG "dummy_sensor_no_trig" 15 #define SENSOR_CHANNEL_NUM 5 16 17 struct dummy_sensor_data { 18 sensor_trigger_handler_t handler; 19 struct sensor_value val[SENSOR_CHANNEL_NUM]; 20 }; 21 22 struct dummy_sensor_config { 23 char *i2c_name; 24 uint8_t i2c_address; 25 }; 26 27 #endif //__TEST_DUMMY_SENSOR_H__ 28