标签:void convert proc 二进制 oat tmp process ble temp
//first High second Low
void process32BitConvertToDouble6Bit(float source,uint16_t &first,uint16_t &second)
{
uint32_t v_tmp;
qDebug() << v_tmp;
v_tmp = *(int *)&source;
uint16_t firstTemp=v_tmp >> 16;;
uint16_t secondTemp=v_tmp & ~(0xFFFF<<16);
first = firstTemp;
second = secondTemp;
}
标签:void convert proc 二进制 oat tmp process ble temp
原文地址:https://www.cnblogs.com/ShiShouTHS/p/12134186.html