资源简介
STM32F10X USB批量传输功能,并有上位机测试程序,上位机使用libusb + vc6.0
代码片段和文件信息
/* USB Benchmark for libusb-win32
Copyright (C) 2010 Travis Robinson.
website: http://sourceforge.net/projects/libusb-win32
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2 of the License or
(at your option) any later version.
This program is distributed in the hope that it will be useful but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program; if not please visit www.gnu.org.
*/
#include
#include
#include
#include
#include “lusb0_usb.h“
#define _BENCHMARK_VER_ONLY
#include “benchmark_rc.rc“
#define MAX_OUTSTANDING_TRANSFERS 10
// This is used only in VerifyData() for display information
// about data validation mismatches.
#define CONVDAT(format...) printf(“[data-mismatch] “ format__VA_ARGS__)
// All output is directed through these macros.
//
#define LOG(LogTypeStringformat...) printf(“%s[“ __FUNCTION__ “] “format LogTypeString __VA_ARGS__)
#define CONERR(format...) LOG(“Error:“format__VA_ARGS__)
#define CONMSG(format...) LOG(““format__VA_ARGS__)
#define CONWRN(format...) LOG(“Warn:“format__VA_ARGS__)
#define CONDBG(format...) LOG(““format__VA_ARGS__)
#define CONERR0(message) CONERR(“%s“ message)
#define CONMSG0(message) CONMSG(“%s“ message)
#define CONWRN0(message) CONWRN(“%s“ message)
#define CONDBG0(message) CONDBG(“%s“ message)
// This is the libusb-win32 return code for a transfer that timed out.
#define TRANSFER_TIMEDOUT -116
// Custom vendor requests that must be implemented in the benchmark firmware.
// Test selection can be bypassed with the “notestselect“ argument.
//
enum BENCHMARK_DEVICE_COMMANDS
{
SET_TEST = 0x0E
GET_TEST = 0x0F
};
// Tests supported by the official benchmark firmware.
//
enum BENCHMARK_DEVICE_TEST_TYPE
{
TestTypeNone = 0x00
TestTypeRead = 0x01
TestTypeWrite = 0x02
TestTypeLoop = TestTypeRead|TestTypeWrite
};
// This software was mainly created for testing the libusb-win32 kernel & user driver.
enum BENCHMARK_TRANSFER_MODE
{
// Tests for the libusb-win32 sync transfer function.
TRANSFER_MODE_SYNC
// Test for async function iso transfers and queued transfers
TRANSFER_MODE_ASYNC
};
// Holds all of the information about a test.
struct BENCHMARK_TEST_PARAM
{
// User configurable value set from the command line.
//
INT Vid; // Vendor ID
INT Pid; // Porduct ID
INT Intf; // Interface number
INT Altf; // Alt Interface number
INT Ep; // Endpoint number (1-15)
INT Refresh;
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 63488 2012-01-17 09:39 STM32 USB BULK\inf_tool\inf_tool\amd64\install-filter-win.exe
文件 44544 2012-01-17 09:39 STM32 USB BULK\inf_tool\inf_tool\amd64\install-filter.exe
文件 76384 2012-01-17 09:40 STM32 USB BULK\inf_tool\inf_tool\amd64\libusb0.dll
文件 52832 2012-01-17 09:40 STM32 USB BULK\inf_tool\inf_tool\amd64\libusb0.sys
文件 15360 2012-01-17 09:39 STM32 USB BULK\inf_tool\inf_tool\amd64\testlibusb-win.exe
文件 10752 2012-01-17 09:39 STM32 USB BULK\inf_tool\inf_tool\amd64\testlibusb.exe
文件 121344 2012-01-17 09:39 STM32 USB BULK\inf_tool\inf_tool\ia64\install-filter-win.exe
文件 87040 2012-01-17 09:39 STM32 USB BULK\inf_tool\inf_tool\ia64\install-filter.exe
文件 157792 2012-01-17 09:40 STM32 USB BULK\inf_tool\inf_tool\ia64\libusb0.dll
文件 110176 2012-01-17 09:40 STM32 USB BULK\inf_tool\inf_tool\ia64\libusb0.sys
文件 33792 2012-01-17 09:39 STM32 USB BULK\inf_tool\inf_tool\ia64\testlibusb-win.exe
文件 30720 2012-01-17 09:39 STM32 USB BULK\inf_tool\inf_tool\ia64\testlibusb.exe
文件 776192 2012-01-17 09:40 STM32 USB BULK\inf_tool\inf_tool\inf-wizard.exe
文件 931 2012-01-17 09:39 STM32 USB BULK\inf_tool\inf_tool\libusb-win32-bin-README.txt
文件 67680 2012-01-17 09:40 STM32 USB BULK\inf_tool\inf_tool\libusb0.dll
文件 57344 2012-01-17 09:39 STM32 USB BULK\inf_tool\inf_tool\x86\install-filter-win.exe
文件 46592 2012-01-17 09:39 STM32 USB BULK\inf_tool\inf_tool\x86\install-filter.exe
文件 42592 2012-01-17 09:40 STM32 USB BULK\inf_tool\inf_tool\x86\libusb0.sys
文件 67680 2012-01-17 09:40 STM32 USB BULK\inf_tool\inf_tool\x86\libusb0_x86.dll
文件 33072 2013-11-08 15:32 STM32 USB BULK\inf_tool\inf_tool\x86\libusb0_x86.rar
文件 14848 2012-01-17 09:39 STM32 USB BULK\inf_tool\inf_tool\x86\testlibusb-win.exe
文件 11264 2012-01-17 09:39 STM32 USB BULK\inf_tool\inf_tool\x86\testlibusb.exe
文件 320 2010-05-02 16:59 STM32 USB BULK\libusb-win32-bin-1.2.6.0\libusb-win32-bin-1.2.6.0\AUTHORS.txt
文件 63488 2012-01-17 09:39 STM32 USB BULK\libusb-win32-bin-1.2.6.0\libusb-win32-bin-1.2.6.0\bin\amd64\install-filter-win.exe
文件 44544 2012-01-17 09:39 STM32 USB BULK\libusb-win32-bin-1.2.6.0\libusb-win32-bin-1.2.6.0\bin\amd64\install-filter.exe
文件 76384 2012-01-17 09:40 STM32 USB BULK\libusb-win32-bin-1.2.6.0\libusb-win32-bin-1.2.6.0\bin\amd64\libusb0.dll
文件 52832 2012-01-17 09:40 STM32 USB BULK\libusb-win32-bin-1.2.6.0\libusb-win32-bin-1.2.6.0\bin\amd64\libusb0.sys
文件 15360 2012-01-17 09:39 STM32 USB BULK\libusb-win32-bin-1.2.6.0\libusb-win32-bin-1.2.6.0\bin\amd64\testlibusb-win.exe
文件 10752 2012-01-17 09:39 STM32 USB BULK\libusb-win32-bin-1.2.6.0\libusb-win32-bin-1.2.6.0\bin\amd64\testlibusb.exe
文件 121344 2012-01-17 09:39 STM32 USB BULK\libusb-win32-bin-1.2.6.0\libusb-win32-bin-1.2.6.0\bin\ia64\install-filter-win.exe
............此处省略460个文件信息
- 上一篇:光线跟踪 入门级 项目代码
- 下一篇:2016-2018北航991真题及答案.rar
相关资源
- STM32驱动NRF24L01的视频传输
- 嵌入式实时操作系统μC/OS-III(英文
- ALIENTEK 战舰STM32开发板最新例程
- 基于STM32的LED显示控制板卡驱动及GU
- VC++ USB及串口通信工程源码
- 基于winusb的上位机与USB的通信
- stm32 上下位机通信
- STemWin无操作系统移植-(STM32)
- 零死角玩转STM32—F103MINI(图文高清版
- STM32工程模板
- stm32实现MODBUS-MODBUS做主站
- STM32 DMX512协议与485 W5500 户外钢琴地灯
- STM32F10x中文参考手册
- uip 通信(stm32) 源代码
- STM32 采集 HLW8032 DMA 串口1+串口3
- STM32F103系列IO操作-LED流水灯
- STM32 modbus协议 从机程序
- ADS1118_SPI模式_STM32
- STM32上驱动基于IIC协议的OLED 128664 0.
- Quectel_WCDMALTE_Linux_USB_Driver_User_Guide_V
- stm32f0308_freertos通用模板
- 靶机控制:STM32遥控器531
- 蓝牙app控制STM32单片机的LED灯
- STM32F407_SD卡测试
- STM32F103系列CRC操作
- STM32F103系列读芯片ID
- STM32F103系列按键(查询方式)
- stm32制作的示波器
- stm32开发书籍合集
- USB HID STM32 开发资料全集
评论
共有 条评论