First test draft

This commit is contained in:
2019-10-17 23:18:18 +02:00
parent cff98762be
commit 45b3678606
6 changed files with 232 additions and 146 deletions

22
include/meas.h Normal file
View File

@@ -0,0 +1,22 @@
#ifndef __MEAS_H__
#define __MEAS_H__
#include <bme680_defs.h>
#include <stdbool.h>
/**
* @brief Initialize sensor
* @return 0 if successful
*/
int meas_init_without_gas(void);
/**
* @brief Do a single measurement
* @param gas_enable select if gas measurement should be done
* @param meas_data read data
* @param ambient_temp Ambient Temperature
* @return 0 if successful
*/
int meas_do(bool gas_enable, struct bme680_field_data *meas_data, int8_t ambient_temp);
#endif /* __MEAS_H__ */