scd30_internal.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2020 Puhang Ding
3  * 2020 Jan Schlichter
4  * 2020 Nishchay Agrawal
5  *
6  * This file is subject to the terms and conditions of the GNU Lesser
7  * General Public License v2.1. See the file LICENSE in the top level
8  * directory for more details.
9  */
10 
11 #pragma once
12 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
32 #define SCD30_CRC_FUNC 0x31
34 #define SCD30_CRC_START_VAL 0xFF
42 #define SCD30_DEF_PRESSURE 0x03f5
45 #define SCD30_READ_WRITE_SLEEP_US (4 * US_PER_MS)
46 #define SCD30_RESET_SLEEP_US (25 * US_PER_MS)
47 #define SCD30_DATA_RDY_TIMEOUT (1 * US_PER_SEC)
48 
49 #define SCD30_MIN_INTERVAL 2
50 #define SCD30_MAX_INTERVAL 1800
51 
52 #define SCD30_MIN_PRESSURE_COMP 700
53 #define SCD30_MAX_PRESSURE_COMP 1400
56 #ifdef __cplusplus
57 }
58 #endif
59