2017-01-17 18:02:44 +01:00
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2018-06-01 12:09:01 +02:00
|
|
|
* @ingroup drivers_adcxx1c
|
2017-01-17 18:02:44 +01:00
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @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
|
|
|
|
|
|
|
|
/**
|
2019-10-23 21:24:16 +02:00
|
|
|
* @name ADCxx1C register addresses
|
2017-01-17 18:02:44 +01:00
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
#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)
|
|
|
|
/** @} */
|
|
|
|
|
|
|
|
/**
|
2017-08-29 18:00:46 +02:00
|
|
|
* @name ADCxx1C Config flags
|
2017-01-17 18:02:44 +01:00
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
#define ADCXX1C_CONF_ALERT_PIN_EN (1 << 2)
|
|
|
|
#define ADCXX1C_CONF_ALERT_FLAG_EN (1 << 3)
|
|
|
|
/** @} */
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* ADCXX1C_REGS_H */
|
|
|
|
/** @} */
|