c13dof 2.0.0.0
|
Topics | |
MikroBUS | |
Error Code | |
BMM150 Registers | |
BMI088 Registers | |
Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.
#define C13DOF_BME680_ADDR_GAS_CONF_START 0x64 |
#define C13DOF_BME680_ADDR_RANGE_SW_ERR_ADDR 0x04 |
#define C13DOF_BME680_ADDR_RES_HEAT_RANGE_ADDR 0x02 |
#define C13DOF_BME680_ADDR_RES_HEAT_VAL_ADDR 0x00 |
#define C13DOF_BME680_ADDR_SENS_CONF_START 0x5A |
#define C13DOF_BME680_BIT_H1_DATA_MSK 0x0F |
#define C13DOF_BME680_CHIP_ID 0x61 |
#define C13DOF_BME680_CHIP_ID_ADDR 0xD0 |
#define C13DOF_BME680_COEFF_ADDR1 0x89 |
#define C13DOF_BME680_COEFF_ADDR1_LEN 25 |
#define C13DOF_BME680_COEFF_ADDR2 0xe1 |
#define C13DOF_BME680_COEFF_ADDR2_LEN 16 |
#define C13DOF_BME680_COEFF_SIZE 41 |
#define C13DOF_BME680_CONF_HEAT_CTRL_ADDR 0x70 |
#define C13DOF_BME680_CONF_ODR_FILT_ADDR 0x75 |
#define C13DOF_BME680_CONF_ODR_RUN_GAS_NBC_ADDR 0x71 |
#define C13DOF_BME680_CONF_OS_H_ADDR 0x72 |
#define C13DOF_BME680_CONF_T_P_MODE_ADDR 0x74 |
#define C13DOF_BME680_DATA_HUMIDITY 0x03 |
#define C13DOF_BME680_DATA_PRESSURE 0x02 |
#define C13DOF_BME680_DATA_TEMPERATURE 0x01 |
#define C13DOF_BME680_DEVICE_ERROR 1 |
#define C13DOF_BME680_DEVICE_OK 0 |
#define C13DOF_BME680_DEVICE_SLAVE_ADDR_0 0x76 |
#define C13DOF_BME680_DEVICE_SLAVE_ADDR_1 0x77 |
#define C13DOF_BME680_DISABLE_GAS_MEAS 0x00 |
#define C13DOF_BME680_DISABLE_HEATER 0x08 |
#define C13DOF_BME680_E_COM_FAIL -2 |
#define C13DOF_BME680_E_DEV_NOT_FOUND -3 |
#define C13DOF_BME680_E_INVALID_LENGTH -4 |
#define C13DOF_BME680_E_NULL_PTR -1 |
#define C13DOF_BME680_ENABLE_GAS_MEAS 0x01 |
#define C13DOF_BME680_ENABLE_HEATER 0x00 |
#define C13DOF_BME680_ERROR 0x00 |
#define C13DOF_BME680_FIELD0_ADDR 0x1D |
#define C13DOF_BME680_FIELD_ADDR_OFFSET 17 |
#define C13DOF_BME680_FIELD_DATA_LENGTH 3 |
#define C13DOF_BME680_FIELD_LENGTH 15 |
#define C13DOF_BME680_FILTER_MSK 0X1C |
#define C13DOF_BME680_FILTER_POS 2 |
#define C13DOF_BME680_FILTER_SEL 16 |
#define C13DOF_BME680_FILTER_SIZE_0 0 |
#define C13DOF_BME680_FILTER_SIZE_1 1 |
#define C13DOF_BME680_FILTER_SIZE_127 7 |
#define C13DOF_BME680_FILTER_SIZE_15 4 |
#define C13DOF_BME680_FILTER_SIZE_3 2 |
#define C13DOF_BME680_FILTER_SIZE_31 5 |
#define C13DOF_BME680_FILTER_SIZE_63 6 |
#define C13DOF_BME680_FILTER_SIZE_7 3 |
#define C13DOF_BME680_FORCED_MODE 1 |
#define C13DOF_BME680_GAS_INDEX_MSK 0x0f |
#define C13DOF_BME680_GAS_MEAS_MSK 0x30 |
#define C13DOF_BME680_GAS_MEAS_POS 4 |
#define C13DOF_BME680_GAS_MEAS_SEL 8 |
#define C13DOF_BME680_GAS_RANGE_MSK 0x0f |
#define C13DOF_BME680_GAS_REG_BUF_LENGTH 20 |
#define C13DOF_BME680_GAS_SENSOR_SEL |
#define C13DOF_BME680_GAS_WAIT0_ADDR 0x64 |
#define C13DOF_BME680_GASM_VALID_MSK 0x20 |
#define C13DOF_BME680_GH1_REG 37 |
#define C13DOF_BME680_GH2_LSB_REG 35 |
#define C13DOF_BME680_GH2_MSB_REG 36 |
#define C13DOF_BME680_GH3_REG 38 |
#define C13DOF_BME680_H1_LSB_REG 26 |
#define C13DOF_BME680_H1_MSB_REG 27 |
#define C13DOF_BME680_H2_LSB_REG 26 |
#define C13DOF_BME680_H2_MSB_REG 25 |
#define C13DOF_BME680_H3_REG 28 |
#define C13DOF_BME680_H4_REG 29 |
#define C13DOF_BME680_H5_REG 30 |
#define C13DOF_BME680_H6_REG 31 |
#define C13DOF_BME680_H7_REG 32 |
#define C13DOF_BME680_HCNTRL_SEL 32 |
#define C13DOF_BME680_HCTRL_MSK 0x08 |
#define C13DOF_BME680_HEAT_STAB_MSK 0x10 |
#define C13DOF_BME680_HUM_REG_SHIFT_VAL 4 |
#define C13DOF_BME680_I_MAX_CORRECTION 2 |
#define C13DOF_BME680_I_MIN_CORRECTION 1 |
#define C13DOF_BME680_MAX_OVERFLOW_VAL 0x40000000 |
#define C13DOF_BME680_MEM_PAGE0 0x10 |
#define C13DOF_BME680_MEM_PAGE1 0x00 |
#define C13DOF_BME680_MEM_PAGE_ADDR 0xf3 |
#define C13DOF_BME680_MEM_PAGE_MSK 0x10 |
#define C13DOF_BME680_MODE_MSK 0x03 |
#define C13DOF_BME680_NBCONV_MAX 10 |
#define C13DOF_BME680_NBCONV_MIN 0 |
#define C13DOF_BME680_NBCONV_MSK 0X0F |
#define C13DOF_BME680_NBCONV_SEL 128 |
#define C13DOF_BME680_NEW_DATA_MSK 0x80 |
#define C13DOF_BME680_OK 0x01 |
#define C13DOF_BME680_OS_16X 5 |
#define C13DOF_BME680_OS_1X 1 |
#define C13DOF_BME680_OS_2X 2 |
#define C13DOF_BME680_OS_4X 3 |
#define C13DOF_BME680_OS_8X 4 |
#define C13DOF_BME680_OS_NONE 0 |
#define C13DOF_BME680_OSH_MSK 0X07 |
#define C13DOF_BME680_OSH_SEL 4 |
#define C13DOF_BME680_OSP_MSK 0X1C |
#define C13DOF_BME680_OSP_POS 2 |
#define C13DOF_BME680_OSP_SEL 2 |
#define C13DOF_BME680_OST_MSK 0XE0 |
#define C13DOF_BME680_OST_POS 5 |
#define C13DOF_BME680_OST_SEL 1 |
#define C13DOF_BME680_P10_REG 23 |
#define C13DOF_BME680_P1_LSB_REG 5 |
#define C13DOF_BME680_P1_MSB_REG 6 |
#define C13DOF_BME680_P2_LSB_REG 7 |
#define C13DOF_BME680_P2_MSB_REG 8 |
#define C13DOF_BME680_P3_REG 9 |
#define C13DOF_BME680_P4_LSB_REG 11 |
#define C13DOF_BME680_P4_MSB_REG 12 |
#define C13DOF_BME680_P5_LSB_REG 13 |
#define C13DOF_BME680_P5_MSB_REG 14 |
#define C13DOF_BME680_P6_REG 16 |
#define C13DOF_BME680_P7_REG 15 |
#define C13DOF_BME680_P8_LSB_REG 19 |
#define C13DOF_BME680_P8_MSB_REG 20 |
#define C13DOF_BME680_P9_LSB_REG 21 |
#define C13DOF_BME680_P9_MSB_REG 22 |
#define C13DOF_BME680_REG_BUFFER_LENGTH 6 |
#define C13DOF_BME680_REG_FILTER_INDEX 5 |
#define C13DOF_BME680_REG_HCTRL_INDEX 0 |
#define C13DOF_BME680_REG_HUM_INDEX 2 |
#define C13DOF_BME680_REG_NBCONV_INDEX 1 |
#define C13DOF_BME680_REG_PRES_INDEX 4 |
#define C13DOF_BME680_REG_RUN_GAS_INDEX 1 |
#define C13DOF_BME680_REG_TEMP_INDEX 4 |
#define C13DOF_BME680_RES_HEAT0_ADDR 0x5A |
#define C13DOF_BME680_RESET_PERIOD 10 |
#define C13DOF_BME680_RHRANGE_MSK 0x30 |
#define C13DOF_BME680_RSERROR_MSK 0xf0 |
#define C13DOF_BME680_RUN_GAS_DISABLE 0 |
#define C13DOF_BME680_RUN_GAS_ENABLE 1 |
#define C13DOF_BME680_RUN_GAS_MSK 0x10 |
#define C13DOF_BME680_RUN_GAS_POS 4 |
#define C13DOF_BME680_RUN_GAS_SEL 64 |
#define C13DOF_BME680_SLEEP_MODE 0 |
#define C13DOF_BME680_SOFT_RESET_ADDR 0xE0 |
#define C13DOF_BME680_SOFT_RESET_CMD 0xB6 |
#define C13DOF_BME680_SPI_RD_MSK 0x80 |
#define C13DOF_BME680_SPI_WR_MSK 0x7f |
#define C13DOF_BME680_T1_LSB_REG 33 |
#define C13DOF_BME680_T1_MSB_REG 34 |
#define C13DOF_BME680_T2_LSB_REG 1 |
#define C13DOF_BME680_T2_MSB_REG 2 |
#define C13DOF_BME680_T3_REG 3 |
#define C13DOF_BME680_TMP_BUFFER_LENGTH 40 |
#define C13DOF_BME680_W_DEFINE_PWR_MODE 1 |
#define C13DOF_BME680_W_NO_NEW_DATA 2 |
#define C13DOF_POLL_PERIOD_MS 10 |