Hi Vamsi1,
You could strictly refer BME68X sensor API, and see the gas resistance value.
/* This internal API is used to read variant ID information from the register */ static int8_t read_variant_id(struct bme68x_dev *dev) { int8_t rslt; uint8_t reg_data = 0;
/* Read variant ID information register */ rslt = bme68x_get_regs(BME68X_REG_VARIANT_ID, ®_data, 1, dev);
if (rslt == BME68X_OK) { dev->variant_id = reg_data; }
return rslt; }
if (dev->variant_id == BME68X_VARIANT_GAS_HIGH) { data[i]->gas_resistance = calc_gas_resistance_high(adc_gas_res_high, gas_range_h); } else { data[i]->gas_resistance = calc_gas_resistance_low(adc_gas_res_low, gas_range_l, dev); }
... View more