📄 usbinfo.h
字号:
/* usbinfo.h - Nereid USB Monitor / USB Device Information * 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 usbinfo_h#define usbinfo_h#include "include/usbdef.h"#include "usbio.h"/* 崱偺偲偙傠摿偵堄枴側偟 */typedef enum { PHASE_UNPLUGGED = 0, PHASE_POWERED = 1, PHASE_DEFAULT = 2, PHASE_ADDRESS = 3, PHASE_CONFIGURATION = 4,} DevPhase;typedef struct { int devadr; int bMaxPacketSize0; int confno; int hubadr; int hubport; DevPhase phase; DevSpeed speed; ConfDesc* confdescp; int total_confdesc; DevDesc devdesc;} UsbInfo;UsbInfo* get_usbinfo (int devadr);UsbInfo* alloc_usbinfo0 (void);UsbInfo* alloc_usbinfo (void);void free_usbinfo (UsbInfo* p);void init_usbinfo (UsbInfo* p);void init_all_usbinfo (void);#endif /* !usbinfo_h *//* EOF */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -