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.

[参考译文] CC3220:如何读取系统正常运行时间?

Guru**** 2577385 points


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

https://e2e.ti.com/support/wireless-connectivity/wi-fi-group/wifi/f/wi-fi-forum/712563/cc3220-how-can-we-read-the-system-up-time

器件型号:CC3220

有一个预定义的 Get 令牌 __sl_G_S.A 将返回系统运行时间。 是否有 sl_DeviceGet ()或类似函数可返回系统运行时间? 我们是否需要自己跟踪时间?

感谢您的任何帮助!

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

    不能、无法从 Simplelink 主机驱动程序 API 中检索此精确值。 它基于 RTC 值。 网络处理器仅在初始化网络处理器时存储 RTC 的起始值、然后在返回系统正常运行时间时从当前 RTC 值中减去该值。 如果你真的想知道这个值(网络处理器运行时间),我建议你通过在调用 sl_Start()时检查 RTC 的值,然后在需要时参考 RTC 来自己跟踪它。

    此致、
    本·M