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.

[参考译文] CC2745R10-Q1:关于 SDK9.10中的 l2capDataEvent_t 结构

Guru**** 2318830 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1523373/cc2745r10-q1-about-the-l2capdataevent_t-structure-in-sdk9-10

器件型号:CC2745R10-Q1

工具/软件:

你(们)好

请告诉我有关 SDK9.10中 l2capDataEvent_t 结构的信息。

与 SDK8.30不同的是、在 SDK9.10的源代码中、结构"l2capDataEvent_t"的成员"connHandle"已被删除、但它仍存在于文档中。

在理解源代码中的信息正确时、我是否正确?

如果是、请告诉我为什么删除它。

[simplelink_lowpower_f3_SDK_9_10_00_83\source\ti\ble/host/l2cap/l2cap.h]

[simplelink_lowpower_f3_SDK_9_10_00_83/docs/ble5stack/ble_user_guide/doxygen/ble/html/struct2CAP_DATA_event__t.html]

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好:

     l2capDataEvent_t  包含另一个结构 l2capPacket_t  、该结构包含连接句柄:

    /// @brief L2CAP packet structure.
    typedef struct
    {
      uint16 connHandle; //!< connection handle
      uint16 CID;        //!< local channel id
      uint8 *pPayload;   //!< pointer to information payload. This contains the payload
                         //!< received from the upper layer protocol (outgoing packet),
                         //!< or delivered to the upper layer protocol (incoming packet).
      uint16 len;        //!< length of information payload
    } l2capPacket_t;
    
    /**
     * @brief OSAL L2CAP_DATA_EVENT message format.
     *
     * This message is used to forward an
     * incoming data packet up to an upper layer application.
     *
     * @note
     * Received packet 'pPayload' must be freed using BM_free().
     *
     */
    typedef struct
    {
      osal_event_hdr_t hdr; //!< L2CAP_DATA_EVENT and status
      l2capPacket_t pkt;    //!< received packet
    } l2capDataEvent_t;

    这是 API 文档中的一个错误、应在下一版本中修复。

    此致、

    Nima Behmanesh

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    嗨、Nima、

    感谢您的回答。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    嗨、Nima、

    感谢您的回答。