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

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

于 2023-04-18 发布 文件大小:11.64 MB
0 91
下载积分: 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 个回复

  • 波束形成定位
    波束形成定位算法MATLAB仿真程序,声源定位算法,阵列信号处理算法仿真(Beamforming localization algorithm MATLAB simulation program, sound source localization algorithm, array signal processing algorithm simulation)
    2020-11-22 22:59:35下载
    积分:1
  • 0012
    一个内存管理,能显示进程、线程、DLL的相关信息。(a memory management, can show that the process, thread, DLL related information.)
    2004-11-24 09:13:25下载
    积分:1
  • ComplexTest
    说明:  练习资料,例子并没有通过,需要下载源码查看,谢谢平台提供!(Exercise materials, the example did not pass, need to download the source code to view, thank you for the platform!)
    2020-06-19 03:40:02下载
    积分:1
  • 多通道采集
    labview多功能采集系统,各功能全面(LabVIEW multi-function acquisition system, all functions are comprehensive)
    2019-04-02 15:39:20下载
    积分:1
  • C#自动更新服务(本地服务安装)
    using System;using System.Collections.Generic;using System.Linq;using System.Text;using Common.WinService;using Common.Log;using System.Threading;using Common.Net;using System.Text.RegularExpressions;namespace Collection.AutoRunner{    //获取学生信息    public class Service_Update_Data : IWindowsService    {        private ILogWriter _logWriter = null;        private const string logCategory = "Services.Info";        private string logInfoSource = "Update_Data";        private const string logErrorCategory = "Services.Error";        private const string logErrorSource = "Update_Data_Error";        private bool BeStop = true;        private System.Timers.Timer timer = null;        public void Start(Common.Log.ILogWriter logWriter, string gameCode)        {            gameCode = gameCode.ToUpper();            logInfoSource = gameCode;            _logWriter = logWriter;            BeStop = false;            StartRequestData();        }        int stata = 0;        private void StartRequestData()        {            try            {                #region 配置                //时间频率                var UpdateStudentSpan = ServiceHelper.GetInterval("UpdateData");                //更新学生开始时间                var studentbegintime = ServiceHelper.GetInterval("StudentBeginTime");                //更新学生结束时间                var studentendtime = ServiceHelper.GetInterval("StudentEndTime");                    //是否更新学生基本信息:true为更新 false为不更新                var IsUpdateStudnet =Convert.ToBoolean(ServiceHelper.GetSystemConfig("IsUpdateStudnet"));                                #endregion                timer = ServiceHelper.ExcuteByTimer(UpdateStudentSpan, () =>                {                    int timeHour = DateTime.Now.Hour;                    if (timeHour == 3)                        stata = 0;                    #region 更新学生基本信息                    if (studentbegintime
    2015-03-11下载
    积分:1
  • RRCFILTER
    平方根升余弦滚降数字滤波器的设计与实现。(design RRC filter)
    2010-07-05 22:31:49下载
    积分:1
  • Test_Zip
    It s a simple program to demostrate how to use Zip-Unzip with Ziparchive
    2021-03-03 15:29:34下载
    积分:1
  • KOROSTERMADDEN08---Copy-(4)
    ochocinco ochocinco toy soldier
    2013-12-11 02:53:49下载
    积分:1
  • svm_test
    主要实现对数据的分类验证,判断其性能,并画出灵敏度和特异度曲线(It mainly implements the classification and verification of the data, determines its performance, and draws the sensitivity and specificity curve)
    2018-01-31 17:44:43下载
    积分:1
  • OGRE
    OGRE第三方依赖库,方便用户编译OGRE源码时使用
    2023-08-26 14:30:04下载
    积分:1
  • 696516资源总数
  • 106442会员总数
  • 11今日下载