1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/drivers/sgp30/include/sgp30_constants.h
2021-04-08 10:14:30 +02:00

59 lines
1.1 KiB
C

/*
* Copyright (C) 2021 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_sgp30
* @{
*
* @file
* @brief Internal addresses, registers and constants
*
* @author Francisco Molina <francois-xavier.molina@inria.fr>
*/
#ifndef SGP30_CONSTANTS_H
#define SGP30_CONSTANTS_H
#include "timex.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief SGP30 I2C address, only one is defined
*/
#define SGP30_I2C_ADDRESS (0x58)
/**
* @brief Minimum required feature set version for this driver
*/
#define SGP30_REQUIRED_FEATURE_SET (0x0020)
/**
* @brief Length of serial id
*/
#define SGP30_SERIAL_ID_LEN (6U)
/**
* @brief Initialization time
*/
#define SGP30_AIR_QUALITY_INIT_DELAY_US (15 * US_PER_SEC)
/**
* @brief Sampling for dynamic baseline compensation algorithm
*/
#define SGP30_RECOMMENDED_SAMPLING_PERIOD (1 * US_PER_SEC)
#ifdef __cplusplus
}
#endif
#endif /* SGP30_CONSTANTS_H */
/** @} */