EVT_UCX_USBDEVICE_ADDRESS callback function (ucxusbdevice.h)
The client driver's implementation that UCX calls to address the USB device.
Syntax
EVT_UCX_USBDEVICE_ADDRESS EvtUcxUsbdeviceAddress;
void EvtUcxUsbdeviceAddress(
[in] UCXCONTROLLER UcxController,
[in] WDFREQUEST Request
)
{...}
Parameters
[in] UcxController
A handle to the UCX controller that the client driver received in a previous call to the UcxControllerCreate method.
[in] Request
A structure of type USBDEVICE_ADDRESS.
Return value
None
Remarks
The UCX client driver registers this callback function with the USB host controller extension (UCX) by calling the UcxUsbDeviceCreate method.
The client driver returns completion status in Request. The driver can complete the WDFREQUEST asynchronously.
Examples
VOID
UsbDevice_EvtUcxUsbDeviceAddress(
UCXCONTROLLER UcxController,
WDFREQUEST Request
)
{
UNREFERENCED_PARAMETER(UcxController);
DbgTrace(TL_INFO, UsbDevice, "UsbDevice_EvtUcxUsbDeviceAddress");
WDF_REQUEST_PARAMETERS_INIT(&wdfRequestParams);
WdfRequestGetParameters(WdfRequest, &wdfRequestParams);
usbDeviceAddress = (PUSBDEVICE_ADDRESS)wdfRequestParams.Parameters.Others.Arg1;
...
WdfRequestComplete(Request, STATUS_SUCCESS);
}
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Minimum KMDF version | 1.0 |
Minimum UMDF version | 2.0 |
Header | ucxusbdevice.h (include Ucxclass.h) |
IRQL | DISPATCH_LEVEL |