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

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

?? usbdlib.c

?? vxworks嵌入式實時系統的 usb底層驅動代碼
?? C
?? 第 1 頁 / 共 5 頁
字號:
* reason for the callback.  Attach codes are defined as:** .IP "USBD_DYNA_ATTACH"* USBD is notifying the client that nodeId is a device which is now attached * to the system.* .IP "USBD_DYNA_REMOVE"* USBD is notifying the client that nodeId has been detached (removed) from * the system.** When the <attachAction> is USBD_DYNA_REMOVE the <nodeId> refers to a Node Id * which is no longer valid.  The client should interrogate its internal data * structures and delete any references to the specified Node Id.  If the client * had outstanding requests to the specified <nodeId>, such as data transfer * requests, then the USBD will fail those outstanding requests prior to calling * the <attachCallback> to notify the client that the device has been removed.  * In general, therefore, transfer requests related to removed devices should * already be taken care of before the <attachCallback> is called.** A client may re-use a single <attachCallback> for multiple notification * registrations.  As a convenience to the <attachCallback> routine, the USBD * also passes the <deviceClass>, <deviceSubClass>, and <deviceProtocol> of the * attached/removed <nodeId> each time it calls the <attachCallback>.  ** Finally, clients need to be aware that not all USB devices report their class* information at the "device" level.  Rather, some devices report class types* on an interface-by-interface basis.  When the device reports class information* at the device level, then the USBD passes a <configuration> value of zero to * the attach callback and calls the callback only a single time for each device.* When the device reports class information at the interface level, then the* USBD invokes the attach callback once for each interface which matches the* client's <deviceClass>/<deviceSubClass>/<deviceProtocol> specification.  In this* case, the USBD also passes the corresponding configuration & interface numbers* in <configuration> and <interface> each time it invokes the callback.** RETURNS: OK, or ERROR if unable to register for attach/removal notification.*/STATUS usbdDynamicAttachRegister    (    USBD_CLIENT_HANDLE clientHandle,	/* Client handle */    UINT16 deviceClass, 		/* USB class code */    UINT16 deviceSubClass,		/* USB sub-class code */    UINT16 deviceProtocol,		/* USB device protocol code */    USBD_ATTACH_CALLBACK attachCallback /* User-supplied callback routine */    )    {    URB_DYNA_ATTACH_REG_UNREG urb;    /* Initalize URB */    urbInit (&urb.header, clientHandle, USBD_FNC_DYNA_ATTACH_REG, NULL, NULL,	sizeof (urb));    urb.deviceClass = deviceClass;    urb.deviceSubClass = deviceSubClass;    urb.deviceProtocol = deviceProtocol;    urb.attachCallback = attachCallback;    /* Execute URB */    return urbExecBlock (&urb.header);    }/***************************************************************************** usbdDynamicAttachUnRegister - Unregisters client for attach notification** This function cancels a client抯 earlier request to be notified for the * attachment and removal of devices within the specified class.  <deviceClass>,* <deviceSubClass>, <deviceProtocol>, and <attachCallback> are defined as for the * usbdDynamicAttachRegister() function and must match exactly the parameters* passed in an earlier call to usbdDynamicAttachRegister.** RETURNS: OK, or ERROR if unable to unregister for attach/removal notification.*/STATUS usbdDynamicAttachUnRegister    (    USBD_CLIENT_HANDLE clientHandle,	/* Client handle */    UINT16 deviceClass, 		/* USB class code */    UINT16 deviceSubClass,		/* USB sub-class code */    UINT16 deviceProtocol,		/* USB device protocol code */    USBD_ATTACH_CALLBACK attachCallback /* user-supplied callback routine */    )    {    URB_DYNA_ATTACH_REG_UNREG urb;    /* Initalize URB */    urbInit (&urb.header, clientHandle, USBD_FNC_DYNA_ATTACH_UNREG, NULL, 	NULL, sizeof (urb));    urb.deviceClass = deviceClass;    urb.deviceSubClass = deviceSubClass;    urb.deviceProtocol = deviceProtocol;    urb.attachCallback = attachCallback;    /* Execute URB */    return urbExecBlock (&urb.header);    }/***************************************************************************** usbdFeatureClear - Clears a USB feature** This function allows a client to "clear" a USB feature.  <nodeId> specifies * the Node Id of the desired device and <requestType> specifies whether the * feature is related to the device, to an interface, or to an endpoint as:** .IP "USB_RT_DEVICE"* Device* .IP "USB_RT_INTERFACE"* Interface* .IP "USB_RT_ENDPOINT"* Endpoint** <requestType> also specifies if the request is standard, class-specific,* etc., as:** .IP "USB_RT_STANDARD"* Standard* .IP "USB_RT_CLASS"* Class-specific* .IP "USB_RT_VENDOR"* Vendor-specific** For example, USB_RT_STANDARD | USB_RT_DEVICE in <requestType> specifies a* standard device request.  ** The client must pass the device抯 feature selector in <feature>.  If * <featureType> specifies an interface or endpoint, then <index> must contain * the interface or endpoint index.  <index> should be zero when <featureType> * is USB_SELECT_DEVICE.** RETURNS: OK, or ERROR if unable to clear feature.*/STATUS usbdFeatureClear    (    USBD_CLIENT_HANDLE clientHandle,	/* Client handle */    USBD_NODE_ID nodeId,		/* Node Id of device/hub */    UINT16 requestType, 		/* Selects request type */    UINT16 feature,			/* Feature selector */    UINT16 index			/* Interface/endpoint index */    )    {    URB_FEATURE_CLEAR_SET urb;    /* Initalize URB */    urbInit (&urb.header, clientHandle, USBD_FNC_FEATURE_CLEAR, NULL, NULL,	sizeof (urb));    urb.nodeId = nodeId;    urb.requestType = requestType;    urb.feature = feature;    urb.index = index;    /* Execute URB */    return urbExecBlock (&urb.header);    }/***************************************************************************** usbdFeatureSet - Sets a USB feature** This function allows a client to "set" a USB feature.  <nodeId> specifies * the Node Id of the desired device and <requestType> specifies the nature* of the feature feature as defined for the usbdFeatureClear() function.* * The client must pass the device抯 feature selector in <feature>.  If * <requestType> specifies an interface or endpoint, then <index> must contain * the interface or endpoint index.  <index> should be zero when <requestType>* includes USB_SELECT_DEVICE.** RETURNS: OK, or ERROR if unable to set feature.*/STATUS usbdFeatureSet    (    USBD_CLIENT_HANDLE clientHandle,	/* Client handle */    USBD_NODE_ID nodeId,		/* Node Id of device/hub */    UINT16 requestType, 		/* Selects request type */    UINT16 feature,			/* Feature selector */    UINT16 index			/* Interface/endpoint index */    )    {    URB_FEATURE_CLEAR_SET urb;    /* Initalize URB */    urbInit (&urb.header, clientHandle, USBD_FNC_FEATURE_SET, NULL, NULL,	sizeof (urb));    urb.nodeId = nodeId;    urb.requestType = requestType;    urb.feature = feature;    urb.index = index;    /* Execute URB */    return urbExecBlock (&urb.header);    }/***************************************************************************** usbdConfigurationGet - Gets USB configuration for a device** This function returns the currently selected configuration for the device * or hub indicated by <nodeId>.  The current configuration value is returned * in the low byte of <pConfiguration>.	The high byte is currently reserved * and will be 0.** RETURNS: OK, or ERROR if unable to get configuration.*/STATUS usbdConfigurationGet    (    USBD_CLIENT_HANDLE clientHandle,	/* Client handle */    USBD_NODE_ID nodeId,		/* Node Id of device/hub */    pUINT16 pConfiguration		/* bfr to receive config value */    )    {    URB_CONFIG_GET_SET urb;    STATUS s;    /* Initalize URB */    urbInit (&urb.header, clientHandle, USBD_FNC_CONFIG_GET, NULL, NULL,	sizeof (urb));    urb.nodeId = nodeId;    /* Execute URB */    s = urbExecBlock (&urb.header);    /* Return result */    if (pConfiguration != NULL)	*pConfiguration = urb.configuration;    return s;    }/***************************************************************************** usbdConfigurationSet - Sets USB configuration for a device** This function sets the current configuration for the device identified * by <nodeId>.	The client should pass the desired configuration value in * the low byte of <configuration>.  The high byte is currently reserved and * should be 0.** The client must also pass the maximum current which will be used by this* configuration in <maxPower>.	Typically, the maximum power will be* determined by reading the corresponding configuration descriptor for a* device.  Prior to setting the chosen configuration, the USBD will verify* that the hub port to which <pNode> is connected is capable of providing* the requested current.  If the port cannot provide <maxPower>, then* the configuration will not be set and the function will return an error.* <maxPower> should be expressed in milliamps (e.g., 100 = 100mA).  For* self-powered devices, the caller may pass zero in <maxPower>.** RETURNS: OK, or ERROR if unable to set configuration.*/STATUS usbdConfigurationSet    (    USBD_CLIENT_HANDLE clientHandle,	/* Client handle */    USBD_NODE_ID nodeId,		/* Node Id of device/hub */    UINT16 configuration,		/* New configuration to be set */    UINT16 maxPower			/* max power this config will draw */    )    {    URB_CONFIG_GET_SET urb;    /* Initalize URB */    urbInit (&urb.header, clientHandle, USBD_FNC_CONFIG_SET, NULL, NULL,	sizeof (urb));    urb.nodeId = nodeId;    urb.configuration = configuration;    urb.maxPower = maxPower;    /* Execute URB */    return urbExecBlock (&urb.header);    }/***************************************************************************** usbdDescriptorGet - Retrieves a USB descriptor** A client uses this function to retrieve a descriptor from the USB device * identified by <nodeId>.  <requestType> is defined as documented for the* usbdFeatureClear() function.	<descriptorType> specifies the type of the * descriptor to be retrieved and must be one of the following values:** .IP "USB_DESCR_DEVICE"* Specifies the DEVICE descriptor.* .IP "USB_DESCR_CONFIG"* Specifies the CONFIGURATION descriptor.* .IP "USB_DESCR_STRING"* Specifies a STRING descriptor.* .IP "USB_DESCR_INTERFACE"* Specifies an INTERFACE descriptor.* .IP "USB_DESCR_ENDPOINT"* Specifies an ENDPOINT descriptor.** <descriptorIndex> is the index of the desired descriptor.** For string descriptors the <languageId> should specify the desired * language for the string.  According to the USB Specification, strings * descriptors are returned in UNICODE format and the <languageId> should * be the "sixteen-bit language ID (LANGID) defined by Microsoft for * Windows as described in .I "Developing International Software for Windows * 95 and Windows NT."  Please refer to Section 9.6.5 of revision 1.1 of the * USB Specification for more detail.  For device and configuration * descriptors, <languageId> should be 0.** The caller must provide a buffer to receive the descriptor data.  <pBfr> * is a pointer to a caller-supplied buffer of length <bfrLen>.	If the * descriptor is too long to fit in the buffer provided, the descriptor will * be truncated.  If a non-NULL pointer is passed in <pActLen>, the actual * length of the data transferred will be stored in <pActLen> upon return.** RETURNS: OK, or ERROR if unable to get descriptor.*/STATUS usbdDescriptorGet    (    USBD_CLIENT_HANDLE clientHandle,	/* Client handle */    USBD_NODE_ID nodeId,		/* Node Id of device/hub */    UINT8 requestType,			/* specifies type of request */    UINT8 descriptorType,		/* Type of descriptor */    UINT8 descriptorIndex,		/* Index of descriptor */    UINT16 languageId,			/* Language ID */    UINT16 bfrLen,			/* Max length of data to be returned */    pUINT8 pBfr,			/* Pointer to bfr to receive data */    pUINT16 pActLen			/* bfr to receive actual length */    )    {    URB_DESCRIPTOR_GET_SET urb;    STATUS s;    /* Initalize URB */    urbInit (&urb.header, clientHandle, USBD_FNC_DESCRIPTOR_GET, NULL, NULL,	sizeof (urb));    urb.nodeId = nodeId;    urb.requestType = requestType;    urb.descriptorType = descriptorType;    urb.descriptorIndex = descriptorIndex;    urb.languageId = languageId;    urb.bfrLen = bfrLen;    urb.pBfr = pBfr;    /* Execute URB */    s = urbExecBlock (&urb.header);    /* Return result */    if (pActLen != NULL)	*pActLen = urb.actLen;    return s;    }/***************************************************************************** usbdDescriptorSet - Sets a USB descriptor** A client uses this function to set a descriptor on the USB device identified * by <nodeId>.	The parameters <requestType>, <descriptorType>, * <descriptorIndex>, and <languageId> are the same as those described for the * usbdDescriptorGet() function.  <pBfr> is a pointer to a buffer of length * <bfrLen> which contains the descriptor data to be sent to the device.** RETURNS: OK, or ERROR if unable to set descriptor.*/STATUS usbdDescriptorSet    (    USBD_CLIENT_HANDLE clientHandle,	/* Client handle */    USBD_NODE_ID nodeId,		/* Node Id of device/hub */    UINT8 requestType,			/* selects request type */    UINT8 descriptorType,		/* Type of descriptor */    UINT8 descriptorIndex,		/* Index of descriptor */    UINT16 languageId,			/* Language ID */    UINT16 bfrLen,			/* Max length of data to be returned */    pUINT8 pBfr 			/* Pointer to bfr to receive data */    )    {    URB_DESCRIPTOR_GET_SET urb;    /* Initalize URB */    urbInit (&urb.header, clientHandle, USBD_FNC_DESCRIPTOR_SET, NULL, NULL,	sizeof (urb));

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美性videosxxxxx| 国产美女一区二区三区| 欧美色区777第一页| 亚洲成人你懂的| 欧美日韩激情一区| 免费观看久久久4p| 欧美精品一区在线观看| 国产传媒日韩欧美成人| 中文字幕一区免费在线观看| 色诱视频网站一区| 日本aⅴ免费视频一区二区三区| 日韩精品专区在线| 成人免费高清在线观看| 亚洲美女一区二区三区| 这里只有精品视频在线观看| 国产原创一区二区三区| 国产精品第四页| 欧美午夜精品免费| 国产一区在线看| 亚洲黄色片在线观看| 日韩一区二区三区观看| 成人丝袜18视频在线观看| 亚洲国产精品久久艾草纯爱| 精品蜜桃在线看| 91蝌蚪porny九色| 九九久久精品视频| 亚洲欧美日韩国产手机在线| 欧美人与禽zozo性伦| 国产99久久久国产精品潘金网站| 亚洲综合清纯丝袜自拍| 日韩美女主播在线视频一区二区三区| 国产成人免费9x9x人网站视频| 亚洲成在线观看| 中文在线资源观看网站视频免费不卡 | 色综合一区二区| 蜜臀av国产精品久久久久| 中文字幕一区视频| 精品国产91洋老外米糕| 欧美在线视频你懂得| 国产成都精品91一区二区三| 日韩av成人高清| 亚洲丝袜美腿综合| 国产人成亚洲第一网站在线播放| 91精品久久久久久久99蜜桃| www.av亚洲| 国产一区二区日韩精品| 日韩国产精品久久久久久亚洲| 一色桃子久久精品亚洲| 国产午夜精品久久久久久免费视| 欧美三级视频在线观看| 99视频在线精品| 国产成人精品www牛牛影视| 青娱乐精品视频| 亚洲成人先锋电影| 亚洲欧美成人一区二区三区| 亚洲国产va精品久久久不卡综合| 欧美国产日韩一二三区| 欧美电视剧免费观看| 欧美日韩电影一区| 91国产免费看| 91女厕偷拍女厕偷拍高清| 成人综合日日夜夜| 国产又黄又大久久| 国产一区三区三区| 精品一区二区在线看| 日本成人超碰在线观看| 亚洲电影在线播放| 伊人一区二区三区| 亚洲免费av观看| 日韩美女视频一区| 国产精品久久久久久一区二区三区| 欧美电影免费提供在线观看| 日韩欧美一级精品久久| 日韩欧美亚洲国产精品字幕久久久| 69久久99精品久久久久婷婷| 欧美日韩午夜影院| 7777精品伊人久久久大香线蕉完整版| 色噜噜狠狠一区二区三区果冻| 91麻豆视频网站| 欧美午夜片在线看| 91精品国产麻豆| 91精品国产乱码久久蜜臀| 制服丝袜在线91| 日韩一级免费观看| 精品久久久久久久人人人人传媒 | 国产成人精品三级| 成人激情免费电影网址| 97成人超碰视| 精品视频一区二区三区免费| 欧美精品在线观看播放| 欧美成人一区二区三区| 国产亚洲1区2区3区| 中文字幕亚洲区| 五月综合激情日本mⅴ| 秋霞电影网一区二区| 另类小说视频一区二区| 粉嫩嫩av羞羞动漫久久久| 一本久道久久综合中文字幕| 国产午夜精品理论片a级大结局| 国产精品色一区二区三区| 国产精品成人午夜| 一区二区三区日韩精品| 日韩av在线播放中文字幕| 国产精一区二区三区| 99这里都是精品| 欧美日本精品一区二区三区| 久久天天做天天爱综合色| 亚洲美女精品一区| 九色porny丨国产精品| www.亚洲国产| 7777精品伊人久久久大香线蕉完整版| 国产丝袜在线精品| 亚洲一区在线视频| 国产一区日韩二区欧美三区| 色综合久久久久网| 欧美精品一区二区三区蜜桃视频| 亚洲欧美综合网| 日本网站在线观看一区二区三区 | 亚洲午夜激情av| 久久99精品久久久久婷婷| 99在线热播精品免费| 欧美一级日韩不卡播放免费| 国产精品美女久久久久av爽李琼| 午夜久久久影院| 成人精品一区二区三区四区| 欧美精品一级二级三级| 国产精品国产a级| 久久超碰97中文字幕| 欧美综合欧美视频| 国产欧美日韩三级| 久久国产精品99久久久久久老狼| 日本精品一级二级| 国产视频911| 日韩国产欧美在线观看| 色老综合老女人久久久| 久久精品人人做人人爽97| 日韩av电影天堂| 日本高清视频一区二区| 国产欧美一区二区精品性色 | 另类综合日韩欧美亚洲| 欧美视频一区在线| 亚洲欧洲日韩综合一区二区| 国内精品写真在线观看| 91麻豆精品久久久久蜜臀| 国产精品三级av| 欧美视频一区在线| 亚洲欧美二区三区| 99re6这里只有精品视频在线观看| 精品人在线二区三区| 天堂成人国产精品一区| 欧美在线视频全部完| 亚洲麻豆国产自偷在线| 99久久综合国产精品| 久久精品日产第一区二区三区高清版| 人人超碰91尤物精品国产| 69av一区二区三区| 亚洲成a人片综合在线| 精品污污网站免费看| 一区二区在线观看免费视频播放| 大尺度一区二区| 国产校园另类小说区| 国产凹凸在线观看一区二区 | 国产欧美1区2区3区| 久久69国产一区二区蜜臀| 欧美人妇做爰xxxⅹ性高电影| 亚洲午夜久久久久中文字幕久| 91蜜桃婷婷狠狠久久综合9色| 中文字幕一区在线观看| 97国产一区二区| 亚洲精品你懂的| 欧美在线一二三| 五月婷婷激情综合| 欧美一级日韩免费不卡| 国产在线精品一区在线观看麻豆| 欧美成人国产一区二区| 国产精品亚洲一区二区三区在线| 久久久久久一级片| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 午夜成人免费电影| 日韩限制级电影在线观看| 极品少妇一区二区| 久久综合丝袜日本网| 成人性生交大片免费看视频在线| 国产精品电影院| 欧美丝袜第三区| 麻豆成人综合网| 国产女同性恋一区二区| 91免费视频观看| 午夜av电影一区| 国产亚洲综合性久久久影院| 成人激情文学综合网| 亚洲电影视频在线| 欧美草草影院在线视频| 不卡的电影网站| 亚洲成在线观看| 精品国产露脸精彩对白| 国产夫妻精品视频| 亚洲1区2区3区4区| 精品电影一区二区三区| av在线不卡免费看|