当前位置:网站首页>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编译器,因此需要将官方的库进行重新编译。
边栏推荐
- Innovation today | five key elements for enterprises to promote innovation
- JMeter-接口自动化测试读取用例,执行并结果回写
- Are the microorganisms in the intestines the same as those on the skin?
- Wechat forum exchange applet system graduation design completion (6) opening defense ppt
- 【刷题记录】3. 无重复字符的最长子串
- Statistical method for anomaly detection
- Wechat forum exchange applet system graduation design (5) assignment
- ADC采样率(HZ)是什么怎么计算
- This time, let's clear up: synchronous, asynchronous, blocking, non blocking
- Txt file virus
猜你喜欢

Microbial health network, how to restore microbial communities

PMP project management exam pass Formula-1

How to operate DTC community?

小程序多种开发方式对比-跨端?低代码?原生?还是云开发?

JMeter-接口自动化测试读取用例,执行并结果回写

Brush question 3

Microbial Health Network, How to restore Microbial Communities

What is fake sharing after filling the previous hole?

30讲 线性代数 第五讲 特征值与特征向量

Line test - graphic reasoning - 1 - Chinese character class
随机推荐
网络安全-钓鱼
知识点滴 - PCB制造工艺流程
Network security -burpsuit
Anta DTC | Anta transformation, building a growth flywheel that is not only FILA
Classification and prediction of heartbeat signal
Quelles sont les similitudes et les différences entre les communautés intelligentes et les villes intelligentes?
智慧社区和智慧城市之间有什么异同
Statistical method for anomaly detection
The wonderful relationship between message queue and express cabinet
Line test - graphic reasoning - 1 - Chinese character class
Gee (III): calculate the correlation coefficient between two bands and the corresponding p value
Brush question 4
Sword finger offer 28 Symmetric binary tree
Handling file exceptions
Wechat forum exchange applet system graduation design (3) background function
安踏DTC | 安踏转型,构建不只有FILA的增长飞轮
【微服务|SCG】gateway整合sentinel
位运算(Bit Operation)
网络安全-对操作系统进行信息查询
网络安全-CSRF