06-14-2022 10:10 AM - edited 06-14-2022 10:10 AM
Hi all,
I'm working with an BMP384 but I have question about temp/press compensation. In the datasheet at page 55 I have this
To parse calib data I have this function
So if I understand well the par_t1 is not good in my function I should do for par_t1
06-14-2022 10:25 AM
Hi simon8 ,
par_t1 is 16 bit variable, BMP3_CONCAT_BYTES merge two reg_data[1], reg_data[0] 8 bit variable to par_t1 16 bit variable.
#define BMP3_CONCAT_BYTES(msb, lsb) (((uint16_t)msb << 😎 | (uint16_t)lsb)
06-14-2022 10:39 AM
Ah nice right now I have this definition 😁
#define BMP3_CONCAT_BYTES(msb, lsb) (((uint16_t)msb << 8) | (uint16_t)lsb)
06-14-2022 10:51 AM
Yes, correct.