-
其中的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
-
在51等单片机中使用PC键盘的源码
在51等单片机中使用PC键盘的源码-in 51 other microprocessor using a PC keyboard FOSS
- 2022-01-26 00:46:48下载
- 积分:1
-
这是一份I2C数据传输程序.自己写的,有识之士看看,
这是一份I2C数据传输程序.自己写的,有识之士看看,-I2C data transmission procedures. Wrote it myself, people of insight to see,
- 2022-02-09 23:30:20下载
- 积分:1
-
C8051F120CPU的AD读写程序,用C语言编写,内含注释。
C8051F120CPU的AD读写程序,用C语言编写,内含注释。-C8051F120CPU the AD to read and write procedures, using C language, including the Notes.
- 2022-05-25 14:59:37下载
- 积分:1
-
51单片机温度检测18B20,经过验证的啊
51单片机温度检测18B20,经过验证的啊-microcontroler
- 2023-01-18 12:30:03下载
- 积分:1
-
很有用的一些从用代码 有keil编译实现的 可以
很有用的一些从用代码 有keil编译实现的 可以-Useful to have some code from keil compiler can realize
- 2022-03-20 23:30:01下载
- 积分:1
-
C51 Portal Daquan, very useful for beginners. seriously study the inside of the...
C51入门大全,对初学者很有帮助,认真学习一下里面的程序或者直接拿出来在单片机上运行一下,里面的程序基本上都是有效的.-C51 Portal Daquan, very useful for beginners. seriously study the inside of the program or directly out of the running on this MCU, Basically, the procedures which are effective.
- 2022-02-09 11:59:27下载
- 积分:1
-
CH451的LED驱动及8*8键盘驱动程序
CH451的LED驱动及8*8键盘驱动程序...
CH451的LED驱动及8*8键盘驱动程序
CH451的LED驱动及8*8键盘驱动程序
-CH451 the LED driver and 8* 8 keyboard driver for the LED driver CH451 and 8* 8 keyboard driver
- 2022-06-03 01:08:51下载
- 积分:1
-
ATMEL公司的AT89系列单片机的资料,不用我多说了吧:)
ATMEL公司的AT89系列单片机的资料,不用我多说了吧:)-ATMEL"s AT89 Series MCU information, I need not say it :)
- 2022-06-20 22:56:43下载
- 积分:1
-
C51实用源码,极具参考价值!
C51实用源码,极具参考价值!-practical source of C51, great reference value!
- 2022-01-21 21:10:48下载
- 积分:1