信息
您所需的主题如下所示。但此主题未包含在此库中。

WdfUsbTargetPipeSetNoMaximumPacketSizeCheck 方法

The WdfUsbTargetPipeSetNoMaximumPacketSizeCheck method disables the framework's test of whether the size of a driver's read buffer is a multiple of a USB pipe's maximum packet size.

语法

VOID WdfUsbTargetPipeSetNoMaximumPacketSizeCheck(
  [in]  WDFUSBPIPE Pipe
);

参数

Pipe [in]

A handle to a framework pipe object that was obtained by calling WdfUsbInterfaceGetConfiguredPipe.

返回值

None.

A bug check occurs if the driver supplies an invalid object handle.

评论

To avoid receiving extra data from unexpected bus activity, which is sometimes called babble, drivers usually specify read buffers that are a multiple of the pipe's maximum packet size. (Drivers receive a USB pipe's maximum packet size in a WDF_USB_PIPE_INFORMATION structure.) By default, the framework reports an error if a driver specifies a read buffer that is not a multiple of the pipe's maximum packet size. If the driver calls WdfUsbTargetPipeSetNoMaximumPacketSizeCheck, the framework does not report an error if a read buffer is not a multiple of the maximum packet size.

For more information about the WdfUsbTargetPipeSetNoMaximumPacketSizeCheck method and USB I/O targets, see USB I/O Targets.

示例

The following code example disables the framework's test of whether the size of a buffer is a multiple of a USB pipe's maximum packet size.

WdfUsbTargetPipeSetNoMaximumPacketSizeCheck(pipe);
 

要求

版本

Available in version 1.0 and later versions of KMDF.

标头

Wdfusb.h (包括Wdfusb.h)

Wdf<MajorVersionNumber>000.sys (see Framework Library Versions.)

IRQL

<=DISPATCH_LEVEL

另请参见

WDF_USB_PIPE_INFORMATION
WdfUsbInterfaceGetConfiguredPipe

 

 

社区附加资源

显示:
© 2014 Microsoft