linux/drivers/iio/chemical/bme680.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef BME680_H_
#define BME680_H_

#define BME680_REG_CHIP_ID
#define BME680_CHIP_ID_VAL
#define BME680_REG_SOFT_RESET
#define BME680_CMD_SOFTRESET
#define BME680_REG_STATUS
#define BME680_SPI_MEM_PAGE_BIT
#define BME680_SPI_MEM_PAGE_1_VAL

#define BME680_REG_TEMP_MSB
#define BME680_REG_PRESS_MSB
#define BME680_REG_HUMIDITY_MSB
#define BME680_REG_GAS_MSB
#define BME680_REG_GAS_R_LSB
#define BME680_GAS_STAB_BIT
#define BME680_GAS_RANGE_MASK

#define BME680_REG_CTRL_HUMIDITY
#define BME680_OSRS_HUMIDITY_MASK

#define BME680_REG_CTRL_MEAS
#define BME680_OSRS_TEMP_MASK
#define BME680_OSRS_PRESS_MASK
#define BME680_MODE_MASK
#define BME680_MODE_FORCED
#define BME680_MODE_SLEEP

#define BME680_REG_CONFIG
#define BME680_FILTER_MASK
#define BME680_FILTER_COEFF_VAL

/* TEMP/PRESS/HUMID reading skipped */
#define BME680_MEAS_SKIPPED

#define BME680_MAX_OVERFLOW_VAL
#define BME680_HUM_REG_SHIFT_VAL
#define BME680_BIT_H1_DATA_MASK

#define BME680_RHRANGE_MASK
#define BME680_REG_RES_HEAT_VAL
#define BME680_RSERROR_MASK
#define BME680_REG_RES_HEAT_0
#define BME680_REG_GAS_WAIT_0
#define BME680_ADC_GAS_RES
#define BME680_AMB_TEMP

#define BME680_REG_CTRL_GAS_1
#define BME680_RUN_GAS_MASK
#define BME680_NB_CONV_MASK

#define BME680_REG_MEAS_STAT_0
#define BME680_NEW_DATA_BIT
#define BME680_GAS_MEAS_BIT
#define BME680_MEAS_BIT

#define BME680_TEMP_NUM_BYTES
#define BME680_PRESS_NUM_BYTES
#define BME680_HUMID_NUM_BYTES
#define BME680_GAS_NUM_BYTES

#define BME680_MEAS_TRIM_MASK

#define BME680_STARTUP_TIME_US

/* Calibration Parameters */
#define BME680_T2_LSB_REG
#define BME680_H2_MSB_REG
#define BME680_GH3_REG

#define BME680_CALIB_RANGE_1_LEN
#define BME680_CALIB_RANGE_2_LEN
#define BME680_CALIB_RANGE_3_LEN

extern const struct regmap_config bme680_regmap_config;

int bme680_core_probe(struct device *dev, struct regmap *regmap,
		      const char *name);

#endif  /* BME680_H_ */