1# ENS210 Digital Temperature and Humidity sensor configuration options
2
3# Copyright (c) 2018 Alexander Wachter.
4# SPDX-License-Identifier: Apache-2.0
5
6menuconfig ENS210
7	bool "ENS210 Digital Temperature and Humidity sensor"
8	depends on I2C
9	help
10	  Enable driver for ENS210 Digital Temperature and Humidity sensor.
11if ENS210
12
13choice
14	prompt "Temperature measurement mode"
15	default ENS210_TEMPERATURE_CONTINUOUS
16	help
17	  Enable/disable temperature measurements and set measurement mode.
18config ENS210_TEMPERATURE_OFF
19	bool "Disable temperature measurements"
20config ENS210_TEMPERATURE_SINGLE
21	bool "Enable temperature measurements in single shot mode"
22config ENS210_TEMPERATURE_CONTINUOUS
23	bool "Enable temperature measurements in continuous mode"
24endchoice
25
26choice
27	prompt "Humidity measurement mode"
28	default ENS210_HUMIDITY_CONTINUOUS
29	help
30	  Enable/disable relative humidity measurements and set measurement mode.
31config ENS210_HUMIDITY_OFF
32	bool "Disable relative humidity measurements"
33config ENS210_HUMIDITY_SINGLE
34	bool "Enable relative humidity measurements in single shot mode"
35config ENS210_HUMIDITY_CONTINUOUS
36	bool "Enable relative humidity measurements in continuous mode"
37endchoice
38
39config ENS210_CRC_CHECK
40	bool "Enable CRC Check"
41	default y
42	help
43	  Check the crc value after data reading.
44
45config ENS210_MAX_STAT_RETRIES
46	int "Number of status read retries"
47	default 4
48	help
49	  Number of retries when status reading failed or device not ready.
50
51config ENS210_MAX_READ_RETRIES
52	int "Number of value reading retries"
53	default 4
54	help
55	  Number of retries when value reading failed, value not valid
56	  or crc not ok.
57
58endif # ENS210
59