bme680_hal.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2018 Mesotic SAS
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
9 #pragma once
10 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 void bme680_ms_sleep(uint32_t msleep);
26 
27 #ifdef MODULE_PERIPH_I2C
28 
29 int8_t bme680_i2c_read_hal(uint8_t dev_id, uint8_t reg_addr,
30  uint8_t *data, uint16_t len);
31 int8_t bme680_i2c_write_hal(uint8_t dev_id, uint8_t reg_addr,
32  uint8_t *data, uint16_t len);
33 #endif
34 
35 #ifdef MODULE_PERIPH_SPI
36 
37 int8_t bme680_spi_read_hal(uint8_t dev_id, uint8_t reg_addr,
38  uint8_t *data, uint16_t len);
39 int8_t bme680_spi_write_hal(uint8_t dev_id, uint8_t reg_addr,
40  uint8_t *data, uint16_t len);
41 #endif
42 
43 #ifdef __cplusplus
44 }
45 #endif
46