-
其中的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
-
全国飞思卡尔智能车大赛中,关于pwm方面的源代码
全国飞思卡尔智能车大赛中,关于pwm方面的源代码-Freescale national smart car competition, with regard to aspects of the source code pwm
- 2022-06-16 06:29:34下载
- 积分:1
-
16*64位点阵点 阵显示汉字程串口输出字符数据,P2口输出行扫描信号,P0_0输出595锁存信号...
16*64位点阵点 阵显示汉字程串口输出字符数据,P2口输出行扫描信号,P0_0输出595锁存信号-16* 64 dot matrix display Chinese characters lattice-serial output character data, P2 mouth output signal scanning, P0_0 595 latches the output signal
- 2022-10-13 19:35:03下载
- 积分:1
-
51系列单片机实验课程:计数
(通过串口,计数输入的字符数)...
51系列单片机实验课程:计数
(通过串口,计数输入的字符数)-51 Series single-chip experimental curriculum: count (through the serial port, count the number of characters input)
- 2022-03-14 11:13:03下载
- 积分:1
-
用msp430对x1228完全操作, x1228,一个串行的日立芯片,在单片机系统中,功能比较强大的日历芯片...
用msp430对x1228完全操作, x1228,一个串行的日立芯片,在单片机系统中,功能比较强大的日历芯片-with Controller fully operational right x1228, x1228, a serial Hitachi chip, the microcontroller system, functions more powerful chips Calendar
- 2022-01-25 16:36:38下载
- 积分:1
-
这是一个有实用价值的制作。可记录 0
这是一个有实用价值的制作。可记录 0-17米每秒的风速。可靠性高、架设容易、适用范围广。可存放30.46天的数据,并可保存11个月。也就是说,在12个月内去抄一下数据即可。抄数据的方式是通过手提电脑的串行口。供电方式为太阳能电池及普通电池。-This is a practical value has produced. Record of 0-17 meters per second wind. High reliability, easy to set up, the application scope. 30.46 days to deposit the data, as well as preservation of 11 months. In other words, in the 12 months to what data can be copied. Copied data is through the serial port of portable computers. Power supply for solar cells and normal cells.
- 2022-03-18 21:07:47下载
- 积分:1
-
对4x4键盘进行扫描并将结果送数码管显示
对4x4键盘进行扫描并将结果送数码管显示
- 2022-05-23 07:43:39下载
- 积分:1
-
12864液晶是市场上很常用的液晶,通过本程序可以测试液晶屏的好坏....
12864液晶是市场上很常用的液晶,通过本程序可以测试液晶屏的好坏.-12864 LCD market is very commonly used in liquid crystal, through this program can test the quality of LCD.
- 2022-08-15 17:42:00下载
- 积分:1
-
Simple Signal Generator+ Protues simulation, waveform function generator wavefor...
简易信号发生器+Protues仿真,函数波形发生器产生波形表,通过DA转换产生正弦波。-Simple Signal Generator+ Protues simulation, waveform function generator waveform table, have a sine wave through the DA converter.
- 2022-02-27 01:55:18下载
- 积分:1
-
这程序是实现单片机与PC机的通信程序 可供大家参考或学习!
这程序是实现单片机与PC机的通信程序 可供大家参考或学习!-MCU and PC communication program for reference or study!
- 2022-09-03 23:30:03下载
- 积分:1