Blame view

RIOT/drivers/lps331ap/include/lps331ap-internal.h 1.87 KB
fb11e647   vrobic   reseau statique a...
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
  /*
   * Copyright (C) 2014 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     driver_lps331ap
   * @{
   *
   * @file
   * @brief       Definitions for the LPS331AP pressure sensor
   *
   * @author      Hauke Petersen <hauke.petersen@fu-berlin.de>
   */
  
  #ifndef LPS331AP_INTERNAL_H
  #define LPS331AP_INTERNAL_H
  
  #ifdef __cplusplus
  extern "C" {
  #endif
  
  /**
   * @name LPS331AP registers
   * @{
   */
  #define LPS331AP_AUTO_INC               0x80
  #define LPS331AP_REG_REF_P_XL           0x08
  #define LPS331AP_REG_REF_P_L            0x09
  #define LPS331AP_REG_REF_P_H            0x0a
  #define LPS331AP_REG_WHO_AM_I           0x0f
  #define LPS331AP_REG_RES_CONF           0x10
  #define LPS331AP_REG_CTRL_REG1          0x20
  #define LPS331AP_REG_CTRL_REG2          0x21
  #define LPS331AP_REG_CTRL_REG3          0x22
  #define LPS331AP_REG_INT_CFG_REG        0x23
  #define LPS331AP_REG_INT_SOURCE_REG     0x24
  #define LPS331AP_REG_THS_P_LOW_REG      0x25
  #define LPS331AP_REG_THS_P_HIGH_REG     0x26
  #define LPS331AP_REG_STATUS_REG         0x27
  #define LPS331AP_REG_PRESS_OUT_XL       0x28
  #define LPS331AP_REG_PRESS_OUT_L        0x29
  #define LPS331AP_REG_PRESS_OUT_H        0x2a
  #define LPS331AP_REG_TEMP_OUT_L         0x2b
  #define LPS331AP_REG_TEMP_OUT_H         0x2c
  #define LPS331AP_REG_AMP_CTRL           0x30
  /** @} */
  
  /**
   * @name LPS331AP CTRL_REG1 bitfields
   * @{
   */
  #define LPS331AP_CTRL_REG1_PD           0x80
  #define LPS331AP_CTRL_REG1_ODR          0x70
  #define LPS331AP_CTRL_REG1_ODR_POS      4
  #define LPS331AP_CTRL_REG1_DIFF_EN      0x08
  #define LPS331AP_CTRL_REG1_DBDU         0x04
  #define LPS331AP_CTRL_REG1_DELTA_EN     0x02
  #define LPS331AP_CTRL_REG1_SIM          0x01
  /** @} */
  
  #ifdef __cplusplus
  }
  #endif
  
  #endif /* LPS331AP_INTERNAL_H */
  /** @} */