【问题标题】:about Controlling GPIO in CP210x C#关于在 CP210x C# 中控制 GPIO
【发布时间】:2020-10-16 01:03:57
【问题描述】:

我正在尝试通过参考下面的链接来控制 CP2108-EK。

Controlling GPIO in CP210x C#

而当我打开一个消息框,查看方法的返回值时,就出来了以下值。

retVal = CP210x.Open(3, ref handle);
 System.Windows.Forms.MessageBox.Show("" + retVal);//3 fail

 retVal = CP210x.WriteLatch(handle, (UInt16)(mask << idx), 0x01);
 System.Windows.Forms.MessageBox.Show("" + retVal);//255 device not found

返回值结果见CP210xManufacturingDLL.h和CP210xManufacturingDLL.h。

难道不能用 C# Windows Forms 控制 CP2108-EK 吗?

【问题讨论】:

    标签: c# .net dll


    【解决方案1】:

    这个问题我解决了。

    使用驱动程序文件夹中包含的最新 dll 文件解决了这个问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多