当前位置:网站首页>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编译器,因此需要将官方的库进行重新编译。
边栏推荐
- Microbial Health Network, How to restore Microbial Communities
- 消费品企业敏捷创新转型案例
- The author of LinkedList said he didn't use LinkedList himself
- JMeter-接口自动化测试读取用例,执行并结果回写
- 【测试面试题】页面很卡的原因分析及解决方案
- Brush question 4
- Sword finger offer 55 - I. depth of binary tree
- Unity and webgl love each other
- Network security - joint query injection
- I wish you all the best and the year of the tiger
猜你喜欢
ArcGIS: field assignment_ The attribute table field calculator assigns values to fields based on conditions
I wish you all the best and the year of the tiger
Innovation today | five key elements for enterprises to promote innovation
Interview questions: how to test app performance?
微生物健康网,如何恢复微生物群落
Are the microorganisms in the intestines the same as those on the skin?
微信论坛交流小程序系统毕业设计毕设(6)开题答辩PPT
Wechat forum exchange applet system graduation design completion (7) Interim inspection report
Gee (IV): calculate the correlation between two variables (images) and draw a scatter diagram
PMP项目管理考试过关口诀-1
随机推荐
线上面试,该如何更好的表现自己?这样做,提高50%通过率~
Network security - install CentOS
Two minutes, talk about some wrong understandings of MySQL index
位运算(Bit Operation)
Knowledge drop - PCB manufacturing process flow
Transparent i/o model from beginning to end
消息队列与快递柜之间妙不可言的关系
Interview questions: how to test app performance?
Wechat forum exchange applet system graduation design completion (7) Interim inspection report
Database daily question --- day 22: last login
Introduction to redis and jedis and redis things
ArcGIS:矢量要素相同字段属性融合的两种方法
Cascade-LSTM: A Tree-Structured Neural Classifier for Detecting Misinformation Cascades-KDD2020
QT graphicsview graphical view usage summary with flow chart development case prototype
ArcGIS:字段赋值_属性表字段计算器(Field Calculator)依据条件为字段赋值
CTF exercise
PMP项目管理考试过关口诀-1
Grid
Dynamics 365 查找字段过滤
[record of question brushing] 3 Longest substring without duplicate characters