-
其中的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
-
nrf905通信 基于rs232
nrf905通信 基于rs232-nrf905 based RS232 communication
- 2023-08-08 01:35:06下载
- 积分:1
-
洗衣机控制器的程序及编译文件CCCCC(C语言)
洗衣机控制器的程序及编译文件CCCCC(C语言)-Washing machine controller procedures and compile documents CCCCC (C language)
- 2023-08-31 09:40:03下载
- 积分:1
-
一款收款机C源代码!因为是几年前的代码了,比较经典,还是共享一下!
里面有不少算法还是很不错的,注意用三菱16位30802的编译器...
一款收款机C源代码!因为是几年前的代码了,比较经典,还是共享一下!
里面有不少算法还是很不错的,注意用三菱16位30802的编译器-?豢 钍???机C?
- 2022-03-17 19:09:05下载
- 积分:1
-
Buzzer buzzer ring to change the frequency by changing the delay time if the buz...
蜂鸣器响
改变蜂鸣器的频率,通过改变延时时间
蜂鸣器的时间要是是靠延时来完成的-Buzzer buzzer ring to change the frequency by changing the delay time if the buzzer is the time to be completed by the time delay
- 2022-01-25 21:10:40下载
- 积分:1
-
avr单片机与CS5460的汇编程序,实现了对cs5460的初始化和读写等功能
avr单片机与CS5460的汇编程序,实现了对cs5460的初始化和读写等功能-avr Microcontroller and CS5460 compilation process, the CS5460 realize the initialization and read-write functions
- 2023-02-27 05:30:04下载
- 积分:1
-
From himself wrote a serial on the 8 AD TLC549 read their own written procedures
上传一份自己写的关于 串行8位AD TLC549的读程序 自己写的-From himself wrote a serial on the 8 AD TLC549 read their own written procedures
- 2022-08-20 19:50:28下载
- 积分:1
-
51单片机程序,ASM版,前一个是C版,请多提意见
51单片机程序,ASM版,前一个是C版,请多提意见-51 SCM program, ASM version is the C version of the previous, please speak up
- 2023-01-22 22:40:03下载
- 积分:1
-
pid控制的源程序,很不错的,请大家注意关注啊
pid控制的源程序,很不错的,请大家注意关注啊-pid control source, it is good, draw attention to concerns ah
- 2022-01-27 23:54:55下载
- 积分:1
-
获取Sd卡ID,仅限参考,谢谢合作,也有不足之处请指正
获取Sd卡ID,仅限参考,谢谢合作,也有不足之处请指正-Access to Sd card ID, only a reference, Thank you for your cooperation, but also the inadequacies please correct me
- 2022-02-12 02:49:23下载
- 积分:1