当前位置:网站首页>USB (十七)2022-04-15
USB (十七)2022-04-15
2022-07-07 21:50:00 【晓晓暮雨潇潇】
基于FX3Qt开发上位机
1.开发准备
QT官方没有与USB通信相关的封装好的类,cypress官方提供了两个做上位机用的库,一个基于C#的动态链接库CyUSB.dll,另一个是基于C++的CyAPI.lib库。本次开发使用CyAPI.lib,QT+CyUsb3.sys+USB3.0方案实现基于windows10的上位机USB接口配置。这个方案需要安装cypress官方提供的驱动CyUsb3.sys,这个驱动在安装官方套件EZ-USB FX3 SDK后,会在C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\driver\bin\win7\x64路径下。另外要注意安装的时候需要将连接线插到PC端的USB3.0接口。
mingw,是Minimalist GNU on Windows 的缩写。它实际上是将经典的开源 C语言 编译器 GCC 移植到了Windows 下,并且包含了 WindowsAPI ,因此可以将源代码编译生成 Windows下的可执行程序。MSVC是微软提供的编译器。cypress提供的官方库在QT中需要使用MSVC的编译器,静态库是以.lib或者以.a结尾的文件,.lib结尾的是MSVC编译器使用的,.a结束的是minGW编译器使用的。安装MSVC的编译器需要安装对应版本的VS,以及windows SDK,这样才能使用MSVC的编译器。本次开发使用minGW编译器,因此需要将官方的库进行重新编译。
边栏推荐
- Installing vmtools is gray
- Network security sqlmap and DVWA explosion
- Gbu1510-asemi power supply special 15A rectifier bridge gbu1510
- What is fake sharing after filling the previous hole?
- Introduction to redis and jedis and redis things
- PMP项目管理考试过关口诀-1
- Bit operation
- Network security - joint query injection
- Network security - information query of operating system
- 为什么市场需要低代码?
猜你喜欢
微信论坛交流小程序系统毕业设计毕设(2)小程序功能
Understand the session, cookie and token at one time, and the interview questions are all finalized
Interview questions: how to test app performance?
微生物健康網,如何恢複微生物群落
Comparison of various development methods of applets - cross end? Low code? Native? Or cloud development?
V20变频器手自动切换(就地远程切换)的具体方法示例
Database daily question --- day 22: last login
The author of LinkedList said he didn't use LinkedList himself
双非大厂测试员亲述:对测试员来说,学历重要吗?
Wechat forum exchange applet system graduation design completion (4) opening report
随机推荐
Unity dynamically merges mesh textures
ArcGIS:矢量要素相同字段属性融合的两种方法
Software evaluation center ▏ what are the basic processes and precautions for automated testing?
Cascade-LSTM: A Tree-Structured Neural Classifier for Detecting Misinformation Cascades-KDD2020
解决:信息中插入avi格式的视频时,提示“unsupported video format”
Brush question 3
Cases of agile innovation and transformation of consumer goods enterprises
线上面试,该如何更好的表现自己?这样做,提高50%通过率~
微信论坛交流小程序系统毕业设计毕设(2)小程序功能
Specific method example of V20 frequency converter manual automatic switching (local remote switching)
Develop those things: go plus c.free to free memory, and what are the reasons for compilation errors?
Why does the market need low code?
[network] Introduction to C language
DTC社群运营怎么做?
网络安全-安装CentOS
Microbial health network, how to restore microbial communities
Sword finger offer 27 Image of binary tree
V20变频器手自动切换(就地远程切换)的具体方法示例
JMeter-接口自动化测试读取用例,执行并结果回写
Sword finger offer 28 Symmetric binary tree