TI中文支持网
TI专业的中文技术问题搜集分享网站

cc1310 absTime的使用

  if(txBurstSize++ >= RFEASYLINKTX_BURST_SIZE){/* Set Tx absolute time to current time + 1s */txPacket.absTime = absTime + EasyLink_ms_To_RadioTime(10);txBurstSize = 0;}/* Else set the next packet in burst to Tx in 100ms */else{/* Set Tx absolute time to current time + 100ms */txPacket.absTime = absTime + EasyLink_ms_To_RadioTime(10);}
EasyLink_ms_To_RadioTime(10) 后面这个值如何设定,设的太长感觉实时性不好,设的太短数据接收不完整,所以想问这个值的设定有什么要求和规定吗?
Alvin Chen:

Absolute time to Tx packet (0 for immediate)
也就是说abstime 等于0时则为不等待,

但是这个值最大不能超过发送间隔。

user5855964:

回复 Alvin Chen:

不好意思,没太理解你的意思,是不是发一包数据的时间假如100ms 这个值是不是最好设置为大于或等于100ms了

Alvin Chen:

回复 user5855964:

Absolute time to turn on Rx (0 for immediate). When a packet is Received this will be over written with the Radio Time that packet was Received, this can be used in conjunction with the EasyLink_getAbsTime API which gets the current radio time.

user5855964:

回复 Alvin Chen:

可不可以通俗点,这个值一般如何设定能达到理想程度,和传输速率是不是有关

Viki Shi:

回复 user5855964:

abstime是定义命令执行的时间,值为零0则立刻执行,不为零就delay相应的时间。

赞(0)
未经允许不得转载:TI中文支持网 » cc1310 absTime的使用
分享到: 更多 (0)