mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
50 lines
1.1 KiB
C
50 lines
1.1 KiB
C
|
/*
|
||
|
* Copyright (C) 2018 Mesotic SAS
|
||
|
*
|
||
|
* 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 pkg_driver_bme680
|
||
|
* @{
|
||
|
*
|
||
|
* @file
|
||
|
* @brief Abstraction layer for RIOT adaption
|
||
|
*
|
||
|
* @author Dylan Laduranty <dylan.laduranty@mesotic.com>
|
||
|
*/
|
||
|
|
||
|
#ifndef BME680_HAL_H
|
||
|
#define BME680_HAL_H
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
void bme680_ms_sleep(uint32_t msleep);
|
||
|
|
||
|
#ifdef MODULE_PERIPH_I2C
|
||
|
|
||
|
int8_t bme680_i2c_read_hal(uint8_t dev_id, uint8_t reg_addr,
|
||
|
uint8_t *data, uint16_t len);
|
||
|
int8_t bme680_i2c_write_hal(uint8_t dev_id, uint8_t reg_addr,
|
||
|
uint8_t *data, uint16_t len);
|
||
|
#endif
|
||
|
|
||
|
#ifdef MODULE_PERIPH_SPI
|
||
|
|
||
|
int8_t bme680_spi_read_hal(uint8_t dev_id, uint8_t reg_addr,
|
||
|
uint8_t *data, uint16_t len);
|
||
|
int8_t bme680_spi_write_hal(uint8_t dev_id, uint8_t reg_addr,
|
||
|
uint8_t *data, uint16_t len);
|
||
|
#endif
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#endif /* BME680_HAL_H */
|
||
|
/** @} */
|