Humidity sensor API.
More...
Humidity sensor API.
◆ drv_humidity_evt_t
Humidity driver event types.
Enumerator |
---|
DRV_HUMIDITY_EVT_DATA | Converted value ready to be read.
|
DRV_HUMIDITY_EVT_ERROR | Hardware error on the communication bus.
|
◆ drv_humidity_disable()
uint32_t drv_humidity_disable |
( |
void |
| ) |
|
Function for disabling the humidity sensor.
- Return values
-
NRF_SUCCESS | If initialization was successful. |
◆ drv_humidity_enable()
uint32_t drv_humidity_enable |
( |
void |
| ) |
|
Function for enabling the humidity sensor.
- Return values
-
NRF_SUCCESS | If initialization was successful. |
◆ drv_humidity_get()
int16_t drv_humidity_get |
( |
void |
| ) |
|
Function for getting the humidity data.
- Return values
-
◆ drv_humidity_init()
Function for initializing the humidity driver.
- Parameters
-
[in] | p_params | Pointer to init parameters. |
- Return values
-
NRF_SUCCESS | If initialization was successful. |
NRF_ERROR_INVALID_STATE | If the driver is in invalid state. |
◆ drv_humidity_reset()
uint32_t drv_humidity_reset |
( |
void |
| ) |
|
Function for resetting the chip to all default register values.
- Return values
-
NRF_SUCCESS | If operation was successful |
NRF_ERROR_BUSY | If TWI bus was busy |
◆ drv_humidity_sample()
uint32_t drv_humidity_sample |
( |
void |
| ) |
|
Function to start sampling.
- Return values
-
NRF_SUCCESS | If start sampling was successful. |
◆ drv_humidity_temp_get()
float drv_humidity_temp_get |
( |
void |
| ) |
|
Function for getting the temperature data.
- Return values
-