-
其中的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
-
4汉字左流动128*16点阵LED显示代码
4汉字左流动128*16点阵LED显示代码-4 characters left to flow 128* 16 dot matrix LED display code
- 2022-05-06 23:25:38下载
- 积分:1
-
直流电机转速控制,通过按键来选择显示速度…
直流电机速度控制 可通过按键来选择转速在LED上显示 使用的是C8051F 单片机-DC motor speed control through the keypad to select the speed in the LED display using a single-chip microcomputer C8051F
- 2022-02-05 18:20:36下载
- 积分:1
-
步进电机相关资料,不错哦
步进电机相关资料,不错哦-Stepper motor-related information, yes Oh
- 2023-04-06 03:05:05下载
- 积分:1
-
这是一个基于89C51单片机的简易信号发生器的源程序,程序代码由C语言编写...
这是一个基于89C51单片机的简易信号发生器的源程序,程序代码由C语言编写-This is an 89C51 microcontroller based on the simplicity of the source signal generator, code written in C
- 2022-04-11 08:37:37下载
- 积分:1
-
从沈阳新华龙公司购买的C8051F02X单片机开发板上的有用例子。...
从沈阳新华龙公司购买的C8051F02X单片机开发板上的有用例子。-From Shenyang Hualong company purchased a new single-chip C8051F02X useful example of the development board.
- 2022-10-20 18:15:03下载
- 积分:1
-
单片机的步进电机控制和一些具体的原理还有脉冲运动控制
单片机的步进电机控制和一些具体的原理还有脉冲运动控制-stepmotor
- 2023-08-29 18:00:03下载
- 积分:1
-
LM128*64液晶驱动程序,有显示图形,汉字,画线等功能
LM128*64液晶驱动程序,有显示图形,汉字,画线等功能 -LM128* 64 LCD driver, has display graphics, characters, painting lines and other functions
- 2022-03-11 14:43:33下载
- 积分:1
-
DS18B20资料及使用程序,适合51单片机开发,适合初学者
DS18B20资料及使用程序,适合51单片机开发,适合初学者-DS18B20 information and use the program for 51 MCU development, suitable for beginners
- 2022-11-21 15:55:04下载
- 积分:1
-
键盘采用TI公司tmps430单片机为例,我希望同样的目的是帮助初学者…
keyboard TI TMPS430单片机使用例子,希望对象我一样的初学者有帮助-keyboard use TI TMPS430 SCM example, I hope that the same object is to help beginners
- 2022-02-12 00:24:51下载
- 积分:1