Blame view

RIOT/drivers/hdc1000/include/hdc1000_regs.h 1.73 KB
a752c7ab   elopes   add first test an...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
  /*
   * Copyright (C) 2014 PHYTEC Messtechnik GmbH
   *               2017 Freie Universitรคt Berlin
   *
   * This file is subject to the terms and conditions of the GNU Lesser
   * General Public License v2.1. See the file LICENSE in the top level
   * directory for more details.
   */
  
  /**
   * @ingroup     drivers_hdc1000
   * @{
   *
   * @file
   * @brief       Register definitions for HDC1000 devices
   *
   * @author      Johann Fischer <j.fischer@phytec.de>
   * @author      Hauke Petersen <hauke.petersen@fu-berlin.de>
   */
  
  #ifndef HDC1000_REGS_H
  #define HDC1000_REGS_H
  
  #ifdef __cplusplus
  extern "C"
  {
  #endif
  
  /**
   * @name    Manufacturer and Device IDs
   * @{
   */
  #define HDC1000_MID_VALUE          0x5449
  #define HDC1000_DID_VALUE          0x1000
  /** @} */
  
  /**
   * @name    Register Map
   * @{
   */
  #define HDC1000_TEMPERATURE         (0x00)
  #define HDC1000_HUMIDITY            (0x01)
  #define HDC1000_CONFIG              (0x02)
  #define HDC1000_SID1                (0xFB)
  #define HDC1000_SID2                (0xFC)
  #define HDC1000_SID3                (0xFD)
  #define HDC1000_MANUFACTURER_ID     (0xFE)
  #define HDC1000_DEVICE_ID           (0xFF)
  /** @} */
  
  /**
   * @name    Configuration register bitmap
   * @{
   */
  #define HDC1000_RST                 (1 << 15)
  #define HDC1000_HEAT                (1 << 13)
  #define HDC1000_SEQ_MOD             (1 << 12)
  #define HDC1000_BTST_LOW            (1 << 11)
  #define HDC1000_TRES_MSK            (1 << 10)
  #define HDC1000_TRES11              (1 << 10)
  #define HDC1000_TRES14              (0)
  #define HDC1000_HRES_MSK            (1 << 9 | 1 << 8)
  #define HDC1000_HRES14              (0)
  #define HDC1000_HRES11              (1 << 8)
  #define HDC1000_HRES8               (1 << 9)
  /** @} */
  
  #ifdef __cplusplus
  }
  #endif
  
  #endif /* HDC1000_REGS_H */
  /** @} */