/* * Copyright 2017, RWTH Aachen. All rights reserved. * * 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_shtc1 * * @{ * @file * @brief Register definitions for SHTC1 devices * * @author Steffen Robertz * @author Josua Arndt */ #ifndef SHTC1_REGS_H #define SHTC1_REGS_H #ifdef __cplusplus extern "C" { #endif /** * @name SHTC1 registers * @{ */ #define SHTC1_CRC (0x31) /**< crc polynomial */ #define SHTC1_MEASURE_CLOCK_STRETCHING_TEMP_HIGH (0x7C) /**< Clock stretching enable high*/ #define SHTC1_MEASURE_CLOCK_STRETCHING_TEMP_LOW (0xA2) /**< Clock stretching disable high*/ #define SHTC1_COMMAND_RESET_HIGH (0x80) /**< Reset command high*/ #define SHTC1_COMMAND_RESET_LOW (0x5D) /**< Reset command low*/ #define SHTC1_COMMAND_ID_HIGH (0xEF) /**< Get ID command low*/ #define SHTC1_COMMAND_ID_LOW (0xC8) /**< Get ID command low*/ /** @} */ /** * @brief SHTC1 default ID */ #define SHTC1_ID (0x07) /* ID Mask */ #ifdef __cplusplus } #endif #endif /* SHTC1_REGS_H */ /** @} */