Relative Humidity and Temperature sensor#

Relative Humidity and Temperature sensor driver abstraction designed for Thunderboard.

Functions#

sl_status_t
sl_status_t
sl_sensor_rht_get(uint32_t *rh, int32_t *t)

Function Documentation#

sl_sensor_rht_init#

sl_status_t sl_sensor_rht_init (void )
Parameters
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.


Definition at line 50 of file common/sensor_rht/sl_sensor_rht.h

sl_sensor_rht_deinit#

void sl_sensor_rht_deinit (void )
Parameters
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.


Definition at line 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)
Parameters
[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.


Definition at line 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_VALUE
Value:
0

Definition at line 40 of file common/sensor_rht/config/sl_sensor_rht_config.h

SENSOR_THERMOMETER_STATUS_TRIGGER_TYPE_PERCENTAGE#

#define SENSOR_THERMOMETER_STATUS_TRIGGER_TYPE_PERCENTAGE
Value:
1

Definition at line 41 of file common/sensor_rht/config/sl_sensor_rht_config.h

SENSOR_THERMOMETER_MIN_PERCENTAGE_DELTA_VALUE#

#define SENSOR_THERMOMETER_MIN_PERCENTAGE_DELTA_VALUE
Value:
0

Definition at line 43 of file common/sensor_rht/config/sl_sensor_rht_config.h

SENSOR_THERMOMETER_MAX_PERCENTAGE_DELTA_VALUE#

#define SENSOR_THERMOMETER_MAX_PERCENTAGE_DELTA_VALUE
Value:
65535

Definition at line 45 of file common/sensor_rht/config/sl_sensor_rht_config.h

SENSOR_THERMOMETER_MIN_DISCRETE_DELTA_VALUE#

#define SENSOR_THERMOMETER_MIN_DISCRETE_DELTA_VALUE
Value:
-128

Definition at line 47 of file common/sensor_rht/config/sl_sensor_rht_config.h

SENSOR_THERMOMETER_MAX_DISCRETE_DELTA_VALUE#

#define SENSOR_THERMOMETER_MAX_DISCRETE_DELTA_VALUE
Value:
127

Definition at line 49 of file common/sensor_rht/config/sl_sensor_rht_config.h

SENSOR_THERMOMETER_POSITIVE_TOLERANCE#

#define SENSOR_THERMOMETER_POSITIVE_TOLERANCE
Value:
0

Definition at line 59 of file common/sensor_rht/config/sl_sensor_rht_config.h

SENSOR_THERMOMETER_NEGATIVE_TOLERANCE#

#define SENSOR_THERMOMETER_NEGATIVE_TOLERANCE
Value:
0

Definition at line 65 of file common/sensor_rht/config/sl_sensor_rht_config.h

SENSOR_THERMOMETER_SAMPLING_FUNCTION#

#define SENSOR_THERMOMETER_SAMPLING_FUNCTION
Value:
SAMPLING_UNSPECIFIED

Definition at line 79 of file common/sensor_rht/config/sl_sensor_rht_config.h

SENSOR_THERMOMETER_MEASUREMENT_PERIOD#

#define SENSOR_THERMOMETER_MEASUREMENT_PERIOD
Value:
0

Definition at line 85 of file common/sensor_rht/config/sl_sensor_rht_config.h

SENSOR_THERMOMETER_UPDATE_INTERVAL#

#define SENSOR_THERMOMETER_UPDATE_INTERVAL
Value:
0

Definition at line 91 of file common/sensor_rht/config/sl_sensor_rht_config.h

SENSOR_THERMOMETER_CADENCE_ENABLE#

#define SENSOR_THERMOMETER_CADENCE_ENABLE
Value:
0

Definition at line 98 of file common/sensor_rht/config/sl_sensor_rht_config.h

SENSOR_THERMOMETER_FAST_CADENCE_PERIOD_DIVISOR#

#define SENSOR_THERMOMETER_FAST_CADENCE_PERIOD_DIVISOR
Value:
0

Definition at line 105 of file common/sensor_rht/config/sl_sensor_rht_config.h

SENSOR_THERMOMETER_STATUS_TRIGGER_TYPE#

#define SENSOR_THERMOMETER_STATUS_TRIGGER_TYPE
Value:
SENSOR_THERMOMETER_STATUS_TRIGGER_TYPE_DISCRETE_VALUE

Definition at line 112 of file common/sensor_rht/config/sl_sensor_rht_config.h

SENSOR_THERMOMETER_STATUS_TRIGGER_DELTA_DOWN#

#define SENSOR_THERMOMETER_STATUS_TRIGGER_DELTA_DOWN
Value:
0

Definition at line 121 of file common/sensor_rht/config/sl_sensor_rht_config.h

SENSOR_THERMOMETER_STATUS_TRIGGER_DELTA_UP#

#define SENSOR_THERMOMETER_STATUS_TRIGGER_DELTA_UP
Value:
0

Definition at line 130 of file common/sensor_rht/config/sl_sensor_rht_config.h

SENSOR_THERMOMETER_STATUS_MIN_INTERVAL#

#define SENSOR_THERMOMETER_STATUS_MIN_INTERVAL
Value:
0

Definition at line 138 of file common/sensor_rht/config/sl_sensor_rht_config.h

SENSOR_THERMOMETER_FAST_CADENCE_LOW#

#define SENSOR_THERMOMETER_FAST_CADENCE_LOW
Value:
0

Definition at line 146 of file common/sensor_rht/config/sl_sensor_rht_config.h

SENSOR_THERMOMETER_FAST_CADENCE_HIGH#

#define SENSOR_THERMOMETER_FAST_CADENCE_HIGH
Value:
0

Definition at line 154 of file common/sensor_rht/config/sl_sensor_rht_config.h