1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/drivers/hm330x/include/hm330x_constants.h
2021-12-16 15:19:44 +01:00

47 lines
830 B
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_hm330x
* @{
*
* @file
* @brief Internal addresses, registers and constants
*
* @author Francisco Molina <francois-xavier.molina@inria.fr>
*/
#ifndef HM330X_CONSTANTS_H
#define HM330X_CONSTANTS_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief HM330X default i2c address
*/
#define HM330X_I2C_ADDRESS (0x40U)
/**
* @brief HM330X data length
*/
#define HM330X_DATA_LENGTH (29U)
/**
* @brief HM330X cmd to switch to i2c mode
*/
#define HM330X_CMD_I2C_MODE (0x88U)
#ifdef __cplusplus
}
#endif
#endif /* HM330X_CONSTANTS_H */
/** @} */