1# DPS310 temperature and pressure sensor configuration options
2
3# Copyright (c) 2019 Infineon Technologies AG
4# SPDX-License-Identifier: Apache-2.0
5
6menuconfig DPS310
7	bool "DPS310 sensor"
8	default y
9	depends on DT_HAS_INFINEON_DPS310_ENABLED
10	select I2C
11	help
12	  Enable driver for DPS310 I2C-based temperature and pressure sensor.
13
14if DPS310
15
16menu "Attributes"
17
18choice
19	prompt "DPS310 temperature oversampling"
20	default DPS310_TEMP_OSR_8X
21	help
22	  Select temperature oversampling for the DPS310 sensor.  Higher values
23	  lead to more accurate readings, but higher power consumption.
24config DPS310_TEMP_OSR_1X
25	bool "x1"
26config DPS310_TEMP_OSR_2X
27	bool "x2"
28config DPS310_TEMP_OSR_4X
29	bool "x4"
30config DPS310_TEMP_OSR_8X
31	bool "x8"
32config DPS310_TEMP_OSR_16X
33	bool "x16"
34config DPS310_TEMP_OSR_32X
35	bool "x32"
36config DPS310_TEMP_OSR_64X
37	bool "x64"
38config DPS310_TEMP_OSR_128X
39	bool "x128"
40endchoice
41
42choice
43	prompt "DPS310 pressure oversampling"
44	default DPS310_PRESS_OSR_8X
45	help
46	  Select pressure oversampling for the DPS310 sensor.  Higher values
47	  lead to more accurate readings, but higher power consumption.
48config DPS310_PRESS_OSR_1X
49	bool "x1"
50config DPS310_PRESS_OSR_2X
51	bool "x2"
52config DPS310_PRESS_OSR_4X
53	bool "x4"
54config DPS310_PRESS_OSR_8X
55	bool "x8"
56config DPS310_PRESS_OSR_16X
57	bool "x16"
58config DPS310_PRESS_OSR_32X
59	bool "x32"
60config DPS310_PRESS_OSR_64X
61	bool "x64"
62config DPS310_PRESS_OSR_128X
63	bool "x128"
64endchoice
65
66endmenu
67
68endif # DPS310
69