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

📄 usbio.h

📁 USB monitor
💻 H
字号:
/* usbio.h - Nereid USB Monitor / USB Input/Output * Copyright (C) 2003 Tachibana Eriko * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA */#ifndef usbio_h#define usbio_htypedef enum {  SPEED_UNKNOWN	= 0,  FULL_SPEED	= 1,  LOW_SPEED	= 2,  LOW_SPEED_VIA_HUB = 3,	/* 崱偺偲偙傠堄枴側偟 */} DevSpeed;DevSpeed UsbDetectSpeed (void);void UsbReset (void);int UsbTransfer (int devadr, int ep, int pid, unsigned char* pData, int req_len, int payload, DevSpeed speed);/* Request */int GetStatus (setupType type, int devadr, setupRecipient rec, int wIndex, int payload, DevSpeed speed);int ClearFeature (setupType type, int devadr, setupRecipient rec, int wValue, int wIndex, int payload, DevSpeed speed);int GetState (setupType type, int devadr, int wIndex, int payload, DevSpeed speed);int SetFeature (setupType type, int devadr, setupRecipient rec, int wValue, int wIndex, int payload, DevSpeed speed);int SetAddress (setupType type, int devadr, int payload, DevSpeed speed);int GetDescriptor (setupType type, int devadr, int wValue, int wIndex, int wLen, void* pDesc, int payload, DevSpeed speed);int GetDesc0 (int devadr, int wValue, int wLen, void* pDesc, int payload, DevSpeed speed);int SetDescriptor (setupType type, int devadr, int wValue, int wIndex, int wLen, void* pDesc, int payload, DevSpeed speed);int GetConfiguration (setupType type, int devadr, int payload, DevSpeed speed);int SetConfiguration (setupType type, int devadr, int confno, int payload, DevSpeed speed);int GetInterface (setupType type, int devadr, int wIndex, int payload, DevSpeed speed);int SetInterface (setupType type, int devadr, int wValue, int wIndex, int payload, DevSpeed speed);int SynchFrame (setupType type, int devadr, int wIndex, int payload, DevSpeed speed);#endif /* !usbio_h *//* EOF */

⌨️ 快捷键说明

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