登录
首页 » c » STM32 USB HID开发实例,实现USB双向通信

STM32 USB HID开发实例,实现USB双向通信

于 2023-04-18 发布 文件大小:11.64 MB
0 136
下载积分: 2 下载次数: 2

代码说明:

在STM32 ARM平台上实现USB与PC端得通信(IC为STM32F10XX系列)。本文提供一个例程(已测试通过),不用了解任何USB协议(当然了解USB相关协议或描述表的意义是很必要的),在此例程上,稍作修改,即可开展你的项目或学习或进行产品开发。在ST中我们可以获得了USB相关的一个HID例程,但是官方例子中只是用到2个端点。数据只收不发。本例程中,用到了3个USB端点,实现PC上位机与下位机见双向通信。EP0为控制端点(必须的,这是因为系统默认端点0作为控制传输端点),EP1为INTERRUPT OUT端点(数据输出端,即PC向MCU发送数据段),EP2为INTERRUPT OUT端点(数据输入端,即MCU向PC发送数据)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Sin_Signal_Producing
    正弦信号发生程序。使用声卡产生正弦信号输出,可以用来调音!(Sinusoidal signal procedures. Sinusoidal signal generated using the sound card output, can be used to tuning!)
    2007-11-29 09:05:29下载
    积分:1
  • TestWincap
    利用wincap直接与网卡通讯发送数据,千兆网卡效率达到100 ,全速!!!完全自定义数据包协议传输,数据每秒钟100M字节有木有!(wincap high speed data 100 MBytes/s=1000Mbits/s)
    2015-11-12 14:08:31下载
    积分:1
  • Linux登录器全套
    说明:  特别好用的征途登录器,几乎是什么功能都有,注册,找回,加点,等等一些功能!(1. Upload zt_login to / home directory with WinSCP 2. Do the following in Secure CRT: Cd/home Chmod a+x zt_login_ex / zt_login 192.168.1.76 8000 unify 00 ZT game 123456 192.168.1.76 8000 ZT ZT game 123456 100000 8003&)
    2020-06-19 03:00:01下载
    积分:1
  • Gaussianeliminationmethod
    用C语言来求解n维线性方程组的解,即高斯消元法求解线性方程组(Gaussian elimination method with n-dimensional linear equations)
    2010-07-14 21:27:06下载
    积分:1
  • 深度图边缘检测
    主要是对深度图像进行边缘检测。因为深度图像的边缘信息对虚拟视点的绘制影响很大。所以很多针对深度图像的算法会对深度图像的边缘特殊保护,因此,提取有效地深度图像边缘信息很有必要。
    2022-02-07 12:34:58下载
    积分:1
  • 宇宙无敌终极之版本!!!!!!!!
    说明:  大一的一个实训作业,实现4s汽车录入和信息管理(A practical training assignment in freshman year to realize 4S automobile input and information management)
    2020-06-17 12:00:01下载
    积分:1
  • xy7z
    基于遗传PNN网络的组合导航故障诊断研究Based on genetic algorithm and PNN network integrated navigation fault diagnosis research(Based on genetic algorithm and PNN network integrated navigation fault diagnosis research)
    2012-03-20 15:26:42下载
    积分:1
  • 这是一本对Delphi开发描述非常全面的书籍!
    这是一本对Delphi开发描述非常全面的书籍!-This is one pairs of Delphi developed a very comprehensive description of the book!
    2022-09-26 19:30:03下载
    积分:1
  • optimize-
    键是一种标准零件,通常用来实现轴与轮毂之间的周向固定以传递转矩,有的还能实现轴上零件的轴向固定或轴向滑动导向。在键连接设计时,间的高度和宽度根据轴的直径d选取,而键长L则根据轴上零件轮毂宽度B而定,通常L=B-(5—10)mm。键的尺寸确定后,再进行强度校核。而为了保证绝对安全,键的尺寸取值往往都趋于保守,所选键的尺寸大。本程序采用优化设计方法,在满足强度要求的前提下求出键的最小结构尺寸,证明键宽b和键高h的取值可以小于标准值。(Key is a standard part, often used to achieve between shaft and hub to transfer torque to a fixed week, and some can achieve a fixed axis or axial parts of the axial sliding direction. Key connection in the design, height and width between the shaft diameter d according to selection, and the bond length L is based on the width of the wheel shaft parts B and, typically L = B-(5-10) mm. Key size is confirmed, then strength check. In order to guarantee absolute security, key size values ??are often conservative, the size of the selected key to big. The program uses optimization methods to meet the strength requirements of the derived key premise of the minimum structure size, proved key width b and height h of the key values ??can be less than the standard value.)
    2011-09-05 20:16:03下载
    积分:1
  • Example-send-rece
    用 C++ 编写的 发送 接收串口工其软件,好用,可以参考一下(C++ prepared by the transmission and receiving serial software, good use, you can refer to)
    2015-12-21 18:45:54下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载