我有以下代码,我刚刚将一些数据从外部 RAM 复制到 MCU 到一个称为“数据”的缓冲区中
double p32 = 4.294967296e+009; /// equals to 2^32 in decimal notation
int32_t longhigh;
uint32_t longlow;
offset = mapdata(); //Points to the data I want, 55 bit fixed point on HW
longhigh = data[2*offset+1]; //Gets upperpart of data
longlow = data[2*offset]; //Gets lower part
double floating = (longhigh*p32 + longlow); // What is this doing? How does it work?
有人可以为我解释最后一行代码吗?为什么我们要乘以 p32?谢谢。