2020-04-14 18:56:05 +02:00
|
|
|
# Copyright (c) 2020 Freie Universitaet Berlin
|
|
|
|
#
|
|
|
|
# This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
# General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
# directory for more details.
|
|
|
|
#
|
2020-11-26 15:04:11 +01:00
|
|
|
|
|
|
|
config MODULE_HDC1000
|
|
|
|
bool "HDC1000 Humidity and Temperature Sensor"
|
|
|
|
depends on HAS_PERIPH_I2C
|
|
|
|
depends on TEST_KCONFIG
|
|
|
|
select MODULE_PERIPH_I2C
|
|
|
|
select MODULE_XTIMER
|
|
|
|
|
2021-11-19 09:34:47 +01:00
|
|
|
config HAVE_HDC1000
|
|
|
|
bool
|
|
|
|
select MODULE_HDC1000 if MODULE_SAUL_DEFAULT
|
|
|
|
help
|
2021-12-08 11:40:06 +01:00
|
|
|
Indicates that a HDC1000 humidity and temperature sensor is present.
|
2021-11-19 09:34:47 +01:00
|
|
|
|
2020-08-31 09:33:35 +02:00
|
|
|
menuconfig KCONFIG_USEMODULE_HDC1000
|
2020-04-14 18:56:05 +02:00
|
|
|
bool "Configure HDC1000 driver"
|
2020-08-31 09:33:35 +02:00
|
|
|
depends on USEMODULE_HDC1000
|
2020-04-14 18:56:05 +02:00
|
|
|
help
|
|
|
|
Configure the HDC1000 driver using Kconfig.
|
|
|
|
|
2020-08-31 09:33:35 +02:00
|
|
|
if KCONFIG_USEMODULE_HDC1000
|
2020-04-14 18:56:05 +02:00
|
|
|
|
|
|
|
config HDC1000_I2C_ADDRESS
|
|
|
|
hex "I2C default address"
|
|
|
|
range 0x40 0x43
|
|
|
|
default 0x43
|
|
|
|
help
|
|
|
|
HDC1000 allows for up to 4 devices on single bus. The value depends on
|
|
|
|
the state of ADR1 and ADR0 pins.
|
|
|
|
For more information refer to the section 8.5.1 in the Datasheet (SNAS643C).
|
|
|
|
|
|
|
|
config HDC1000_CONVERSION_TIME
|
|
|
|
int "Conversion time in microseconds [us]"
|
|
|
|
default 26000
|
|
|
|
help
|
|
|
|
This time value is chosen twice as large as needed for two 14-bit
|
|
|
|
conversions (worst case) to allow for timer imprecision:
|
|
|
|
(convert temp + convert hum) * 2 -> (6.5ms + 6.5ms) * 2 := 26ms.
|
|
|
|
|
2020-08-31 09:33:35 +02:00
|
|
|
endif # KCONFIG_USEMODULE_HDC1000
|