1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/drivers/adcxx1c/include/adcxx1c_regs.h

54 lines
1.0 KiB
C

/*
* 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_adcxx1c
* @{
*
* @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 addresses
* @{
*/
#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 */
/** @} */