Relative Humidity and Temperature sensor#
Relative Humidity and Temperature sensor driver abstraction designed for Thunderboard. Not suitable for other applications.
Functions#
Macros#
Function Documentation#
sl_sensor_rht_init#
sl_status_t sl_sensor_rht_init (void )
N/A |
Initialize Relative Humidity and Temperature sensor.
Note
With certain boards (e.g. 4166A, 4184A, 4184B), using this initialization function enables other sensors, because they're on the same enable pin. Please take that into account when using this function.
Returns
Status of the operation.
50
of file common/sensor_rht/sl_sensor_rht.h
sl_sensor_rht_deinit#
void sl_sensor_rht_deinit (void )
N/A |
Deinitialize Relative Humidity and Temperature sensor.
Warnings
With certain boards (e.g. 4166A, 4184A, 4184B), using this deinitialization function disables other sensors, because they're on the same enable pin. Please use with caution.
59
of file common/sensor_rht/sl_sensor_rht.h
sl_sensor_rht_get#
sl_status_t sl_sensor_rht_get (uint32_t * rh, int32_t * t)
[out] | rh | Relative humidity (in 0.001 percent). |
[out] | t | Temperature (in 0.001 Celsius). |
Getter for Relative Humidity and Temperature sensor measurement data. Returns
Status of the operation.
67
of file common/sensor_rht/sl_sensor_rht.h
Macro Definition Documentation#
SENSOR_THERMOMETER_STATUS_TRIGGER_TYPE_DISCRETE_VALUE#
#define SENSOR_THERMOMETER_STATUS_TRIGGER_TYPE_DISCRETE_VALUEValue:
0
40
of file common/sensor_rht/config/sl_sensor_rht_config.h
SENSOR_THERMOMETER_STATUS_TRIGGER_TYPE_PERCENTAGE#
#define SENSOR_THERMOMETER_STATUS_TRIGGER_TYPE_PERCENTAGEValue:
1
41
of file common/sensor_rht/config/sl_sensor_rht_config.h
SENSOR_THERMOMETER_MIN_PERCENTAGE_DELTA_VALUE#
#define SENSOR_THERMOMETER_MIN_PERCENTAGE_DELTA_VALUEValue:
0
43
of file common/sensor_rht/config/sl_sensor_rht_config.h
SENSOR_THERMOMETER_MAX_PERCENTAGE_DELTA_VALUE#
#define SENSOR_THERMOMETER_MAX_PERCENTAGE_DELTA_VALUEValue:
65535
45
of file common/sensor_rht/config/sl_sensor_rht_config.h
SENSOR_THERMOMETER_MIN_DISCRETE_DELTA_VALUE#
#define SENSOR_THERMOMETER_MIN_DISCRETE_DELTA_VALUEValue:
-128
47
of file common/sensor_rht/config/sl_sensor_rht_config.h
SENSOR_THERMOMETER_MAX_DISCRETE_DELTA_VALUE#
#define SENSOR_THERMOMETER_MAX_DISCRETE_DELTA_VALUEValue:
127
49
of file common/sensor_rht/config/sl_sensor_rht_config.h
SENSOR_THERMOMETER_POSITIVE_TOLERANCE#
#define SENSOR_THERMOMETER_POSITIVE_TOLERANCEValue:
0
59
of file common/sensor_rht/config/sl_sensor_rht_config.h
SENSOR_THERMOMETER_NEGATIVE_TOLERANCE#
#define SENSOR_THERMOMETER_NEGATIVE_TOLERANCEValue:
0
65
of file common/sensor_rht/config/sl_sensor_rht_config.h
SENSOR_THERMOMETER_SAMPLING_FUNCTION#
#define SENSOR_THERMOMETER_SAMPLING_FUNCTIONValue:
SAMPLING_UNSPECIFIED
79
of file common/sensor_rht/config/sl_sensor_rht_config.h
SENSOR_THERMOMETER_MEASUREMENT_PERIOD#
#define SENSOR_THERMOMETER_MEASUREMENT_PERIODValue:
0
85
of file common/sensor_rht/config/sl_sensor_rht_config.h
SENSOR_THERMOMETER_UPDATE_INTERVAL#
#define SENSOR_THERMOMETER_UPDATE_INTERVALValue:
0
91
of file common/sensor_rht/config/sl_sensor_rht_config.h
SENSOR_THERMOMETER_CADENCE_ENABLE#
#define SENSOR_THERMOMETER_CADENCE_ENABLEValue:
0
98
of file common/sensor_rht/config/sl_sensor_rht_config.h
SENSOR_THERMOMETER_FAST_CADENCE_PERIOD_DIVISOR#
#define SENSOR_THERMOMETER_FAST_CADENCE_PERIOD_DIVISORValue:
0
105
of file common/sensor_rht/config/sl_sensor_rht_config.h
SENSOR_THERMOMETER_STATUS_TRIGGER_TYPE#
#define SENSOR_THERMOMETER_STATUS_TRIGGER_TYPEValue:
SENSOR_THERMOMETER_STATUS_TRIGGER_TYPE_DISCRETE_VALUE
112
of file common/sensor_rht/config/sl_sensor_rht_config.h
SENSOR_THERMOMETER_STATUS_TRIGGER_DELTA_DOWN#
#define SENSOR_THERMOMETER_STATUS_TRIGGER_DELTA_DOWNValue:
0
121
of file common/sensor_rht/config/sl_sensor_rht_config.h
SENSOR_THERMOMETER_STATUS_TRIGGER_DELTA_UP#
#define SENSOR_THERMOMETER_STATUS_TRIGGER_DELTA_UPValue:
0
130
of file common/sensor_rht/config/sl_sensor_rht_config.h
SENSOR_THERMOMETER_STATUS_MIN_INTERVAL#
#define SENSOR_THERMOMETER_STATUS_MIN_INTERVALValue:
0
138
of file common/sensor_rht/config/sl_sensor_rht_config.h
SENSOR_THERMOMETER_FAST_CADENCE_LOW#
#define SENSOR_THERMOMETER_FAST_CADENCE_LOWValue:
0
146
of file common/sensor_rht/config/sl_sensor_rht_config.h
SENSOR_THERMOMETER_FAST_CADENCE_HIGH#
#define SENSOR_THERMOMETER_FAST_CADENCE_HIGHValue:
0
154
of file common/sensor_rht/config/sl_sensor_rht_config.h