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.

CC2630 发射功率调整?

Other Parts Discussed in Thread: CC2630

请问:cc2630发射功率的调整?是否是下面的函数,参数如何配置?

Zstackapi_sysSetTxPowerReq(
ICall_EntityID appEntity,

zstack_sysSetTxPowerReq_t *pReq,

zstack_sysSetTxPowerRsp_t *pRsp)

谢谢。

  • zstack_sysSetTxPowerReq_t req;
    zstack_sysSetTxPowerRsp_t rsp;
    req.requestedTxPower = 2; // change to desired output power level
    Zstackapi_sysSetTxPowerReq(zswEntity, &req, &rsp);

    可以参考C:\ti\simplelink\zstack_home_1_02_02_42930\Documents\API\zstack_tirtos_api内的 Z-Stack TI-RTOS API 文档了解各个函数的使用方法

  • 您好:

            参数zstack_sysSetTxPowerReq_t req是需要设置的发射功率值(或者等级)

    那参数zstack_sysSetTxPowerRsp_t rsp;//Pointer to a place to put the response message

    /**
    * Structure to return the system TX power response.
    */
    typedef struct _zstack_syssettxpowerrsp_t
    {
    //! Actual TX power setting, in dBm
    int_least8_t txPower;
    } zstack_sysSetTxPowerRsp_t;

    还请用一个实例?