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.

[参考译文] CC2640:找不到 Power_releaseConstraint()函数

Guru**** 2589300 points
Other Parts Discussed in Thread: SYSBIOS

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

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/603803/cc2640-could-not-find-power_releaseconstraint-function

器件型号:CC2640
Thread 中讨论的其他器件:SYSBIOS

您好!

我正在使用 simple_peripheral 示例,但找不到  Power_releaseConstraint() 函数。 我想检查 限制的状态、因为它们会阻止器件进入待机模式。

请帮助我找到它。

正在等待您的回复。

此致

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

    此外、您还可以帮助我尝试进行此实验、以验证器件是否处于待机状态。
    您可以添加以下代码来从 RTOS 电源驱动程序获取功率限制计数:
    #include
    #include

    extern volatile uint8_t ti_sysbios_family_arm_cc26xx_Power_ConstraintCounts[];
    volatile uint8_t SB_count = 0xFF;
    volatile uint8_t idle_count = 0xFF;
    SB_COUNT = ti_SYSBIOS_family_ARM_cc26xx_Power_ConstraintCount[2];// Power_SB_Disallow
    idle_count = ti_SysBIOS_family_ARM_cc26xx_Power_ConstraintCount[3];// Power_IDLE_PD_Disallow

    本质上、这些计数应始终为1或0。 除非您进行了 setConstraint 调用,否则它应该为0,然后它会变为1,并在调用发行时清除。
    因此、如果 SB_COUNT 为1、则表示它不处于睡眠模式。

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

    我会在某个时候尝试这些方法。 目前我还在做其他事情。

    此致


    Mbabas