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
9#pragma once
10
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25void bme680_ms_sleep(uint32_t msleep);
26
27#ifdef MODULE_PERIPH_I2C
28
29int8_t bme680_i2c_read_hal(uint8_t dev_id, uint8_t reg_addr,
30 uint8_t *data, uint16_t len);
31int8_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
37int8_t bme680_spi_read_hal(uint8_t dev_id, uint8_t reg_addr,
38 uint8_t *data, uint16_t len);
39int8_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