36 #ifndef ENVIRONMENT2_CLICK_H
37 #define ENVIRONMENT2_CLICK_H
42 #define ENVIRONMENT2_USE_POWERDOWN 0
45 #define SGP40_T_TEST 250
46 #define SGP40_T_MEAS_RAW 30
47 #define SHT40_T_MEAS 10
48 #define SGP40_T_INIT 60000
49 #define SGP40_T_SETTLING 3600000
50 #define SGP40_T_POWERUP 170
53 #define SGP40_T_SLEEP 0xFFFFFFFF
56 #define SGP40_MAXDLEN 6
58 #define SGP40_ADDLEN 3
60 #define SHT40_MAXDLEN 6
62 #define SHT40_ADDLEN 2
79 uint16_t *air_quality_raw,
80 int16_t *relative_humidity,
81 int16_t *temperature);
88 uint16_t *air_quality,
90 int16_t *temperature);
uint8_t MIKROSDK_ENVIRONMENT2_Acquire(int32_t *voc_index, uint16_t *air_quality, int16_t *humidity, int16_t *temperature)
Definition: environment2.c:411
uint8_t MIKROSDK_ENVIRONMENT2_get_voc_index(int32_t *voc_index)
Definition: environment2.c:253
uint8_t MIKROSDK_ENVIRONMENT2_Powerdown(void)
Definition: environment2.c:440
uint8_t MIKROSDK_ENVIRONMENT2_get_temp_hum(int16_t *humidity, int16_t *temperature)
Definition: environment2.c:219
uint8_t MIKROSDK_ENVIRONMENT2_soft_reset(void)
Definition: environment2.c:346
uint8_t MIKROSDK_ENVIRONMENT2_Powerup(void)
Definition: environment2.c:450
uint8_t MIKROSDK_ENVIRONMENT2_get_voc_index_with_rh_t(int32_t *voc_index, uint16_t *air_quality_raw, int16_t *relative_humidity, int16_t *temperature)
Definition: environment2.c:275
uint8_t MIKROSDK_ENVIRONMENT2_sgp40_measure_test(void)
Definition: environment2.c:299
uint8_t MIKROSDK_ENVIRONMENT2_sgp40_heater_off(void)
Definition: environment2.c:327
uint8_t MIKROSDK_ENVIRONMENT2_get_air_quality(uint16_t *air_quality_raw)
Definition: environment2.c:235
uint8_t MIKROSDK_ENVIRONMENT2_Reinitialise(void)
Definition: environment2.c:384
environment2_status
Definition: environment2_click.h:66
@ ENVIRONMENT2_ST_OK
Definition: environment2_click.h:67
@ ENVIRONMENT2_ST_SETTLING
Definition: environment2_click.h:68
@ ENVIRONMENT2_ST_FAIL
Definition: environment2_click.h:71
@ ENVIRONMENT2_ST_SLEEP
Definition: environment2_click.h:70
@ ENVIRONMENT2_ST_INIT
Definition: environment2_click.h:69
uint8_t MIKROSDK_ENVIRONMENT2_Initialise(void)
Definition: environment2.c:363