1 /* 2 * Copyright (c) 2024 Würth Elektronik eiSos GmbH & Co. KG 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #ifndef ZEPHYR_DRIVERS_SENSOR_WSEN_PDUS_25131308XXXXX_WSEN_PDUS_25131308XXXXX_H_ 8 #define ZEPHYR_DRIVERS_SENSOR_WSEN_PDUS_25131308XXXXX_WSEN_PDUS_25131308XXXXX_H_ 9 10 #include <zephyr/drivers/gpio.h> 11 #include <zephyr/drivers/sensor.h> 12 13 #include <weplatform.h> 14 15 #include "WSEN_PDUS_25131308XXX01_hal.h" 16 #include <zephyr/drivers/i2c.h> 17 18 struct pdus_25131308XXXXX_data { 19 /* WE sensor interface configuration */ 20 WE_sensorInterface_t sensor_interface; 21 22 /* Last pressure sample */ 23 uint16_t pressure; 24 25 /* Last temperature sample */ 26 uint16_t temperature; 27 }; 28 29 struct pdus_25131308XXXXX_config { 30 union { 31 const struct i2c_dt_spec i2c; 32 } bus_cfg; 33 34 PDUS_SensorType_t sensor_type; 35 }; 36 37 #endif /* ZEPHYR_DRIVERS_SENSOR_WSEN_PDUS_25131308XXXXX_WSEN_PDUS_25131308XXXXX_H_ */ 38