Expand Minimize

WDF_USB_CONTINUOUS_READER_CONFIG_INIT function

[Applies to KMDF and UMDF]

The WDF_USB_CONTINUOUS_READER_CONFIG_INIT function initializes a WDF_USB_CONTINUOUS_READER_CONFIG structure.

Syntax


VOID WDF_USB_CONTINUOUS_READER_CONFIG_INIT(
  _Out_  PWDF_USB_CONTINUOUS_READER_CONFIG Config,
  _In_   PFN_WDF_USB_READER_COMPLETION_ROUTINE EvtUsbTargetPipeReadComplete,
  _In_   WDFCONTEXT EvtUsbTargetPipeReadCompleteContext,
  _In_   size_t TransferLength
);

Parameters

Config [out]

A pointer to a WDF_USB_CONTINUOUS_READER_CONFIG structure.

EvtUsbTargetPipeReadComplete [in]

A pointer to the driver's EvtUsbTargetPipeReadComplete callback function.

EvtUsbTargetPipeReadCompleteContext [in]

An untyped pointer to driver-defined context information that the framework passes to the driver's EvtUsbTargetPipeReadComplete callback function.

TransferLength [in]

The maximum length, in bytes, of data that can be received from the device.

Return value

None

Remarks

The WDF_USB_CONTINUOUS_READER_CONFIG_INIT function zeros the specified WDF_USB_CONTINUOUS_READER_CONFIG structure and sets the structure's Size member. It also sets the structure's EvtUsbTargetPipeReadComplete, EvtUsbTargetPipeReadCompleteContext, and TransferLength members to the specified values.

Note that WDF_USB_CONTINUOUS_READER_CONFIG_INIT does not set the structure's EvtUsbTargetPipeReadersFailed member.

After calling WDF_USB_CONTINUOUS_READER_CONFIG_INIT, the driver can optionally add a EvtUsbTargetPipeReadersFailed pointer to the WDF_USB_CONTINUOUS_READER_CONFIG structure.

For a code example that uses WDF_USB_CONTINUOUS_READER_CONFIG_INIT, see WdfUsbTargetPipeConfigContinuousReader.

Requirements

Minimum KMDF version

1.0

Minimum UMDF version

2.0

Header

Wdfusb.h (include Wdfusb.h)

See also

EvtUsbTargetPipeReadComplete
WDF_USB_CONTINUOUS_READER_CONFIG

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft. All rights reserved.