libyggdrasil
v1.0.0
|
Driver to use the SHT40-AD1B-R2 humidity sensor. More...
#include <c/yggdrasil/types.h>
Go to the source code of this file.
Enumerations | |
enum | HumiditySensorHeat { HumiditySensorHeat_200mWFor1s = 0x39, HumiditySensorHeat_200mWFor0p1s = 0x32, HumiditySensorHeat_110mWFor1s = 0x2F, HumiditySensorHeat_110mWFor0p1s = 0x24, HumiditySensorHeat_20mWFor1s = 0x1E, HumiditySensorHeat_20mWFor0p1s = 0x15 } |
Heater commands for the SHT40-AD1B-R2 sensor. More... | |
enum | HumiditySensorPrecision { HumiditySensorPrecision_High = 0xFD, HumiditySensorPrecision_Medium = 0xF6, HumiditySensorPrecision_Low = 0xE0 } |
Measurement precision settings for the SHT40-AD1B-R2 sensor. More... | |
Functions | |
C_LINKAGE void | yggdrasil_HumiditySensor_Init (void) |
Initialization of the SHT40-AD1B-R2 relative humidity and temperature sensor. More... | |
C_LINKAGE float | yggdrasil_HumiditySensor_GetTemperature (enum HumiditySensorPrecision precision) |
Get the temperature without using the heater. More... | |
C_LINKAGE float | yggdrasil_HumiditySensor_GetHumidity (enum HumiditySensorPrecision precision) |
Get the temperature without using the heater. More... | |
C_LINKAGE void | yggdrasil_HumiditySensor_EnableHeater (enum HumiditySensorHeat level) |
Enable the heater module on the sensor. More... | |
Driver to use the SHT40-AD1B-R2 humidity sensor.
enum HumiditySensorHeat |
Heater commands for the SHT40-AD1B-R2 sensor.
Measurement precision settings for the SHT40-AD1B-R2 sensor.
C_LINKAGE void yggdrasil_HumiditySensor_EnableHeater | ( | enum HumiditySensorHeat | level | ) |
Enable the heater module on the sensor.
level | Power and duration command |
C_LINKAGE float yggdrasil_HumiditySensor_GetHumidity | ( | enum HumiditySensorPrecision | precision | ) |
Get the temperature without using the heater.
precision | Precision for the conversion |
C_LINKAGE float yggdrasil_HumiditySensor_GetTemperature | ( | enum HumiditySensorPrecision | precision | ) |
Get the temperature without using the heater.
precision | Precision for the conversion |
C_LINKAGE void yggdrasil_HumiditySensor_Init | ( | void | ) |
Initialization of the SHT40-AD1B-R2 relative humidity and temperature sensor.