36 #ifndef AIRQUALITY4_CLICK_H
37 #define AIRQUALITY4_CLICK_H
42 #define AIRQUALITY4_MEASURE_RAW_SIGNALS 0
45 #define SGP30_I2C_ADDR 0x58
48 #define SGP30_MAXDLEN 6
50 #define SGP30_ADDLEN 3
53 #define SGP30_T_INIT 17000
54 #define SGP30_T_CAL 43200000
55 #define SGP30_T_TEST 250
56 #define SGP30_T_MEAS_RAW 25
57 #define SGP30_T_MEAS_QUAL 12
58 #define SGP30_T_MEAS_POWERUP 10
60 #define SGP30_T_SLEEP 0xFFFFFFFF
63 #define SGP30_CMD_INIT_AIR_QUALITY 0x2003
64 #define SGP30_CMD_MEASURE_AIR_QUALITY 0x2008
65 #define SGP30_CMD_GET_BASELINE 0x2015
66 #define SGP30_CMD_SET_BASELINE 0x201E
67 #define SGP30_CMD_SET_HUMIDITY 0x2061
68 #define SGP30_CMD_MEASURE_TEST 0x2032
69 #define SGP30_CMD_GET_FEATURE_SET_VERSION 0x202F
70 #define SGP30_CMD_MEASURE_RAW_SIGNALS 0x2050
71 #define SGP30_CMD_GET_SERIAL_ID 0x3682
uint8_t MIKROSDK_AIRQUALITY4_soft_reset(void)
Definition: airquality4.c:129
uint8_t MIKROSDK_AIRQUALITY4_get_baseline(void)
Definition: airquality4.c:107
uint8_t MIKROSDK_AIRQUALITY4_Powerdown(void)
Definition: airquality4.c:308
airquality4_status
Definition: airquality4_click.h:75
@ AIRQUALITY4_ST_SLEEP
Definition: airquality4_click.h:79
@ AIRQUALITY4_ST_FAIL
Definition: airquality4_click.h:80
@ AIRQUALITY4_ST_INIT
Definition: airquality4_click.h:78
@ AIRQUALITY4_ST_NCAL
Definition: airquality4_click.h:77
@ AIRQUALITY4_ST_OK
Definition: airquality4_click.h:76
uint8_t MIKROSDK_AIRQUALITY4_measure_test(void)
Definition: airquality4.c:162
uint8_t MIKROSDK_AIRQUALITY4_Reinitialise(void)
Definition: airquality4.c:260
uint8_t MIKROSDK_AIRQUALITY4_Initialise(void)
Definition: airquality4.c:236
uint8_t MIKROSDK_AIRQUALITY4_Acquire(uint16_t *co2_h2, uint16_t *tvoc_eth)
Definition: airquality4.c:286
uint8_t MIKROSDK_AIRQUALITY4_measure_air_quality(uint16_t *value)
Definition: airquality4.c:204
uint8_t MIKROSDK_AIRQUALITY4_measure_raw_signals(uint16_t *value)
Definition: airquality4.c:184
uint8_t MIKROSDK_AIRQUALITY4_Powerup(void)
Definition: airquality4.c:324
uint8_t MIKROSDK_AIRQUALITY4_dev_init(void)
Definition: airquality4.c:95
uint8_t MIKROSDK_AIRQUALITY4_set_baseline(void)
Definition: airquality4.c:120
uint8_t MIKROSDK_AIRQUALITY4_get_version(uint16_t *version)
Definition: airquality4.c:146