/* * Copyright (C) 2019 Inria * * 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_ds75lx * @{ * * @file * @brief Internal addresses, registers, constants for the DS75LX sensor. * * @author Alexandre Abadie */ #ifndef DS75LX_INTERNALS_H #define DS75LX_INTERNALS_H #ifdef __cplusplus extern "C" { #endif /** * @brief DS75LX I2C address (7 bit address) */ #define DS75LX_ADDR (0x48) /** * @name DS75LX registers * @{ */ #define DS75LX_REG_TEMPERATURE (0x00) #define DS75LX_REG_CONFIGURATION (0x01) #define DS75LX_REG_T_HYST (0x02) #define DS75LX_REG_T_OS (0x03) /** @} */ /** * @name Configuration register bits * @{ */ #define DS75LX_CONF_SD_POS (0) #define DS75LX_CONF_TM_POS (1) #define DS75LX_CONF_POL_POS (2) #define DS75LX_CONF_F0_POS (3) #define DS75LX_CONF_F0_MASK (0x18) #define DS75LX_CONF_R0_POS (5) #define DS75LX_CONF_R0_MASK (0x60) /** @} */ /** * @brief Max conversion time unit (ms) */ #define DS75LX_MAX_CONVERSION_TIME (25U) #ifdef __cplusplus } #endif #endif /* DS75LX_INTERNALS_H */ /** @} */