You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

53 lines
1.0 KiB

/*
* 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 */
/** @} */