staticbool bme280_is_writeable_reg(struct device *dev, unsignedint reg)
{ switch (reg) { case BMP280_REG_CONFIG: case BME280_REG_CTRL_HUMIDITY: case BMP280_REG_CTRL_MEAS: case BMP280_REG_RESET: returntrue; default: returnfalse;
}
}
staticbool bmp280_is_writeable_reg(struct device *dev, unsignedint reg)
{ switch (reg) { case BMP280_REG_CONFIG: case BMP280_REG_CTRL_MEAS: case BMP280_REG_RESET: returntrue; default: returnfalse;
}
}
staticbool bmp280_is_volatile_reg(struct device *dev, unsignedint reg)
{ switch (reg) { case BMP280_REG_TEMP_XLSB: case BMP280_REG_TEMP_LSB: case BMP280_REG_TEMP_MSB: case BMP280_REG_PRESS_XLSB: case BMP280_REG_PRESS_LSB: case BMP280_REG_PRESS_MSB: case BMP280_REG_STATUS: returntrue; default: returnfalse;
}
}
staticbool bme280_is_volatile_reg(struct device *dev, unsignedint reg)
{ switch (reg) { case BME280_REG_HUMIDITY_LSB: case BME280_REG_HUMIDITY_MSB: case BMP280_REG_TEMP_XLSB: case BMP280_REG_TEMP_LSB: case BMP280_REG_TEMP_MSB: case BMP280_REG_PRESS_XLSB: case BMP280_REG_PRESS_LSB: case BMP280_REG_PRESS_MSB: case BMP280_REG_STATUS: returntrue; default: returnfalse;
}
} staticbool bmp380_is_writeable_reg(struct device *dev, unsignedint reg)
{ switch (reg) { case BMP380_REG_CMD: case BMP380_REG_CONFIG: case BMP380_REG_FIFO_CONFIG_1: case BMP380_REG_FIFO_CONFIG_2: case BMP380_REG_FIFO_WATERMARK_LSB: case BMP380_REG_FIFO_WATERMARK_MSB: case BMP380_REG_POWER_CONTROL: case BMP380_REG_INT_CONTROL: case BMP380_REG_IF_CONFIG: case BMP380_REG_ODR: case BMP380_REG_OSR: returntrue; default: returnfalse;
}
}
staticbool bmp380_is_volatile_reg(struct device *dev, unsignedint reg)
{ switch (reg) { case BMP380_REG_TEMP_XLSB: case BMP380_REG_TEMP_LSB: case BMP380_REG_TEMP_MSB: case BMP380_REG_PRESS_XLSB: case BMP380_REG_PRESS_LSB: case BMP380_REG_PRESS_MSB: case BMP380_REG_SENSOR_TIME_XLSB: case BMP380_REG_SENSOR_TIME_LSB: case BMP380_REG_SENSOR_TIME_MSB: case BMP380_REG_INT_STATUS: case BMP380_REG_FIFO_DATA: case BMP380_REG_STATUS: case BMP380_REG_ERROR: case BMP380_REG_EVENT: returntrue; default: returnfalse;
}
}
staticbool bmp580_is_writeable_reg(struct device *dev, unsignedint reg)
{ switch (reg) { case BMP580_REG_NVM_DATA_MSB: case BMP580_REG_NVM_DATA_LSB: case BMP580_REG_NVM_ADDR: case BMP580_REG_ODR_CONFIG: case BMP580_REG_OSR_CONFIG: case BMP580_REG_INT_SOURCE: case BMP580_REG_INT_CONFIG: case BMP580_REG_OOR_THR_MSB: case BMP580_REG_OOR_THR_LSB: case BMP580_REG_OOR_CONFIG: case BMP580_REG_OOR_RANGE: case BMP580_REG_IF_CONFIG: case BMP580_REG_FIFO_CONFIG: case BMP580_REG_FIFO_SEL: case BMP580_REG_DSP_CONFIG: case BMP580_REG_DSP_IIR: case BMP580_REG_CMD: returntrue; default: returnfalse;
}
}
staticbool bmp580_is_volatile_reg(struct device *dev, unsignedint reg)
{ switch (reg) { case BMP580_REG_NVM_DATA_MSB: case BMP580_REG_NVM_DATA_LSB: case BMP580_REG_FIFO_COUNT: case BMP580_REG_INT_STATUS: case BMP580_REG_PRESS_XLSB: case BMP580_REG_PRESS_LSB: case BMP580_REG_PRESS_MSB: case BMP580_REG_FIFO_DATA: case BMP580_REG_TEMP_XLSB: case BMP580_REG_TEMP_LSB: case BMP580_REG_TEMP_MSB: case BMP580_REG_EFF_OSR: case BMP580_REG_STATUS: returntrue; default: returnfalse;
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.