UID | title | description | old-location | tech.root | ms.date | keywords | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | f1_keywords | topic_type | api_type | api_location | api_name | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NC:ucxusbdevice.EVT_UCX_USBDEVICE_ENDPOINTS_CONFIGURE |
EVT_UCX_USBDEVICE_ENDPOINTS_CONFIGURE (ucxusbdevice.h) |
The client driver's implementation that UCX calls to configure endpoints in the controller. |
buses\evt_ucx_usbdevice_endpoints_configure.htm |
usbref |
05/07/2018 |
|
EVT_UCX_USBDEVICE_ENDPOINTS_CONFIGURE, EVT_UCX_USBDEVICE_ENDPOINTS_CONFIGURE callback, EvtUcxUsbDeviceEndpointsConfigure, EvtUcxUsbDeviceEndpointsConfigure callback function [Buses], PEVT_UCX_USBDEVICE_ENDPOINTS_CONFIGURE, PEVT_UCX_USBDEVICE_ENDPOINTS_CONFIGURE callback function pointer [Buses], buses.evt_ucx_usbdevice_endpoints_configure, ucxusbdevice/EvtUcxUsbDeviceEndpointsConfigure |
ucxusbdevice.h |
Ucxclass.h |
Windows |
1.0 |
2.0 |
DISPATCH_LEVEL |
Windows |
|
|
|
|
|
The client driver's implementation that UCX calls to configure endpoints in the controller.
A handle to the UCX controller that the client driver received in a previous call to the UcxControllerCreate method.
Contains a structure of type ENDPOINTS_CONFIGURE structure.
The UCX client driver registers this callback function with the USB host controller extension (UCX) by calling the UcxUsbDeviceCreate method.
In the callback, the driver programs or deprograms the endpoints, as described in the ENDPOINTS_CONFIGURE structure.
This callback does not enable or disable the default endpoint. The default endpoint’s state is tied to the state of the device. The driver implements enable and disable operations in the EVT_UCX_USBDEVICE_DISABLE and EVT_UCX_USBDEVICE_ENABLE callback functions.
The client driver returns completion status in Request. The driver can complete the WDFREQUEST asynchronously.
VOID
UsbDevice_EvtUcxUsbDeviceEndpointsConfigure(
UCXCONTROLLER UcxController,
WDFREQUEST Request
)
{
UNREFERENCED_PARAMETER(UcxController);
DbgTrace(TL_INFO, UsbDevice, "UsbDevice_EvtUcxUsbDeviceEndpointsConfigure");
WDF_REQUEST_PARAMETERS_INIT(&wdfRequestParams);
WdfRequestGetParameters(WdfRequest, &wdfRequestParams);
...
endpointsConfigure = (PENDPOINTS_CONFIGURE)wdfRequestParams.Parameters.Others.Arg1;
...
WdfRequestComplete(Request, STATUS_SUCCESS);
}