hdc1000_regs.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014 PHYTEC Messtechnik GmbH
3  * 2017 Freie Universität Berlin
4  *
5  * This file is subject to the terms and conditions of the GNU Lesser
6  * General Public License v2.1. See the file LICENSE in the top level
7  * directory for more details.
8  */
9 
10 #pragma once
11 
23 #ifdef __cplusplus
24 extern "C"
25 {
26 #endif
27 
32 #define HDC1000_MID_VALUE 0x5449
33 #define HDC1000_DID_VALUE 0x1000
40 #define HDC1000_TEMPERATURE (0x00)
41 #define HDC1000_HUMIDITY (0x01)
42 #define HDC1000_CONFIG (0x02)
43 #define HDC1000_SID1 (0xFB)
44 #define HDC1000_SID2 (0xFC)
45 #define HDC1000_SID3 (0xFD)
46 #define HDC1000_MANUFACTURER_ID (0xFE)
47 #define HDC1000_DEVICE_ID (0xFF)
54 #define HDC1000_RST (1 << 15)
55 #define HDC1000_HEAT (1 << 13)
56 #define HDC1000_SEQ_MOD (1 << 12)
57 #define HDC1000_BTST_LOW (1 << 11)
58 #define HDC1000_TRES_MSK (1 << 10)
59 #define HDC1000_TRES11 (1 << 10)
60 #define HDC1000_TRES14 (0)
61 #define HDC1000_HRES_MSK (1 << 9 | 1 << 8)
62 #define HDC1000_HRES14 (0)
63 #define HDC1000_HRES11 (1 << 8)
64 #define HDC1000_HRES8 (1 << 9)
67 #ifdef __cplusplus
68 }
69 #endif
70