Loading...
Searching...
No Matches
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
19#ifndef BME680_HAL_H
20#define BME680_HAL_H
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26void bme680_ms_sleep(uint32_t msleep);
27
28#ifdef MODULE_PERIPH_I2C
29
30int8_t bme680_i2c_read_hal(uint8_t dev_id, uint8_t reg_addr,
31 uint8_t *data, uint16_t len);
32int8_t bme680_i2c_write_hal(uint8_t dev_id, uint8_t reg_addr,
33 uint8_t *data, uint16_t len);
34#endif
35
36#ifdef MODULE_PERIPH_SPI
37
38int8_t bme680_spi_read_hal(uint8_t dev_id, uint8_t reg_addr,
39 uint8_t *data, uint16_t len);
40int8_t bme680_spi_write_hal(uint8_t dev_id, uint8_t reg_addr,
41 uint8_t *data, uint16_t len);
42#endif
43
44#ifdef __cplusplus
45}
46#endif
47
48#endif /* BME680_HAL_H */