Loading...
Searching...
No Matches
ccs811_regs.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2018 Gunar Schorcht
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
24#define CCS811_REG_STATUS (0x00)
25#define CCS811_REG_MEAS_MODE (0x01)
26#define CCS811_REG_ALG_RESULT_DATA (0x02)
27#define CCS811_REG_RAW_DATA (0x03)
28#define CCS811_REG_ENV_DATA (0x05)
29#define CCS811_REG_NTC (0x06)
30#define CCS811_REG_THRESHOLDS (0x10)
31#define CCS811_REG_BASELINE (0x11)
32
33#define CCS811_REG_HW_ID (0x20)
34#define CCS811_REG_HW_VER (0x21)
35#define CCS811_REG_FW_BOOT_VER (0x23)
36#define CCS811_REG_FW_APP_VER (0x24)
37
38#define CCS811_REG_ERROR_ID (0xe0)
39
40#define CCS811_REG_APP_ERASE (0xf1)
41#define CCS811_REG_APP_DATA (0xf2)
42#define CCS811_REG_APP_VERIFY (0xf3)
43#define CCS811_REG_APP_START (0xf4)
44#define CCS811_REG_SW_RESET (0xff)
46
51#define CCS811_STATUS_ERROR (0x01)
52#define CCS811_STATUS_DATA_RDY (0x08)
53#define CCS811_STATUS_APP_VALID (0x10)
54#define CCS811_STATUS_FW_MODE (0x80)
56
61#define CCS811_ERR_WRITE_REG_INV (0x01)
62#define CCS811_ERR_READ_REG_INV (0x02)
63#define CCS811_ERR_MEASMODE_INV (0x04)
64#define CCS811_ERR_MAX_RESISTANCE (0x08)
65#define CCS811_ERR_HEATER_FAULT (0x10)
66#define CCS811_ERR_HEATER_SUPPLY (0x20)
68
70#define CCS811_HW_ID (0x81)
71
72#ifdef __cplusplus
73}
74#endif
75