This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

关于CC1310浮点数运算,以及传输和打印问题

Other Parts Discussed in Thread: CC1310

我在使用CC1310基于TI 15.4-stack协议进行通信,使用CCS导入了collector和Sensor的例程,在sensor端加入了读取外部温度数据的功能。
问题1: 现在温度数据是读取到了,我使用的是System_printf(),但是只能够打印出整数部分,小数部分打印不出来。ccs中有没有支持float的选项,如果有请详细告知。
问题2 :在传输数据时,我该用什么样的类型写到要传输的结构体中。例如:int16_t 类型的使用
Util_bufferUint16(pBuf, pMsg->tempSensor.objectTemp);来赋值。那么float类型的要用什么来赋值呢?还有这个温度值是有符号的,可以检测负值。

请各位大神帮帮忙!谢谢了!