-
其中的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
-
单片机通过Modbus协议与HMI通信.rar
单片机通过Modbus协议与HMI通信.rar-microcontroller through an agreement with HMI Modbus communications. Rar
- 2022-04-16 23:43:47下载
- 积分:1
-
基于51系列单片机的串口通信测试程序,希望对大家有帮助
基于51系列单片机的串口通信测试程序,希望对大家有帮助-Based on 51 Series Single-chip serial communications test program, and they hope to have everyone help
- 2023-08-10 14:10:03下载
- 积分:1
-
Microcomputer Program, welcomed the study
单片机的程序,欢迎探讨-Microcomputer Program, welcomed the study
- 2022-08-04 01:59:11下载
- 积分:1
-
Cheng Xuan seminar information set 430 in the 430
桦宣430研讨会资料盘里的430源码资料-Cheng Xuan seminar information set 430 in the 430-source information
- 2022-03-21 11:13:39下载
- 积分:1
-
单片机测试开发程式,IIC与单片机通信,测试芯片,往芯片寄存器写程式...
单片机测试开发程式,IIC与单片机通信,测试芯片,往芯片寄存器写程式-Single-chip test development program, IIC and single-chip communications, test chip, to chip registers to write programs
- 2022-08-05 10:30:11下载
- 积分:1
-
LT_1B msp430开发板例子程序-UART11_0115k_2
LT_1B msp430开发板例子程序-UART11_0115k_2
- 2023-04-18 04:55:03下载
- 积分:1
-
9850
9850驱动
驱动9850产生频率
定义端口等
理解就是了-9850
- 2022-03-26 00:09:48下载
- 积分:1
-
cstn 1.5 with ST7636的C51测试程序.
cstn 1.5 with ST7636的C51测试程序.-cstn ST7636 1.5 with the C51 test procedures.
- 2022-02-22 03:16:27下载
- 积分:1
-
基于89s51的keil跑马灯工程,程序虽然简单,但是它的经典程度不亚于软件开发中的“hello word”,单片机汇编编程者不妨参考一下。内附proteus完...
基于89s51的keil跑马灯工程,程序虽然简单,但是它的经典程度不亚于软件开发中的“hello word”,单片机汇编编程者不妨参考一下。内附proteus完整的仿真文件。-Based on the keil Marquee 89s51 works, the program is simple, but it is no less than classic software development in the " hello word" , the compilation of single-chip programmers may wish to reference. Proteus simulation containing the complete document.
- 2023-08-20 23:55:03下载
- 积分:1