-
其中的usb端口通信已经作为一个模块来使用,用户只需用以下函数就可以对usb端口进行方便地读写:
unsigned char D12_WriteEndpo...
其中的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
- 2023-06-14 23:15:04下载
- 积分:1
-
r63400 C51测试程序
R63400 C51 test program
- 2023-02-25 15:00:03下载
- 积分:1
-
lcd1602.驱动程序和1602中文资料
lcd1602.驱动程序和1602中文资料- lcd1602.驱动程序和1602中文资料
- 2023-01-05 11:25:04下载
- 积分:1
-
用STC单片机开发的简单脉冲发生器,用来测试步进驱动器.
用STC单片机开发的简单脉冲发生器,用来测试步进驱动器.-With STC to develop a simple single-chip pulse generator, to test the stepper drive.
- 2022-06-14 01:39:37下载
- 积分:1
-
与CCD相机数据采集的源代码编写C语言,适用于…
用C语言写的CCD摄像头数据采集源代码,适用于飞思卡尔单片机MC9SDG128B,使用智能车比赛专用软件CodeWarrior编写,给需要的人。-Writing C language with the CCD camera data acquisition source code, applies to single-chip Freescale MC9SDG128B, the use of smart cars match CodeWarrior special software prepared for the needs of people.
- 2022-02-09 19:10:43下载
- 积分:1
-
51单片机控制的电动自行车驱动系统源程序(CHUNTIAN)
51单片机控制的电动自行车驱动系统源程序(CHUNTIAN)
-51 microcomputer control drive system for electric bicycle source (CHUNTIAN)
- 2022-01-21 17:59:12下载
- 积分:1
-
这个文件是ATMEGA8的实验板原理图,大家可以下载,在我们公司已经使用,至今效果还可以,大家下载。...
这个文件是ATMEGA8的实验板原理图,大家可以下载,在我们公司已经使用,至今效果还可以,大家下载。-This document is ATMEGA8 schematic diagram of the experimental board, everyone can download, in our company have been used and the result also can download the U.S..
- 2022-03-19 15:04:22下载
- 积分:1
-
avr Microcontroller and flash memory communication program, debug is passed, eve...
avr单片机与flash存储器通信程序,调试通过,希望对大家有所帮助.-avr Microcontroller and flash memory communication program, debug is passed, everyone would like to be helpful.
- 2022-01-26 02:57:49下载
- 积分:1
-
16*2 字符Lcd 的c51 例子
16*2 字符Lcd 的c51 例子-16* 2 characters Lcd example of the decoder
- 2022-10-31 05:50:03下载
- 积分:1
-
应用于51的浮点数计算器程序,其中键盘的扫描程序需自己写(我不想让人都懒起来),还有就是LCD显示部分,根据情况更改...
应用于51的浮点数计算器程序,其中键盘的扫描程序需自己写(我不想让人都懒起来),还有就是LCD显示部分,根据情况更改-applied to the float 51 calculator program, the keyboard scan process required to write their own (I do not want to have lazy up), the LCD display is also part of the changes under
- 2022-02-14 06:21:28下载
- 积分:1