-
其中的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
-
三半
三位半数字电压表程序,能测量-5~+5V电压,比较准确。-Three semi-digital voltage meter procedures to measure-5 ~+5 V voltage, more accurate.
- 2023-03-27 16:45:03下载
- 积分:1
-
keil software patches, for an increase in the keil software stc library option.
keil软件补丁,用于在keil软件中增加stc库选项。-keil software patches, for an increase in the keil software stc library option.
- 2023-08-26 05:50:04下载
- 积分:1
-
usb1.1开发代码 usb1.1开发代码
usb1.1开发代码 usb1.1开发代码-usb1.1
- 2023-01-24 18:30:03下载
- 积分:1
-
introduced an "information button DS1991" Application of the article,...
介绍了DS1991信息按钮在文章中的应用,对编译中使用的读写程序作了说明。
- 2023-04-10 22:30:03下载
- 积分:1
-
这是一个简单的pid控制程序,用的是增量式pid控制,在智能车上使用的。...
这是一个简单的pid控制程序,用的是增量式pid控制,在智能车上使用的。-This is a simple pid control procedures, using the incremental pid control, used in the smart car.
- 2022-04-28 00:20:34下载
- 积分:1
-
ATMEL Uart C51程序(中断方式)
ATMEL Uart C51程序(中断方式)-ATMEL Uart C51 (interrupt)
- 2022-05-25 13:08:17下载
- 积分:1
-
单片机开发源代码, 单片机开发源代码.
单片机开发源代码, 单片机开发源代码.-Single-chip development source code, source code to develop single-chip, single-chip development source code.
- 2022-09-23 15:15:03下载
- 积分:1
-
这是一个ZLG7289的读键盘程序,源码调试通过,绝对好用
这是一个ZLG7289的读键盘程序,源码调试通过,绝对好用-This is a read keyboard ZLG7289 procedures, debugging source code is passed, the absolute ease of use
- 2022-08-25 20:23:31下载
- 积分:1
-
This procedure for the CS5523 24 bit A/D converter driver, including the C langu...
本程序为CS5523 24位A/D转换驱动程序,包括C语言与汇编语言,是了解并使用好此芯片很好参考程序。-This procedure for the CS5523 24 bit A/D converter driver, including the C language and assembly language is to understand and use a good program this chip a good reference.
- 2022-02-20 21:00:36下载
- 积分:1