登录
首页 » SCM » 其中的usb端口通信已经作为一个模块来使用,用户只需用以下函数就可以对usb端口进行方便地读写: unsigned char D12_WriteEndpo...

其中的usb端口通信已经作为一个模块来使用,用户只需用以下函数就可以对usb端口进行方便地读写: unsigned char D12_WriteEndpo...

于 2023-06-14 发布 文件大小:14.23 kB
0 198
下载积分: 2 下载次数: 1

代码说明:

其中的usb端口通信已经作为一个模块来使用,用户只需用以下函数就可以对usb端口进行方便地读写: unsigned char D12_WriteEndpoint(unsigned char endp, unsigned char len, unsigned char * buf) 此为usb端点输出函数,endp是要进行通信的端点,取值为3(普通端点,最大可一次传输16byte)或5(主端点,最大可一次传输64byte);len为一次输出数据长度;*buf为数据所在位置。 usb端点数据的读操作是由底层函数自动完成的(相关函数为unsigned char D12_ReadEndpoint(unsigned char endp, unsigned char len, unsigned char * buf); 相应端点为2和4),所读到的数据存于GenEpBuf[](普通端点)、MainEpBuf[]或EpBuf[](主端点)中,用户可以直接读取使用。-Usb port communication which has been used as a module, the user can use the following function on the usb port can easily read and write: unsigned char D12_WriteEndpoint (unsigned char endp, unsigned char len, unsigned char* buf) This is the endpoint usb output function, endp is to communicate the endpoint, the value for 3 (common endpoint, the first transmission maximum 16byte) or 5 ( the main endpoint, the first transmission maximum 64byte) len Length of output data for the first time * buf location for data. usb endpoint data is read

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

发表评论

0 个回复

  • 对lmd18200t数据表
    data sheet of LMD18200T
    2022-04-27 17:11:17下载
    积分:1
  • 蓝牙1。1的无线通讯协议文档,当然现在是2.0,不过可以参考
    蓝牙1。1的无线通讯协议文档,当然现在是2.0,不过可以参考-Bluetooth 1.1 wireless communication protocol document, of course, is now 2.0, but can refer to
    2022-05-08 11:13:06下载
    积分:1
  • used with a variety of LCD driver chips and sample matrix driver, a very good re...
    含多种常用液晶驱动芯片和点阵驱动程序样例,有很好的参考价值,本人特意会集上传-used with a variety of LCD driver chips and sample matrix driver, a very good reference value, I will deliberately set upload
    2022-08-09 22:41:57下载
    积分:1
  • AVR单片机,Protues仿真文件,检测按键,点亮LED
    AVR单片机,Protues仿真文件,检测按键,点亮LED-AVR Single Chip, Protues simulation document, test button, LED light
    2022-10-19 00:15:03下载
    积分:1
  • 51单片机快速学习~~~很有用的哦
    51单片机快速学习~~~很有用的哦-51 Single-chip Fast Learning ~ ~ ~ Oh, very useful
    2022-11-04 10:15:03下载
    积分:1
  • 动态×6数码管显示控制实现!调试可直接使用…
    六位数码管动态x显示控制的实现!调试通过可以直接用!-Dynamic x 6 digital tube display control realize! Debugging can be directly used through!
    2022-09-19 22:00:03下载
    积分:1
  • cf8020+cp2200(网络)的驱动实现
    cf8020+cp2200(网络)的驱动实现-cf8020+ cp2200 (network) drivers realize
    2022-10-26 22:10:03下载
    积分:1
  • CAN总线与51单片机的接口原理图,使用的是sja1000和tja1040(philips).还包括了具体的文档资料和c语言控制代码(附加了LCD代码和LCD接...
    CAN总线与51单片机的接口原理图,使用的是sja1000和tja1040(philips).还包括了具体的文档资料和c语言控制代码(附加了LCD代码和LCD接口以及电源变换原理图).搞CAN总线一步到位.-CAN Bus and 51 microcontroller interface schematics, using the sja1000 and tja1040 (Philips). Also include the specific information and documentation control code language c (Additional code of LCD and LCD interfaces, and power transformation diagram). CAN engage in one go.
    2022-02-21 23:09:31下载
    积分:1
  • SCM system design and engineering applications
    单片机系统设计及工程应用-雷思孝 冯育长编著 本书系统介绍了51系列单片机的基本原理和应用,从应用系统设计的角度出发,较为全面地介绍了单片机应用系统设计中的相关技术。全书共11章,内容分别为单片机系统概述、单片机硬件系统设计基础、指令系统与编程技术、中断系统与定时器应用、串行通信技术、单片机系统扩展及应用、单片机应用系统开发环境、单片机应用系统设计、系统抗干扰设计、实用外围电路设计、常用传感器。 作者总结多年来教学和科研的实践经验,为了解决读者在学习单片机技术及实际应用中的难点和疑惑,对难点进行详细描述,适当进行要点归纳,力求简洁实用,注重系统设计能力的培养,侧重设计方法和实际应用。 本书可作为工科院校电子信息、通信工程、计算机科学与技术、仪器仪表、工业自动化等相关专业单片机系统设计课程教材,以及高职高专相关专业单片机应用课程教材,对于工程技术人员及广大单片机爱好者,本书也极具参考价值。 -SCM system design and engineering applications- Xiao Feng long Elisabeth edited the book system introduced 51 Series MCU basic principles and applications, from the application system design perspective, A more comprehensive presentation of the SCM application system design related technologies. The book has 11 chapters, which were outlined SCM system, microcontroller hardware system design basis, Instruction System and programming technology, and the timer interrupt system application, serial communications technology, SCM system expansion and the application MCU application system
    2022-03-18 03:38:57下载
    积分:1
  • 凌阳单片机(SPCE061A)IIC总线驱动程序
    凌阳单片机(SPCE061A)IIC总线驱动程序-Sunplus Singlechip (SPCE061A) IIC bus driver
    2022-10-27 18:50:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载