libyggdrasil  v1.0.0
humidity_sensor.h
Go to the documentation of this file.
1  /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2  * _____.___. .___ .__.__ *
3  * \__ | | ____ ____ __| _/___________ _____|__| | *
4  * / | |/ ___\ / ___\ / __ |\_ __ \__ \ / ___/ | | *
5  * \____ / /_/ > /_/ > /_/ | | | \// __ \_\___ \| | |__ *
6  * / ______\___ /\___ /\____ | |__| (____ /____ >__|____/ *
7  * \/ /_____//_____/ \/ \/ \/ *
8  * - Yggdrasil - *
9  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
10  * This software can be used by students and other personal of the *
11  * Bern University of Applied Sciences under the terms of the MIT *
12  * license. *
13  * For other persons this software is under the terms of the GNU *
14  * General Public License version 2. *
15  * *
16  * Copyright © 2021, Bern University of Applied Sciences. *
17  * All rights reserved. *
18  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
26 #pragma once
27 
28 #include <c/yggdrasil/types.h>
29 
41 };
42 
50 };
51 
59 
68 
77 
HumiditySensorHeat_110mWFor1s
@ HumiditySensorHeat_110mWFor1s
110mW @ 3.3V for 1s
Definition: humidity_sensor.h:37
HumiditySensorHeat_110mWFor0p1s
@ HumiditySensorHeat_110mWFor0p1s
110mW @ 3.3V for 0.1s
Definition: humidity_sensor.h:38
HumiditySensorPrecision_High
@ HumiditySensorPrecision_High
measure T & RH with High precision (High repeatability)
Definition: humidity_sensor.h:47
HumiditySensorHeat
HumiditySensorHeat
Heater commands for the SHT40-AD1B-R2 sensor.
Definition: humidity_sensor.h:34
HumiditySensorPrecision
HumiditySensorPrecision
Measurement precision settings for the SHT40-AD1B-R2 sensor.
Definition: humidity_sensor.h:46
HumiditySensorHeat_20mWFor0p1s
@ HumiditySensorHeat_20mWFor0p1s
20mW @ 3.3V for 0.1s
Definition: humidity_sensor.h:40
HumiditySensorPrecision_Low
@ HumiditySensorPrecision_Low
measure T & RH with lowest precision (low repeatability)
Definition: humidity_sensor.h:49
yggdrasil_HumiditySensor_Init
C_LINKAGE void yggdrasil_HumiditySensor_Init(void)
Initialization of the SHT40-AD1B-R2 relative humidity and temperature sensor.
types.h
yggdrasil_HumiditySensor_EnableHeater
C_LINKAGE void yggdrasil_HumiditySensor_EnableHeater(enum HumiditySensorHeat level)
Enable the heater module on the sensor.
HumiditySensorHeat_200mWFor0p1s
@ HumiditySensorHeat_200mWFor0p1s
200mW @ 3.3V for 0.1s
Definition: humidity_sensor.h:36
yggdrasil_HumiditySensor_GetHumidity
C_LINKAGE float yggdrasil_HumiditySensor_GetHumidity(enum HumiditySensorPrecision precision)
Get the temperature without using the heater.
HumiditySensorHeat_20mWFor1s
@ HumiditySensorHeat_20mWFor1s
20mW @ 3.3V for 1s
Definition: humidity_sensor.h:39
yggdrasil_HumiditySensor_GetTemperature
C_LINKAGE float yggdrasil_HumiditySensor_GetTemperature(enum HumiditySensorPrecision precision)
Get the temperature without using the heater.
HumiditySensorHeat_200mWFor1s
@ HumiditySensorHeat_200mWFor1s
200mW @ 3.3V for 1s
Definition: humidity_sensor.h:35
C_LINKAGE
#define C_LINKAGE
Definition: attributes.h:43
HumiditySensorPrecision_Medium
@ HumiditySensorPrecision_Medium
measure T & RH with medium precision (medium repeatability)
Definition: humidity_sensor.h:48