192uint8_t 
bme680_gas_read(
float idac_ma, 
float degree_celsius, uint16_t gas_wait_ms, uint8_t index,
 
  193                        float *temperature, 
float *pressure, 
float *humidity_percentage, 
float *ohms)
 
  197    uint32_t temperature_yaw;
 
  198    uint32_t pressure_yaw;
 
  199    uint32_t humidity_raw;
 
  254    if (
bme680_read(&gs_handle, (uint32_t *)&temperature_yaw, 
 
  255                    temperature, (uint32_t *)&pressure_yaw, pressure,
 
  256                   (uint32_t *)&humidity_raw, humidity_percentage,
 
  257                    &adc_raw, &adc_range, ohms, &index_check) != 0)
 
  263    if (index_check != index)
 
 
driver bme680 gas header file
uint8_t bme680_set_run_gas(bme680_handle_t *handle, bme680_bool_t enable)
enable or disable run gas
uint8_t bme680_gas_wait_convert_to_register(bme680_handle_t *handle, uint16_t ms, uint8_t *reg)
convert the gas wait to the register raw data
uint8_t bme680_set_filter(bme680_handle_t *handle, bme680_filter_t filter)
set filter
uint8_t bme680_read(bme680_handle_t *handle, uint32_t *temperature_raw, float *temperature_c, uint32_t *pressure_raw, float *pressure_pa, uint32_t *humidity_raw, float *humidity_percentage, uint16_t *adc_raw, uint8_t *adc_range, float *ohms, uint8_t *index)
read the temperature pressure humidity and gas resistance
uint8_t bme680_deinit(bme680_handle_t *handle)
close the chip
uint8_t bme680_set_temperature_oversampling(bme680_handle_t *handle, bme680_oversampling_t oversampling)
set temperature oversampling
uint8_t bme680_set_heat_off(bme680_handle_t *handle, bme680_bool_t enable)
enable or disable heat off
uint8_t bme680_set_interface(bme680_handle_t *handle, bme680_interface_t interface)
set the interface
uint8_t bme680_set_idac_heat(bme680_handle_t *handle, uint8_t index, uint8_t reg)
set idac heat
uint8_t bme680_set_convert_index(bme680_handle_t *handle, uint8_t index)
set convert index
bme680_interface_t
bme680 interface enumeration definition
uint8_t bme680_set_resistance_heat(bme680_handle_t *handle, uint8_t index, uint8_t reg)
set resistance heat
uint8_t bme680_set_gas_wait(bme680_handle_t *handle, uint8_t index, uint8_t reg)
set gas wait
uint8_t bme680_resistance_heat_convert_to_register(bme680_handle_t *handle, float degree_celsius, uint8_t *reg)
convert the resistance heat to the register raw data
uint8_t bme680_init(bme680_handle_t *handle)
initialize the chip
bme680_address_t
bme680 address enumeration definition
uint8_t bme680_idac_heat_convert_to_register(bme680_handle_t *handle, float ma, uint8_t *reg)
convert the idac heat to the register raw data
uint8_t bme680_set_spi_wire(bme680_handle_t *handle, bme680_spi_wire_t spi)
set spi wire
uint8_t bme680_set_addr_pin(bme680_handle_t *handle, bme680_address_t addr_pin)
set the iic address pin
uint8_t bme680_set_pressure_oversampling(bme680_handle_t *handle, bme680_oversampling_t oversampling)
set pressure oversampling
uint8_t bme680_set_mode(bme680_handle_t *handle, bme680_mode_t mode)
set mode
struct bme680_handle_s bme680_handle_t
bme680 handle structure definition
uint8_t bme680_set_humidity_oversampling(bme680_handle_t *handle, bme680_oversampling_t oversampling)
set humidity oversampling
uint8_t bme680_gas_deinit(void)
gas example deinit
uint8_t bme680_gas_read(float idac_ma, float degree_celsius, uint16_t gas_wait_ms, uint8_t index, float *temperature, float *pressure, float *humidity_percentage, float *ohms)
gas example read
#define BME680_GAS_DEFAULT_FILTER
uint8_t bme680_gas_init(bme680_interface_t interface, bme680_address_t addr_pin)
gas example init
#define BME680_GAS_DEFAULT_TEMPERATURE_OVERSAMPLING
bme680 gas example default definition
#define BME680_GAS_DEFAULT_PRESSURE_OVERSAMPLING
#define BME680_GAS_DEFAULT_SPI_WIRE
#define BME680_GAS_DEFAULT_HUMIDITY_OVERSAMPLING
uint8_t bme680_interface_spi_read(uint8_t reg, uint8_t *buf, uint16_t len)
interface spi bus read
void bme680_interface_debug_print(const char *const fmt,...)
interface print format data
uint8_t bme680_interface_iic_init(void)
interface iic bus init
uint8_t bme680_interface_spi_write(uint8_t reg, uint8_t *buf, uint16_t len)
interface spi bus write
uint8_t bme680_interface_iic_read(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)
interface iic bus read
void bme680_interface_delay_ms(uint32_t ms)
interface delay ms
uint8_t bme680_interface_spi_init(void)
interface spi bus init
uint8_t bme680_interface_iic_deinit(void)
interface iic bus deinit
uint8_t bme680_interface_iic_write(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)
interface iic bus write
uint8_t bme680_interface_spi_deinit(void)
interface spi bus deinit
#define DRIVER_BME680_LINK_IIC_WRITE(HANDLE, FUC)
link iic_write function
#define DRIVER_BME680_LINK_IIC_READ(HANDLE, FUC)
link iic_read function
#define DRIVER_BME680_LINK_IIC_INIT(HANDLE, FUC)
link iic_init function
#define DRIVER_BME680_LINK_DEBUG_PRINT(HANDLE, FUC)
link debug_print function
#define DRIVER_BME680_LINK_SPI_INIT(HANDLE, FUC)
link spi_init function
#define DRIVER_BME680_LINK_INIT(HANDLE, STRUCTURE)
initialize bme680_handle_t structure
#define DRIVER_BME680_LINK_SPI_DEINIT(HANDLE, FUC)
link spi_deinit function
#define DRIVER_BME680_LINK_SPI_WRITE(HANDLE, FUC)
link spi_write function
#define DRIVER_BME680_LINK_IIC_DEINIT(HANDLE, FUC)
link iic_deinit function
#define DRIVER_BME680_LINK_DELAY_MS(HANDLE, FUC)
link delay_ms function
#define DRIVER_BME680_LINK_SPI_READ(HANDLE, FUC)
link spi_read function