1# SHT3xD temperature and humidity sensor configuration options 2 3# Copyright (c) 2016 Intel Corporation 4# SPDX-License-Identifier: Apache-2.0 5 6menuconfig SHT3XD 7 bool "SHT3xD Temperature and Humidity Sensor" 8 default y 9 depends on DT_HAS_SENSIRION_SHT3XD_ENABLED 10 select I2C 11 select CRC 12 help 13 Enable driver for SHT3xD temperature and humidity sensors. 14 15if SHT3XD 16 17choice SHT3XD_TRIGGER_MODE 18 prompt "Trigger mode" 19 default SHT3XD_TRIGGER_NONE 20 help 21 Specify the type of triggering to be used by the driver. 22 23config SHT3XD_TRIGGER_NONE 24 bool "No trigger" 25 26config SHT3XD_TRIGGER_GLOBAL_THREAD 27 bool "Use global thread" 28 depends on GPIO 29 select SHT3XD_TRIGGER 30 31config SHT3XD_TRIGGER_OWN_THREAD 32 bool "Use own thread" 33 depends on GPIO 34 select SHT3XD_TRIGGER 35 36endchoice 37 38config SHT3XD_TRIGGER 39 bool 40 41config SHT3XD_THREAD_PRIORITY 42 int "Thread priority" 43 depends on SHT3XD_TRIGGER_OWN_THREAD 44 default 10 45 help 46 Priority of thread used by the driver to handle interrupts. 47 48config SHT3XD_THREAD_STACK_SIZE 49 int "Thread stack size" 50 depends on SHT3XD_TRIGGER_OWN_THREAD 51 default 1024 52 help 53 Stack size of thread used by the driver to handle interrupts. 54 55choice SHT3XD_REPEATABILITY 56 prompt "Measurement repeatability" 57 default SHT3XD_REPEATABILITY_HIGH 58 help 59 Repeatability modes differ with respect to measurement duration, 60 noise level and energy consumption. 61 62config SHT3XD_REPEATABILITY_LOW 63 bool "low" 64 65config SHT3XD_REPEATABILITY_MEDIUM 66 bool "medium" 67 68config SHT3XD_REPEATABILITY_HIGH 69 bool "high" 70 71endchoice 72 73choice SHT3XD_MEASUREMENT_MODE 74 prompt "Measurement mode" 75 default SHT3XD_PERIODIC_MODE 76 77config SHT3XD_SINGLE_SHOT_MODE 78 bool "single shot" 79 80config SHT3XD_PERIODIC_MODE 81 bool "periodic data acquisition" 82 83endchoice 84 85choice SHT3XD_MPS 86 prompt "Measurements per second" 87 default SHT3XD_MPS_1 88 depends on SHT3XD_PERIODIC_MODE 89 help 90 Number of measurements per second. 91 92config SHT3XD_MPS_05 93 bool "0.5" 94 95config SHT3XD_MPS_1 96 bool "1" 97 98config SHT3XD_MPS_2 99 bool "2" 100 101config SHT3XD_MPS_4 102 bool "4" 103 104config SHT3XD_MPS_10 105 bool "10" 106 107endchoice 108 109endif # SHT3XD 110