SDK编程手册有错误/Mistake in SDK Programming Manual

thuwrx10
Posts: 10
Joined: Wed Aug 19, 2015 3:59 pm

SDK编程手册有错误/Mistake in SDK Programming Manual

Postby thuwrx10 » Mon Sep 07, 2015 4:59 pm

在第28页,介绍system_rtc_clock_cali_proc的返回值:
RTC 时钟周期,单位:微秒,bit11 ~ bit0 为小数部分(取 2 位小小数并 * 100:(RTC_CAL*100)>> 12 )

(RTC_CAL*100)>>12得到的数字的单位是什么?光年?

On page 29, return of the function system_rtc_clock_cali_proc():
RTC clock period (in us), bit11~ bit0 are decimal. ((RTC_CAL * 100)>> 12 )

What's the unit of (RTC_CAL * 100)>> 12? Light year I think?

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: SDK编程手册有错误/Mistake in SDK Programming Manual

Postby ESP_Faye » Thu Sep 10, 2015 10:32 am

您好,

system_rtc_clock_cali_proc 的返回值 bit11 ~ bit0 为小数部分
因此,
如需取整,则为 system_rtc_clock_cali_proc()>>12
如需保留 2 位小数部分,则为 (system_rtc_clock_cali_proc() x 100)>>12

感谢您的热心反馈,我们将更新文档,以便于理解。

thuwrx10
Posts: 10
Joined: Wed Aug 19, 2015 3:59 pm

Re: SDK编程手册有错误/Mistake in SDK Programming Manual

Postby thuwrx10 » Fri Sep 11, 2015 9:32 am

Espressif_Faye wrote:您好,

system_rtc_clock_cali_proc 的返回值 bit11 ~ bit0 为小数部分
因此,
如需取整,则为 system_rtc_clock_cali_proc()>>12
如需保留 2 位小数部分,则为 (system_rtc_clock_cali_proc() x 100)>>12

感谢您的热心反馈,我们将更新文档,以便于理解。


还是直接说system_rtc_clock_cali_proc返回值的单位是1/4096微秒比较好。

Who is online

Users browsing this forum: No registered users and 34 guests