Hello oxolotol,
It is 24Bit pressure data, split and storeed in three consecutive registers. You could see it from data sheet.
In Github code, there was example code that convert register value to pressure value. /*! * @brief This internal API is used to parse the pressure or temperature or * both the data and store it in the bmp3_uncomp_data structure instance. */ static void parse_sensor_data(const uint8_t *reg_data, struct bmp3_uncomp_data *uncomp_data) { /* Temporary variables to store the sensor data */ uint32_t data_xlsb; uint32_t data_lsb; uint32_t data_msb;
/* Store the parsed register values for pressure data */ data_xlsb = (uint32_t)reg_data[0]; data_lsb = (uint32_t)reg_data[1] << 8; data_msb = (uint32_t)reg_data[2] << 16; uncomp_data->pressure = data_msb | data_lsb | data_xlsb;
... }
... View more