登录
首页 » c » 通过STM32CUbeMX建立USB HID的双向通讯

通过STM32CUbeMX建立USB HID的双向通讯

于 2022-03-13 发布 文件大小:5.24 MB
0 147
下载积分: 2 下载次数: 1

代码说明:

板子的芯片是STM32F103RCT6 ,使用STM32CUbeMX配置相当简单:1、配置时钟、USB选项及管脚功能,有二个LED和二个按键2、选择USB功能为HID3、配置时钟4、配置IO口功能这样就完成了配置,再生成工程,整个过程不到1分钟。当然还要在工程里面添加必要的应用程序:1、在usbd_custom_hid_if.c文件里面的__ALIGN_BEGIN static uint8_t CUSTOM_HID_ReportDesc_FS2、在usbd_custom_hid_if.c文件里面的int8_t CUSTOM_HID_OutEvent_FS

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

发表评论

0 个回复

  • StudentSystem_Xml
    说明:  做的是一个报名系统,功能很简单,使用xml作为数据库.可将学生信息导出Excel.使用DotNetBar做的界面.使用vs2008+sql2008开发(This is a Student Regist System.The function is simple.Using Xml as DataBase.The information of students can be export to Excel.Developed the interface with DotNetBar )
    2009-07-27 17:11:27下载
    积分:1
  • Audio_ReSample
    ffmpeg 实现音频重采样,采样率,声道,类型任意(ffmpeg audio resample)
    2020-11-02 11:19:53下载
    积分:1
  • shumaguan
    数码管显示的单片机代码,不是很难,但是还是有看点的(Digital display of the microcontroller code is not difficult, but there are still things to watch for)
    2013-08-08 16:58:23下载
    积分:1
  • C# 编写多种窗口排列方式的MDIForm窗体
    C# 实现MDIForm窗体功能,代码中实现了3个MDI子窗口,并以水平平铺、垂直平铺、层叠排列的方式实现多种子窗口的排列布局,其主要代码在form1.cs中,其它文件为生成子窗口的文件,关键代码如下:   private void toolStripMenuItem1_Click(object sender, EventArgs e)   {    Form2 frm2 = new Form2();//实例化Form2    frm2.MdiParent = this;//设置MdiParent属性,将当前窗体作为父窗体    frm2.Show();//使用Show方法打开窗体    Form3 frm3 = new Form3();//实例化Form3    frm3.MdiParent = this;//设置MdiParent属性,将当前窗体作为父窗体    frm3.Show();//使用Show方法打开窗体    Form4 frm4 = new Form4();//实例化Form4    frm4.MdiParent = this;//设置MdiParent属性,将当前窗体作为父窗体    frm4.Show();//使用Show方法打开窗体   }   private void 水平平铺ToolStripMenuItem_Click(object sender, EventArgs e)   {    LayoutMdi(MdiLayout.TileHorizontal);//使用MdiLayout枚举实现水平平铺   }   private void 垂直平铺ToolStripMenuItem_Click(object sender, EventArgs e)   {    LayoutMdi(MdiLayout.TileVertical);//使用MdiLayout枚举实现垂直平铺   }   private void 层叠排列ToolStripMenuItem_Click(object sender, EventArgs e)   {    LayoutMdi(MdiLayout.Cascade);//使用MdiLayout枚举实现层叠排列   }
    2022-03-07 15:00:14下载
    积分:1
  • linux字符设备驱动例子
    linux led 字 符设   备驱动  ,基 于 l in ux 2 .6 版 本 , 通 过m d e v 方式 在 / d ev 目    录 下 生 成 设 备 文 件。
    2023-09-05 19:30:03下载
    积分:1
  • S6frreedommani
    六自由度机械臂调试程序源码,国外的的,具有非常高的借鉴意义 (Six degrees of freedom manipulator debugger source, abroad, the very high reference)
    2012-07-22 23:31:03下载
    积分:1
  • TheCaculationOfSpecialFunction
    包含各种特殊的数学函数:伽马函数;误差函数; 贝塞尔函数;贝塔函数;正态分布函数 ;卡方分布函数以及各种积分函数(Includes a variety of special mathematical functions: Gamma function error function Bessel function Beta function normal distribution function chi-square distribution function, as well as a variety of integral function)
    2021-05-07 08:58:37下载
    积分:1
  • c# skin components with CSharp skin joint use of required dll files
    c#皮肤组件与csharp皮肤联合使用必备的dll文件-c# skin components with CSharp skin joint use of required dll files
    2023-04-19 10:55:04下载
    积分:1
  • 电子秤程序
    能实现0.1g的重量测量,并可设置单价,计算总价(It can realize the weight measurement of 0.1g and set the unit price to calculate the total price.)
    2018-04-27 20:18:34下载
    积分:1
  • Desktop
    一个ATM程序的源码,里面还包含有其他的4个小程序,供给刚刚学习C的人用(An ATM program source code, which also includes other small program, the supply just learning C, with)
    2013-04-09 20:26:10下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载