Loading...
Searching...
No Matches
ccs811_regs.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018 Gunar Schorcht
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
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
27#define CCS811_REG_STATUS (0x00)
28#define CCS811_REG_MEAS_MODE (0x01)
29#define CCS811_REG_ALG_RESULT_DATA (0x02)
30#define CCS811_REG_RAW_DATA (0x03)
31#define CCS811_REG_ENV_DATA (0x05)
32#define CCS811_REG_NTC (0x06)
33#define CCS811_REG_THRESHOLDS (0x10)
34#define CCS811_REG_BASELINE (0x11)
35
36#define CCS811_REG_HW_ID (0x20)
37#define CCS811_REG_HW_VER (0x21)
38#define CCS811_REG_FW_BOOT_VER (0x23)
39#define CCS811_REG_FW_APP_VER (0x24)
40
41#define CCS811_REG_ERROR_ID (0xe0)
42
43#define CCS811_REG_APP_ERASE (0xf1)
44#define CCS811_REG_APP_DATA (0xf2)
45#define CCS811_REG_APP_VERIFY (0xf3)
46#define CCS811_REG_APP_START (0xf4)
47#define CCS811_REG_SW_RESET (0xff)
49
54#define CCS811_STATUS_ERROR (0x01)
55#define CCS811_STATUS_DATA_RDY (0x08)
56#define CCS811_STATUS_APP_VALID (0x10)
57#define CCS811_STATUS_FW_MODE (0x80)
59
64#define CCS811_ERR_WRITE_REG_INV (0x01)
65#define CCS811_ERR_READ_REG_INV (0x02)
66#define CCS811_ERR_MEASMODE_INV (0x04)
67#define CCS811_ERR_MAX_RESISTANCE (0x08)
68#define CCS811_ERR_HEATER_FAULT (0x10)
69#define CCS811_ERR_HEATER_SUPPLY (0x20)
71
73#define CCS811_HW_ID (0x81)
74
75#ifdef __cplusplus
76}
77#endif
78