sgp30_constants.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2021 Inria
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
9 #pragma once
10 
21 #include "timex.h"
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
30 #define SGP30_I2C_ADDRESS (0x58)
31 
35 #define SGP30_REQUIRED_FEATURE_SET (0x0020)
36 
40 #define SGP30_SERIAL_ID_LEN (6U)
41 
45 #define SGP30_AIR_QUALITY_INIT_DELAY_US (15 * US_PER_SEC)
46 
50 #define SGP30_RECOMMENDED_SAMPLING_PERIOD (1 * US_PER_SEC)
51 
52 #ifdef __cplusplus
53 }
54 #endif
55 
Utility library for comparing and computing timestamps.