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: 射频同步数据包接收例程中有关射频数据的结构格式问题

Part Number: CC1310

本人在阅读射频同步数据包接收例程(rfSynchronizedPacketRx_CC1310_LAUNCHXL_tirtos_ccs)时,无法理解其中对于data entry的pData变量的定义的含义

在我理解中例程中定义的rxBuffer内的前0-7位应该存着射频数据的数据格式的相关信息,如果不是,则有关rxBuffer变量的+8个字节的含义我将无法理解。

射频数据条目指针结果体的定义按照手册如下图所示:

并且即便是rxBuffer是为了存放packet信息单独开辟的地址空间,我为什么其中第0位保存的是数据包的length信息?

可能问题有些基础,感觉自己的思维有些钻牛角尖,但还希望大佬们可以对本人的疑惑略指点一二,非常感谢!

  • 您好,

    收到您的问题了,我们升级到英文论坛给工程师看下,有答复尽快给到您。

  • 您好,

    您可以参考一下TRM的第 23.7.4.1章节(https://www.ti.com/lit/ug/swcu117i/swcu117i.pdf)。

    接收缓冲区的内容在上面提到的 TRM 部分中进行了描述。见从TRM截取的下图:

    对于 RF 同步数据包 RX 示例(为还原使用英语):

    • Since "rxItem.config.lenSz = 0;" the "Element length" field will not be part of the receive buffer.
    • Since "RF_cmdPropRx.rxConf.bIncludeHdr = true;" and since it is a CMD_PROP_RX command, the "Header/length byte" field will be one byte containing the length of the packet.
    • Since "rxConf.bIncludeCrc = 0x0" the "Received CRC" field will not be part of the receive buffer.
    • Since "rxConf.bAppendRssi = 0x0" the "RSSI" field will not be part of the receive buffer.
    • Since "rxConf.bAppendStatus = 0x1" the "Status" field will be included in the receive buffer.

    这意味着对于 RF 同步数据包 RX 示例,接收缓冲区的结构如下:
    • rxBuffer[0]: Length byte
    • rxBuffer[1], rxBuffer[2], ..., rxBuffer[9]: Payload
    • rxBuffer[10], rxBuffer[11], rxBuffer[12], rxBuffer[13]: Timestamp
    • rxBuffer[14]: Status

    我不是很明白什么是 rxBuffer 的长度包括“+8”。如果这是一个重要问题,我需要去咨询专家。