EnvironmentSensor/common.h

26 lines
538 B
C

// common.h
#ifndef COMMON_H_
#define COMMON_H_
#include "bme68x.h"
#ifdef __cplusplus
extern "C" {
#endif
/*!
* @brief Initialize the bus and hook up the read/write/delay pointers.
* @param[in,out] bme : Your bme68x_dev struct
* @param[in] intf : Must be BME68X_I2C_INTF
* @return 0 if OK, <0 on error
*/
int8_t bme68x_interface_init(struct bme68x_dev *bme, uint8_t intf);
/*!
* @brief Close the bus and clean up.
*/
void bme68x_interface_deinit(struct bme68x_dev *bme);
#ifdef __cplusplus
};
#endif
#endif // COMMON_H_