48 #ifndef __DRV_HUMIDITY_H__ 49 #define __DRV_HUMIDITY_H__ 51 #include "nrf_drv_twi.h" uint32_t drv_humidity_sample(void)
Function to start sampling.
int16_t drv_humidity_get(void)
Function for getting the humidity data.
Definition: drv_humidity.h:59
uint32_t drv_humidity_init(drv_humidity_init_t *p_params)
Function for initializing the humidity driver.
uint32_t drv_humidity_disable(void)
Function for disabling the humidity sensor.
Definition: drv_humidity.h:58
uint32_t drv_humidity_enable(void)
Function for enabling the humidity sensor.
nrf_drv_twi_config_t const * p_twi_cfg
The TWI configuration to use while the driver is enabled.
Definition: drv_humidity.h:73
drv_humidity_evt_t
Humidity driver event types.
Definition: drv_humidity.h:56
void(* drv_humidity_evt_handler_t)(drv_humidity_evt_t evt)
Humidity driver event handler callback type.
Definition: drv_humidity.h:64
uint32_t drv_humidity_reset(void)
Function for resetting the chip to all default register values.
Initialization struct for the humidity driver.
Definition: drv_humidity.h:68
nrf_drv_twi_t const * p_twi_instance
The instance of TWI master to be used for transactions.
Definition: drv_humidity.h:72
float drv_humidity_temp_get(void)
Function for getting the temperature data.