Relative Humidity and Temperature sensor#
Relative Humidity and Temperature sensor driver abstraction designed for Thunderboard.
Functions#
Macros#
Function Documentation#
sl_sensor_rht_init#
sl_status_t sl_sensor_rht_init (void )
Type | Direction | Argument Name | Description |
---|---|---|---|
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 )
Type | Direction | Argument Name | Description |
---|---|---|---|
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)
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t * | [out] | rh | Relative humidity (in 0.001 percent). |
int32_t * | [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