Blame view

RIOT/drivers/adcxx1c/include/adcxx1c_regs.h 1.04 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
  /*
   * Copyright (C) 2017 OTA keys S.A.
   *
   * 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_adcxx1x
   * @{
   *
   * @file
   * @brief       Register definition for ADCXX1C devices
   *
   * @author      Vincent Dupont <vincent@otakeys.com>
   */
  
  #ifndef ADCXX1C_REGS_H
  #define ADCXX1C_REGS_H
  
  #ifdef __cplusplus
  extern "C" {
  #endif
  
  /**
   * @name    ADCxx1C register addesses
   * @{
   */
  #define ADCXX1C_CONV_RES_ADDR      (0)
  #define ADCXX1C_ALERT_STATUS_ADDR  (1)
  #define ADCXX1C_CONF_ADDR          (2)
  #define ADCXX1C_LOW_LIMIT_ADDR     (3)
  #define ADCXX1C_HIGH_LIMIT_ADDR    (4)
  #define ADCXX1C_HYSTERESIS_ADDR    (5)
  #define ADCXX1C_LOWEST_CONV_ADDR   (6)
  #define ADCXX1C_HIGHEST_CONV_ADDR  (7)
  /** @} */
  
  /**
   * @name    ADCxx1C Config flags
   * @{
   */
  #define ADCXX1C_CONF_ALERT_PIN_EN   (1 << 2)
  #define ADCXX1C_CONF_ALERT_FLAG_EN  (1 << 3)
  /** @} */
  
  #ifdef __cplusplus
  }
  #endif
  
  #endif /* ADCXX1C_REGS_H */
  /** @} */