HTS221 humidity sensor API.
More...
HTS221 humidity sensor API.
◆ drv_hts221_calib_get()
Function for getting the sensor calibration data.
- Parameters
-
[out] | p_calib | Calibration values. |
- Returns
- NRF_SUCCESS If the call was successful.
◆ drv_hts221_cfg_get()
Function for reading the configuration of the HTS221 sensor.
- Parameters
-
[in] | p_cfg | Pointer to the driver configuration for the session to be opened. |
- Returns
- NRF_SUCCESS If the call was successful.
◆ drv_hts221_cfg_set()
Function for configuring the HTS221 sensor according to the specified configuration.
- Parameters
-
[in] | p_cfg | Pointer to the sensor configuration. |
- Returns
- NRF_SUCCESS If the call was successful.
◆ drv_hts221_close()
uint32_t drv_hts221_close |
( |
void |
| ) |
|
Function for closing the HTS221 driver.
- Returns
- NRF_SUCCESS If the call was successful.
◆ drv_hts221_humidity_get()
uint32_t drv_hts221_humidity_get |
( |
int16_t * |
p_humidity | ) |
|
Function for getting the humidity data.
- Parameters
-
[out] | p_humidity | Fetched from humidity registers. |
- Returns
- NRF_SUCCESS If the call was successful.
◆ drv_hts221_init()
uint32_t drv_hts221_init |
( |
void |
| ) |
|
Function for initializing the HTS221 driver.
- Returns
- NRF_SUCCESS Success. Only possible return value.
◆ drv_hts221_one_shot()
uint32_t drv_hts221_one_shot |
( |
void |
| ) |
|
Function for starting one shot conversion.
- Returns
- NRF_SUCCESS If the call was successful.
◆ drv_hts221_open()
Function for opening the HTS221 driver according to the specified configuration.
- Parameters
-
[in] | p_cfg | Pointer to the driver configuration for the session to be opened. |
- Returns
- NRF_SUCCESS If the call was successful.
◆ drv_hts221_reboot()
uint32_t drv_hts221_reboot |
( |
void |
| ) |
|
Function for rebooting the HTS221 memory content.
- Returns
- NRF_SUCCESS If the call was successful.
◆ drv_hts221_status_get()
uint32_t drv_hts221_status_get |
( |
uint8_t * |
p_status | ) |
|
Function for getting the status.
- Parameters
-
[out] | p_status | Contents of the status register. |
- Returns
- NRF_SUCCESS If the call was successful.
◆ drv_hts221_temperature_get()
uint32_t drv_hts221_temperature_get |
( |
int16_t * |
p_temperature | ) |
|
Function for getting the temperature data.
- Parameters
-
[out] | p_temperature | Fetched from temperature registers. |
- Returns
- NRF_SUCCESS If the call was successful.
◆ drv_hts221_verify()
uint32_t drv_hts221_verify |
( |
void |
| ) |
|
Function for verifying the HTS221 WHO_AM_I register.
- Returns
- NRF_SUCCESS If the call was successful.