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 BM6880_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_REG_RES_HEAT_RANGE
#define BME680_RHRANGE_MASK
#define BME680_REG_RES_HEAT_VAL
#define BME680_REG_RANGE_SW_ERR
#define BME680_RSERROR_MASK
#define BME680_REG_RES_HEAT_0
#define BME680_REG_GAS_WAIT_0
#define BME680_ADC_GAS_RES_SHIFT
#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

/* Calibration Parameters */
#define BME680_T2_LSB_REG
#define BME680_T3_REG
#define BME680_P1_LSB_REG
#define BME680_P2_LSB_REG
#define BME680_P3_REG
#define BME680_P4_LSB_REG
#define BME680_P5_LSB_REG
#define BME680_P7_REG
#define BME680_P6_REG
#define BME680_P8_LSB_REG
#define BME680_P9_LSB_REG
#define BME680_P10_REG
#define BME680_H2_LSB_REG
#define BME680_H2_MSB_REG
#define BME680_H1_MSB_REG
#define BME680_H1_LSB_REG
#define BME680_H3_REG
#define BME680_H4_REG
#define BME680_H5_REG
#define BME680_H6_REG
#define BME680_H7_REG
#define BME680_T1_LSB_REG
#define BME680_GH2_LSB_REG
#define BME680_GH1_REG
#define BME680_GH3_REG

extern const struct regmap_config bme680_regmap_config;

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

#endif  /* BME680_H_ */