Loading...
Searching...
No Matches
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
21#ifndef HDC1000_REGS_H
22#define HDC1000_REGS_H
23
24#ifdef __cplusplus
25extern "C"
26{
27#endif
28
33#define HDC1000_MID_VALUE 0x5449
34#define HDC1000_DID_VALUE 0x1000
41#define HDC1000_TEMPERATURE (0x00)
42#define HDC1000_HUMIDITY (0x01)
43#define HDC1000_CONFIG (0x02)
44#define HDC1000_SID1 (0xFB)
45#define HDC1000_SID2 (0xFC)
46#define HDC1000_SID3 (0xFD)
47#define HDC1000_MANUFACTURER_ID (0xFE)
48#define HDC1000_DEVICE_ID (0xFF)
55#define HDC1000_RST (1 << 15)
56#define HDC1000_HEAT (1 << 13)
57#define HDC1000_SEQ_MOD (1 << 12)
58#define HDC1000_BTST_LOW (1 << 11)
59#define HDC1000_TRES_MSK (1 << 10)
60#define HDC1000_TRES11 (1 << 10)
61#define HDC1000_TRES14 (0)
62#define HDC1000_HRES_MSK (1 << 9 | 1 << 8)
63#define HDC1000_HRES14 (0)
64#define HDC1000_HRES11 (1 << 8)
65#define HDC1000_HRES8 (1 << 9)
68#ifdef __cplusplus
69}
70#endif
71
72#endif /* HDC1000_REGS_H */