⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 u_usb.h

📁 EPSON USB DEVICE MASS-STORAGE CLASS driver, BULK ONLY on Ram disk
💻 H
字号:
/******************************************************************************
 * File name   : usb.h
 * Module name : A definition of an usb descriptor
 * Author	   : Hiromichi.Kondo
 *-----------------------------------------------------------------------------
 * $Id: usb.h,v 1.1 2003/04/16 06:56:41 9551619 Exp $
 *****************************************************************************/

#ifndef _USB_H_
#define _USB_H_
/*----------------------------------------------------------------------------
 * Device Descriptor
 *
 *
 */
typedef struct {
	BYTE	bLength;
	BYTE	bDescriptorType;
	WORD	bcdUSB;
	BYTE	bDeviceClass;
	BYTE	bDeviceSubClass;
	BYTE	bDeviceProtocol;
	BYTE	bMaxPacketSize0;
	WORD	idVendor;
	WORD	idProduct;
	WORD	bcdDevice;
	BYTE	iManufacturer;
	BYTE	iProduct;
	BYTE	iSerialNumber;
	BYTE	bNumConfigurations;
} DeviceDesc;

/*----------------------------------------------------------------------------
 * Device Qualifier Descriptor
 *
 *
 */
typedef const struct {
	BYTE	bLength;
	BYTE	bDescriptorType;
	WORD	bcdUSB;
	BYTE	bDeviceClass;
	BYTE	bDeviceSubClass;
	BYTE	bDeviceProtocol;
	BYTE	bMaxPacketSize0;
	BYTE	bNumConfigurations;
	BYTE	bReserved;
} DeviceQualifier;

/*----------------------------------------------------------------------------
 * Endpoint Descriptor
 *
 *
 */
typedef const struct {
	BYTE		bLength;
	BYTE		bDescriptorType;
	BYTE		bEndpointAddress;
	BYTE		bmAttributes;
	WORD		wMaxPacketSize;
	BYTE		bInterval;
} EndpointDesc;

/*----------------------------------------------------------------------------
 * Interface Descriptor
 *
 *
 */
typedef const struct {
	BYTE		bLength;
	BYTE		bDescriptorType;
	BYTE		bInterfaceNumber;
	BYTE		bAlternateSetting;
	BYTE		bNumEndpoints;
	BYTE		bInterfaceClass;
	BYTE		bInterfaceSubClass;
	BYTE		bInterfaceProtocol;
	BYTE		iInterface;
	EndpointDesc	*p_e_desc;
} InterfaceDesc;

/*----------------------------------------------------------------------------
 * Config Descriptor
 *
 *
 */
typedef const struct {
	BYTE		bLength;
	BYTE		bDescriptorType;
	WORD		wTotalLength;
	BYTE		bNumInterfaces;
	BYTE		bConfigurationValue;
	BYTE		iConfiguration;
	BYTE		bmAttributes;
	BYTE		bMaxPower;
} ConfigDesc;
#endif	/* USB_H_INCLUDED */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -