亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? libusb.h

?? 最新的libusb庫
?? H
?? 第 1 頁 / 共 3 頁
字號:
/* * Public libusb header file * Copyright (C) 2007-2008 Daniel Drake <dsd@gentoo.org> * Copyright (c) 2001 Johannes Erdfelt <johannes@erdfelt.com> * * This library 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.1 of the License, or (at your option) any later version. * * This library 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 library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */#ifndef __LIBUSB_H__#define __LIBUSB_H__#include <endian.h>#include <stdint.h>#include <sys/time.h>#include <sys/types.h>#include <time.h>#define bswap16(x) (((x & 0xff) << 8) | (x >> 8))#if __BYTE_ORDER == __LITTLE_ENDIAN#define libusb_cpu_to_le16(x) (x)#define libusb_le16_to_cpu(x) (x)#elif __BYTE_ORDER == __BIG_ENDIAN#define libusb_le16_to_cpu(x) bswap16(x)#define libusb_cpu_to_le16(x) bswap16(x)#else#error "Unrecognized endianness"#endif/** \def libusb_cpu_to_le16 * \ingroup misc * Convert a 16-bit value from host-endian to little-endian format. On * little endian systems, this function does nothing. On big endian systems, * the bytes are swapped. * \param x the host-endian value to convert * \returns the value in little-endian byte order *//** \def libusb_le16_to_cpu * \ingroup misc * Convert a 16-bit value from little-endian to host-endian format. On * little endian systems, this function does nothing. On big endian systems, * the bytes are swapped. * \param x the little-endian value to convert * \returns the value in host-endian byte order */#ifdef __cplusplusextern "C" {#endif/* standard USB stuff *//** \ingroup desc * Device and/or Interface Class codes */enum libusb_class_code {	/** In the context of a \ref libusb_device_descriptor "device descriptor",	 * this bDeviceClass value indicates that each interface specifies its	 * own class information and all interfaces operate independently.	 */	LIBUSB_CLASS_PER_INTERFACE = 0,	/** Audio class */	LIBUSB_CLASS_AUDIO = 1,	/** Communications class */	LIBUSB_CLASS_COMM = 2,	/** Human Interface Device class */	LIBUSB_CLASS_HID = 3,	/** Printer dclass */	LIBUSB_CLASS_PRINTER = 7,	/** Picture transfer protocol class */	LIBUSB_CLASS_PTP = 6,	/** Mass storage class */	LIBUSB_CLASS_MASS_STORAGE = 8,	/** Hub class */	LIBUSB_CLASS_HUB = 9,	/** Data class */	LIBUSB_CLASS_DATA = 10,	/** Class is vendor-specific */	LIBUSB_CLASS_VENDOR_SPEC = 0xff,};/** \ingroup desc * Descriptor types as defined by the USB specification. */enum libusb_descriptor_type {	/** Device descriptor. See libusb_device_descriptor. */	LIBUSB_DT_DEVICE = 0x01,	/** Configuration descriptor. See libusb_config_descriptor. */	LIBUSB_DT_CONFIG = 0x02,	/** String descriptor */	LIBUSB_DT_STRING = 0x03,	/** Interface descriptor. See libusb_interface_descriptor. */	LIBUSB_DT_INTERFACE = 0x04,	/** Endpoint descriptor. See libusb_endpoint_descriptor. */	LIBUSB_DT_ENDPOINT = 0x05,	/** HID descriptor */	LIBUSB_DT_HID = 0x21,	/** HID report descriptor */	LIBUSB_DT_REPORT = 0x22,	/** Physical descriptor */	LIBUSB_DT_PHYSICAL = 0x23,	/** Hub descriptor */	LIBUSB_DT_HUB = 0x29,};/* Descriptor sizes per descriptor type */#define LIBUSB_DT_DEVICE_SIZE			18#define LIBUSB_DT_CONFIG_SIZE			9#define LIBUSB_DT_INTERFACE_SIZE		9#define LIBUSB_DT_ENDPOINT_SIZE		7#define LIBUSB_DT_ENDPOINT_AUDIO_SIZE	9	/* Audio extension */#define LIBUSB_DT_HUB_NONVAR_SIZE		7#define LIBUSB_ENDPOINT_ADDRESS_MASK	0x0f    /* in bEndpointAddress */#define LIBUSB_ENDPOINT_DIR_MASK		0x80/** \ingroup desc * Endpoint direction. Values for bit 7 of the * \ref libusb_endpoint_descriptor::bEndpointAddress "endpoint address" scheme. */enum libusb_endpoint_direction {	/** In: device-to-host */	LIBUSB_ENDPOINT_IN = 0x80,	/** Out: host-to-device */	LIBUSB_ENDPOINT_OUT = 0x00,};#define LIBUSB_TRANSFER_TYPE_MASK			0x03    /* in bmAttributes *//** \ingroup desc * Endpoint transfer type. Values for bits 0:1 of the * \ref libusb_endpoint_descriptor::bmAttributes "endpoint attributes" field. */enum libusb_transfer_type {	/** Control endpoint */	LIBUSB_TRANSFER_TYPE_CONTROL = 0,	/** Isochronous endpoint */	LIBUSB_TRANSFER_TYPE_ISOCHRONOUS = 1,	/** Bulk endpoint */	LIBUSB_TRANSFER_TYPE_BULK = 2,	/** Interrupt endpoint */	LIBUSB_TRANSFER_TYPE_INTERRUPT = 3,};/** \ingroup misc * Standard requests, as defined in table 9-3 of the USB2 specifications */enum libusb_standard_request {	/** Request status of the specific recipient */	LIBUSB_REQUEST_GET_STATUS = 0x00,	/** Clear or disable a specific feature */	LIBUSB_REQUEST_CLEAR_FEATURE = 0x01,	/* 0x02 is reserved */	/** Set or enable a specific feature */	LIBUSB_REQUEST_SET_FEATURE = 0x03,	/* 0x04 is reserved */	/** Set device address for all future accesses */	LIBUSB_REQUEST_SET_ADDRESS = 0x05,	/** Get the specified descriptor */	LIBUSB_REQUEST_GET_DESCRIPTOR = 0x06,	/** Used to update existing descriptors or add new descriptors */	LIBUSB_REQUEST_SET_DESCRIPTOR = 0x07,	/** Get the current device configuration value */	LIBUSB_REQUEST_GET_CONFIGURATION = 0x08,	/** Set device configuration */	LIBUSB_REQUEST_SET_CONFIGURATION = 0x09,	/** Return the selected alternate setting for the specified interface */	LIBUSB_REQUEST_GET_INTERFACE = 0x0A,		/** Select an alternate interface for the specified interface */	LIBUSB_REQUEST_SET_INTERFACE = 0x0B,	/** Set then report an endpoint's synchronization frame */	LIBUSB_REQUEST_SYNCH_FRAME = 0x0C,};/** \ingroup misc * Request type bits of the * \ref libusb_control_setup::bmRequestType "bmRequestType" field in control * transfers. */enum libusb_request_type {	/** Standard */	LIBUSB_REQUEST_TYPE_STANDARD = (0x00 << 5),	/** Class */	LIBUSB_REQUEST_TYPE_CLASS = (0x01 << 5),	/** Vendor */	LIBUSB_REQUEST_TYPE_VENDOR = (0x02 << 5),	/** Reserved */	LIBUSB_REQUEST_TYPE_RESERVED = (0x03 << 5),};/** \ingroup misc * Recipient bits of the * \ref libusb_control_setup::bmRequestType "bmRequestType" field in control * transfers. Values 4 through 31 are reserved. */enum libusb_request_recipient {	/** Device */	LIBUSB_RECIPIENT_DEVICE = 0x00,	/** Interface */	LIBUSB_RECIPIENT_INTERFACE = 0x01,	/** Endpoint */	LIBUSB_RECIPIENT_ENDPOINT = 0x02,	/** Other */	LIBUSB_RECIPIENT_OTHER = 0x03,};#define LIBUSB_ISO_SYNC_TYPE_MASK		0x0C/** \ingroup desc * Synchronization type for isochronous endpoints. Values for bits 2:3 of the * \ref libusb_endpoint_descriptor::bmAttributes "bmAttributes" field in * libusb_endpoint_descriptor. */enum libusb_iso_sync_type {	/** No synchronization */	LIBUSB_ISO_SYNC_TYPE_NONE = 0,	/** Asynchronous */	LIBUSB_ISO_SYNC_TYPE_ASYNC = 1,	/** Adaptive */	LIBUSB_ISO_SYNC_TYPE_ADAPTIVE = 2,	/** Synchronous */	LIBUSB_ISO_SYNC_TYPE_SYNC = 3,};#define LIBUSB_ISO_USAGE_TYPE_MASK 0x30/** \ingroup desc * Usage type for isochronous endpoints. Values for bits 4:5 of the * \ref libusb_endpoint_descriptor::bmAttributes "bmAttributes" field in * libusb_endpoint_descriptor. */enum libusb_iso_usage_type {	/** Data endpoint */	LIBUSB_ISO_USAGE_TYPE_DATA = 0,	/** Feedback endpoint */	LIBUSB_ISO_USAGE_TYPE_FEEDBACK = 1,	/** Implicit feedback Data endpoint */	LIBUSB_ISO_USAGE_TYPE_IMPLICIT = 2,};/** \ingroup desc * A structure representing the standard USB device descriptor. This * descriptor is documented in section 9.6.1 of the USB 2.0 specification. * All multiple-byte fields are represented in host-endian format. */struct libusb_device_descriptor {	/** Size of this descriptor (in bytes) */	uint8_t  bLength;	/** Descriptor type. Will have value	 * \ref libusb_descriptor_type::LIBUSB_DT_DEVICE LIBUSB_DT_DEVICE in this	 * context. */	uint8_t  bDescriptorType;	/** USB specification release number in binary-coded decimal. A value of	 * 0x0200 indicates USB 2.0, 0x0110 indicates USB 1.1, etc. */	uint16_t bcdUSB;	/** USB-IF class code for the device. See \ref libusb_class_code. */	uint8_t  bDeviceClass;	/** USB-IF subclass code for the device, qualified by the bDeviceClass	 * value */	uint8_t  bDeviceSubClass;	/** USB-IF protocol code for the device, qualified by the bDeviceClass and	 * bDeviceSubClass values */	uint8_t  bDeviceProtocol;	/** Maximum packet size for endpoint 0 */	uint8_t  bMaxPacketSize0;	/** USB-IF vendor ID */	uint16_t idVendor;	/** USB-IF product ID */	uint16_t idProduct;	/** Device release number in binary-coded decimal */	uint16_t bcdDevice;	/** Index of string descriptor describing manufacturer */	uint8_t  iManufacturer;	/** Index of string descriptor describing product */	uint8_t  iProduct;	/** Index of string descriptor containing device serial number */	uint8_t  iSerialNumber;	/** Number of possible configurations */	uint8_t  bNumConfigurations;};/** \ingroup desc * A structure representing the standard USB endpoint descriptor. This * descriptor is documented in section 9.6.3 of the USB 2.0 specification. * All multiple-byte fields are represented in host-endian format. */struct libusb_endpoint_descriptor {	/** Size of this descriptor (in bytes) */	uint8_t  bLength;	/** Descriptor type. Will have value	 * \ref libusb_descriptor_type::LIBUSB_DT_ENDPOINT LIBUSB_DT_ENDPOINT in	 * this context. */	uint8_t  bDescriptorType;	/** The address of the endpoint described by this descriptor. Bits 0:3 are	 * the endpoint number. Bits 4:6 are reserved. Bit 7 indicates direction,	 * see \ref libusb_endpoint_direction.	 */	uint8_t  bEndpointAddress;	/** Attributes which apply to the endpoint when it is configured using	 * the bConfigurationValue. Bits 0:1 determine the transfer type and	 * correspond to \ref libusb_transfer_type. Bits 2:3 are only used for	 * isochronous endpoints and correspond to \ref libusb_iso_sync_type.	 * Bits 4:5 are also only used for isochronous endpoints and correspond to	 * \ref libusb_iso_usage_type. Bits 6:7 are reserved.	 */	uint8_t  bmAttributes;	/** Maximum packet size this endpoint is capable of sending/receiving. */	uint16_t wMaxPacketSize;	/** Interval for polling endpoint for data transfers. */	uint8_t  bInterval;	/** For audio devices only: the rate at which synchronization feedback	 * is provided. */	uint8_t  bRefresh;	/** For audio devices only: the address if the synch endpoint */	uint8_t  bSynchAddress;	/** Extra descriptors. If libusb encounters unknown endpoint descriptors,	 * it will store them here, should you wish to parse them. */	const unsigned char *extra;	/** Length of the extra descriptors, in bytes. */	int extra_length;};/** \ingroup desc * A structure representing the standard USB interface descriptor. This * descriptor is documented in section 9.6.5 of the USB 2.0 specification. * All multiple-byte fields are represented in host-endian format.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
免费成人美女在线观看| 色婷婷香蕉在线一区二区| 一区二区三区精品视频在线| 欧美一级日韩一级| 色又黄又爽网站www久久| 极品美女销魂一区二区三区 | av资源站一区| 激情偷乱视频一区二区三区| 亚洲国产成人91porn| 国产精品欧美久久久久一区二区| 91麻豆精品国产91久久久久| 成人福利视频在线看| 激情久久久久久久久久久久久久久久| 一区二区三区日韩欧美| 久久精品人人爽人人爽| 日韩欧美电影在线| 欧美日韩国产高清一区二区三区| 色先锋aa成人| 99久久久无码国产精品| 国产精品一区二区黑丝| 天天综合色天天| 亚洲18色成人| 婷婷国产在线综合| 午夜精品久久久久久久99水蜜桃| 一区在线观看免费| 国产精品天干天干在线综合| 久久九九影视网| 欧美精彩视频一区二区三区| www成人在线观看| 久久伊99综合婷婷久久伊| 精品伦理精品一区| 国产欧美一区二区精品性| 久久夜色精品一区| 国产精品无码永久免费888| 国产欧美视频一区二区| 欧美国产欧美亚州国产日韩mv天天看完整| 久久午夜老司机| 成人免费在线观看入口| 亚洲精品国产一区二区精华液 | 成人福利在线看| 97精品视频在线观看自产线路二| 成人一区在线观看| 日本久久电影网| 欧美日韩你懂得| 欧美成人性战久久| 一区二区三区在线不卡| 日韩免费视频一区二区| 欧美精品久久天天躁| 欧美电影免费观看高清完整版在 | 色综合色狠狠综合色| 精品视频全国免费看| 久久你懂得1024| 一区二区三区在线免费播放| 免费观看日韩电影| 懂色av中文字幕一区二区三区| 91激情五月电影| 久久综合九色欧美综合狠狠| 一区二区三区中文字幕电影| 精品一区二区三区在线观看国产 | 国内外成人在线| 色欧美片视频在线观看| 亚洲乱码一区二区三区在线观看| 三级欧美在线一区| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 91精品久久久久久久91蜜桃| 国产精品色一区二区三区| 午夜久久久影院| 成人av中文字幕| 337p日本欧洲亚洲大胆精品| 中文字幕综合网| 国产福利电影一区二区三区| 91精品免费在线| 香蕉久久夜色精品国产使用方法| 成人午夜视频在线| 久久嫩草精品久久久久| 日韩精品欧美精品| 欧美日韩一区二区三区不卡| 国产精品毛片大码女人| 九九精品一区二区| 日韩欧美一级特黄在线播放| 亚洲国产精品欧美一二99| k8久久久一区二区三区| 国产亚洲一区二区三区| 精一区二区三区| 欧美一级午夜免费电影| 午夜欧美视频在线观看| 91丨porny丨首页| 国产精品国产馆在线真实露脸| 精品影院一区二区久久久| 欧美一区二区三区日韩| 蜜臀av亚洲一区中文字幕| 欧美精品一二三区| 天天综合天天做天天综合| 欧美精品第1页| 男女视频一区二区| 亚洲精品在线免费观看视频| 麻豆精品久久久| 久久精品男人的天堂| 粉嫩一区二区三区性色av| 国产免费观看久久| 99精品久久久久久| 亚洲精品欧美二区三区中文字幕| 91黄色免费观看| 五月天丁香久久| 91精品国产美女浴室洗澡无遮挡| 精品在线观看免费| 91麻豆自制传媒国产之光| 欧美国产丝袜视频| 色综合天天狠狠| 爽爽淫人综合网网站| 日韩亚洲欧美高清| 国产69精品久久777的优势| 国产精品对白交换视频| 欧美日韩小视频| 国产一级精品在线| 亚洲欧美国产77777| 欧美日韩久久久一区| 日本不卡高清视频| 久久久www免费人成精品| 91视频在线看| 久久机这里只有精品| 国产精品美女www爽爽爽| 欧美三级欧美一级| 国产成人精品免费视频网站| 日韩毛片精品高清免费| 91精品国产91久久久久久一区二区| 国产乱码精品一区二区三区忘忧草| 中文字幕一区二区三区不卡在线| 7777精品伊人久久久大香线蕉经典版下载 | 亚洲欧美日韩国产综合| 欧美久久久一区| 国产传媒日韩欧美成人| 亚洲成av人综合在线观看| 国产精品系列在线| 精品国产伦一区二区三区观看体验| 日本道免费精品一区二区三区| 国产主播一区二区| 日韩va欧美va亚洲va久久| 亚洲私人影院在线观看| 久久理论电影网| 国产精品成人一区二区艾草| 欧美精品一区在线观看| 在线欧美日韩国产| aaa欧美色吧激情视频| 国产精品88888| 国产乱理伦片在线观看夜一区| 日韩高清一级片| 亚洲成人精品影院| 不卡一区中文字幕| 国产精品久久久久影院| 精品日韩欧美在线| 欧美高清视频一二三区| 欧美美女喷水视频| 欧美日韩高清在线| 欧美日韩一区二区三区在线看| 成人国产在线观看| 国产成人精品aa毛片| 喷水一区二区三区| 亚洲.国产.中文慕字在线| 亚洲一二三四区不卡| 亚洲图片自拍偷拍| 亚洲一级二级在线| 亚洲123区在线观看| 亚洲6080在线| 免费精品视频最新在线| 美腿丝袜亚洲色图| 国产伦精品一区二区三区免费迷 | 国产精品免费观看视频| 日本一区二区久久| 玉米视频成人免费看| 亚洲chinese男男1069| 午夜电影网亚洲视频| 青青草成人在线观看| 精品亚洲成a人| 国产精品乱码一区二区三区软件| 欧美电影一区二区| 欧美tickle裸体挠脚心vk| 久久久久国产精品麻豆| 成人欧美一区二区三区在线播放| 亚洲九九爱视频| 日韩精品亚洲专区| 国产成人精品亚洲日本在线桃色 | 亚洲电影在线免费观看| 日韩精品91亚洲二区在线观看| 久久精品国产久精国产| aaa亚洲精品一二三区| 欧美日韩精品是欧美日韩精品| 日韩精品一区二区三区中文精品| 中文在线资源观看网站视频免费不卡| 一区二区在线看| 国产很黄免费观看久久| 色94色欧美sute亚洲线路一久| 日韩精品一区二区三区蜜臀| 国产精品久久久久久久久久免费看| 香蕉乱码成人久久天堂爱免费| 国产精品中文有码| 欧美日本在线一区| 国产精品第13页| 精彩视频一区二区三区| 欧美午夜精品久久久久久孕妇|