2017-10-26 10:21:12 +02:00
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2022-02-25 17:17:11 +01:00
|
|
|
* @ingroup drivers_shtcx
|
2017-10-26 10:21:12 +02:00
|
|
|
*
|
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file
|
2022-02-25 17:17:11 +01:00
|
|
|
* @brief Default parameters for the SHTCX Temperature and humidity sensor
|
2017-10-26 10:21:12 +02:00
|
|
|
*
|
|
|
|
* @author Steffen Robertz <steffen.robertz@rwth-aachen.de>
|
|
|
|
* @author Josua Arndt <jarndt@ias.rwth-aachen.de>
|
|
|
|
*/
|
|
|
|
|
2022-02-25 17:17:11 +01:00
|
|
|
#ifndef SHTCX_PARAMS_H
|
|
|
|
#define SHTCX_PARAMS_H
|
2017-10-26 10:21:12 +02:00
|
|
|
|
|
|
|
#include "board.h"
|
2022-02-25 17:17:11 +01:00
|
|
|
#include "shtcx.h"
|
|
|
|
#include "shtcx_regs.h"
|
2017-10-26 10:21:12 +02:00
|
|
|
#include "saul_reg.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
2022-02-25 17:17:11 +01:00
|
|
|
* @name Default configuration parameters for SHTCX sensors
|
2017-10-26 10:21:12 +02:00
|
|
|
* @{
|
|
|
|
*/
|
2022-02-25 17:17:11 +01:00
|
|
|
#ifndef SHTCX_PARAM_I2C_DEV
|
|
|
|
#define SHTCX_PARAM_I2C_DEV (I2C_DEV(0)) /**< Default I2C BUS used */
|
2017-10-26 10:21:12 +02:00
|
|
|
#endif
|
2022-02-25 17:17:11 +01:00
|
|
|
#ifndef SHTCX_PARAM_I2C_ADDR
|
|
|
|
#define SHTCX_PARAM_I2C_ADDR SHTCX_I2C_ADDRESS /**< I2C Address */
|
2017-10-26 10:21:12 +02:00
|
|
|
#endif
|
|
|
|
|
2022-02-25 17:17:11 +01:00
|
|
|
#ifndef SHTCX_PARAMS
|
|
|
|
#define SHTCX_PARAMS { .i2c_dev = SHTCX_PARAM_I2C_DEV, \
|
|
|
|
.i2c_addr = SHTCX_PARAM_I2C_ADDR }
|
2017-10-26 10:21:12 +02:00
|
|
|
#endif
|
2022-02-25 17:17:11 +01:00
|
|
|
#ifndef SHTCX_SAUL_INFO
|
|
|
|
#define SHTCX_SAUL_INFO { .name = "shtcx temperature" }, \
|
|
|
|
{ .name = "shtcx humidity" }
|
2017-10-26 10:21:12 +02:00
|
|
|
#endif
|
|
|
|
/** @} */
|
|
|
|
|
|
|
|
/**
|
2022-02-25 17:17:11 +01:00
|
|
|
* @brief Allocation of SHTCX configuration
|
2017-10-26 10:21:12 +02:00
|
|
|
*/
|
2022-02-25 17:17:11 +01:00
|
|
|
static const shtcx_params_t shtcx_params[] =
|
2017-10-26 10:21:12 +02:00
|
|
|
{
|
2022-02-25 17:17:11 +01:00
|
|
|
SHTCX_PARAMS
|
2017-10-26 10:21:12 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Configure SAUL registry entries
|
|
|
|
*/
|
2022-02-25 17:17:11 +01:00
|
|
|
static const saul_reg_info_t shtcx_saul_info[] =
|
2017-10-26 10:21:12 +02:00
|
|
|
{
|
2022-02-25 17:17:11 +01:00
|
|
|
SHTCX_SAUL_INFO
|
2017-10-26 10:21:12 +02:00
|
|
|
};
|
2022-02-25 17:17:11 +01:00
|
|
|
|
2017-10-26 10:21:12 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2022-02-25 17:17:11 +01:00
|
|
|
#endif /* SHTCX_PARAMS_H */
|
2017-10-26 10:21:12 +02:00
|
|
|
/** @} */
|