GpioChangeCount似乎报告读取时间而不是引脚电平变化的时间 [英] GpioChangeCount seems to report time of read and not time of pin level change

查看:64
本文介绍了GpioChangeCount似乎报告读取时间而不是引脚电平变化的时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我正在尝试对超声测距设备进行编码。

I am trying to Code a ultrasound ranging device.

我的触发器例程每隔500毫秒调用一次。

My trigger Routine is beeing invoked every 500ms.

        private void URTrigger()

        {
        private void URTrigger()
        {

推荐答案

亲爱的朋友,

根据MSDN上的文档:
GpioChangeCount
,那里我们需要注意两件事。

According to the docs on MSDN: GpioChangeCount , there are two things we need to pay attention to.

首先, Windows 10 Creators Update(引入v10.0.15063.0)支持此功能。

其次,"
GpioChangeCount
结构,包含计数和关联的时间戳。"所以,也许我们应该检查这个计数的抽样时间。

Second, "A GpioChangeCount structure containing a count and an associated timestamp." So, maybe we should check the time at which this count was sampled.


这篇关于GpioChangeCount似乎报告读取时间而不是引脚电平变化的时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆