2016-10-15 08:20:01 -04:00
|
|
|
# Kconfig - SHT3xD temperature and humidity sensor configuration options
|
2016-02-22 16:22:16 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# Copyright (c) 2016 Intel Corporation
|
|
|
|
#
|
2017-01-18 17:01:01 -08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2016-02-22 16:22:16 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
menuconfig SHT3XD
|
2018-08-14 16:19:20 +02:00
|
|
|
bool "SHT3xD Temperature and Humidity Sensor"
|
2017-09-21 20:28:16 +02:00
|
|
|
depends on I2C
|
2016-02-22 16:22:16 +02:00
|
|
|
help
|
|
|
|
Enable driver for SHT3xD temperature and humidity sensors.
|
|
|
|
|
|
|
|
config SHT3XD_NAME
|
2018-08-14 16:19:20 +02:00
|
|
|
string "Driver name"
|
2016-02-22 16:22:16 +02:00
|
|
|
default "SHT3XD"
|
|
|
|
depends on SHT3XD
|
|
|
|
help
|
|
|
|
Device name with which the SHT3xD sensor is identified.
|
|
|
|
|
2016-10-05 08:45:54 -04:00
|
|
|
config SHT3XD_I2C_ADDR
|
|
|
|
hex "SHT3XD I2C address"
|
2016-02-22 16:22:16 +02:00
|
|
|
depends on SHT3XD
|
2016-10-05 08:45:54 -04:00
|
|
|
default "0x44"
|
2016-02-22 16:22:16 +02:00
|
|
|
help
|
|
|
|
I2C address of the SHT3xD sensor.
|
|
|
|
|
2016-10-05 08:45:54 -04:00
|
|
|
0x44: Choose this option if the ADDR pin is connected to VSS.
|
|
|
|
0x45: Choose this option if the ADDR pin is connected to VDD.
|
2016-02-22 16:22:16 +02:00
|
|
|
|
|
|
|
config SHT3XD_I2C_MASTER_DEV_NAME
|
2018-08-14 16:19:20 +02:00
|
|
|
string "I2C master where SHT3xD is connected"
|
2016-02-22 16:22:16 +02:00
|
|
|
depends on SHT3XD
|
2016-04-23 11:06:05 -04:00
|
|
|
default "I2C_0"
|
2016-02-22 16:22:16 +02:00
|
|
|
help
|
|
|
|
Specify the device name of the I2C master device to which the
|
|
|
|
SHT3xD chip is connected.
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Trigger mode"
|
|
|
|
depends on SHT3XD
|
|
|
|
default SHT3XD_TRIGGER_NONE
|
|
|
|
help
|
|
|
|
Specify the type of triggering to be used by the driver.
|
|
|
|
|
|
|
|
config SHT3XD_TRIGGER_NONE
|
2018-08-14 16:19:20 +02:00
|
|
|
bool "No trigger"
|
2016-02-22 16:22:16 +02:00
|
|
|
|
2016-11-10 10:05:53 -05:00
|
|
|
config SHT3XD_TRIGGER_GLOBAL_THREAD
|
2018-08-14 16:19:20 +02:00
|
|
|
bool "Use global thread"
|
2016-11-04 15:47:32 -04:00
|
|
|
depends on GPIO
|
2016-02-22 16:22:16 +02:00
|
|
|
select SHT3XD_TRIGGER
|
|
|
|
|
2016-11-10 10:05:53 -05:00
|
|
|
config SHT3XD_TRIGGER_OWN_THREAD
|
2018-08-14 16:19:20 +02:00
|
|
|
bool "Use own thread"
|
2016-02-22 16:22:16 +02:00
|
|
|
depends on GPIO
|
|
|
|
select SHT3XD_TRIGGER
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config SHT3XD_TRIGGER
|
|
|
|
bool
|
|
|
|
depends on SHT3XD
|
|
|
|
|
|
|
|
config SHT3XD_GPIO_DEV_NAME
|
2018-08-14 16:19:20 +02:00
|
|
|
string "GPIO device"
|
2016-02-22 16:22:16 +02:00
|
|
|
default "GPIO_0"
|
|
|
|
depends on SHT3XD && SHT3XD_TRIGGER
|
|
|
|
help
|
|
|
|
The device name of the GPIO device to which the SHT3xD interrupt
|
|
|
|
pins are connected.
|
|
|
|
|
|
|
|
config SHT3XD_GPIO_PIN_NUM
|
2018-08-14 16:19:20 +02:00
|
|
|
int "Interrupt GPIO pin number"
|
2016-02-22 16:22:16 +02:00
|
|
|
default 0
|
|
|
|
depends on SHT3XD && SHT3XD_TRIGGER
|
|
|
|
help
|
|
|
|
The number of the GPIO on which the interrupt signal from the
|
|
|
|
SHT3xD chip will be received.
|
|
|
|
|
2016-11-10 10:05:53 -05:00
|
|
|
config SHT3XD_THREAD_PRIORITY
|
2018-08-14 16:19:20 +02:00
|
|
|
int "Thread priority"
|
2016-11-10 10:05:53 -05:00
|
|
|
depends on SHT3XD && SHT3XD_TRIGGER_OWN_THREAD
|
2016-02-22 16:22:16 +02:00
|
|
|
default 10
|
|
|
|
help
|
2016-11-10 10:05:53 -05:00
|
|
|
Priority of thread used by the driver to handle interrupts.
|
2016-02-22 16:22:16 +02:00
|
|
|
|
2016-11-10 10:05:53 -05:00
|
|
|
config SHT3XD_THREAD_STACK_SIZE
|
2018-08-14 16:19:20 +02:00
|
|
|
int "Thread stack size"
|
2016-11-10 10:05:53 -05:00
|
|
|
depends on SHT3XD && SHT3XD_TRIGGER_OWN_THREAD
|
2016-02-22 16:22:16 +02:00
|
|
|
default 1024
|
|
|
|
help
|
2016-11-10 10:05:53 -05:00
|
|
|
Stack size of thread used by the driver to handle interrupts.
|
2016-02-22 16:22:16 +02:00
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Measurement repeatability"
|
|
|
|
depends on SHT3XD
|
|
|
|
default SHT3XD_REPEATABILITY_HIGH
|
|
|
|
help
|
|
|
|
Repeatability modes differ with respect to measurement duration,
|
|
|
|
noise level and energy consumption.
|
|
|
|
|
|
|
|
config SHT3XD_REPEATABILITY_LOW
|
2018-08-14 16:19:20 +02:00
|
|
|
bool "low"
|
2016-02-22 16:22:16 +02:00
|
|
|
|
|
|
|
config SHT3XD_REPEATABILITY_MEDIUM
|
2018-08-14 16:19:20 +02:00
|
|
|
bool "medium"
|
2016-02-22 16:22:16 +02:00
|
|
|
|
|
|
|
config SHT3XD_REPEATABILITY_HIGH
|
2018-08-14 16:19:20 +02:00
|
|
|
bool "high"
|
2016-02-22 16:22:16 +02:00
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Measurements per second"
|
|
|
|
depends on SHT3XD
|
|
|
|
default SHT3XD_MPS_1
|
|
|
|
help
|
|
|
|
Number of measurements per second.
|
|
|
|
|
|
|
|
config SHT3XD_MPS_05
|
2018-08-14 16:19:20 +02:00
|
|
|
bool "0.5"
|
2016-02-22 16:22:16 +02:00
|
|
|
|
|
|
|
config SHT3XD_MPS_1
|
2018-08-14 16:19:20 +02:00
|
|
|
bool "1"
|
2016-02-22 16:22:16 +02:00
|
|
|
|
|
|
|
config SHT3XD_MPS_2
|
2018-08-14 16:19:20 +02:00
|
|
|
bool "2"
|
2016-02-22 16:22:16 +02:00
|
|
|
|
|
|
|
config SHT3XD_MPS_4
|
2018-08-14 16:19:20 +02:00
|
|
|
bool "4"
|
2016-02-22 16:22:16 +02:00
|
|
|
|
|
|
|
config SHT3XD_MPS_10
|
2018-08-14 16:19:20 +02:00
|
|
|
bool "10"
|
2016-02-22 16:22:16 +02:00
|
|
|
|
|
|
|
endchoice
|