// ufxclient.h
EVT_UFX_DEVICE_TEST_MODE_SET EvtUfxDeviceTestModeSet;
VOID EvtUfxDeviceTestModeSet(
[in] UFXDEVICE unnamedParam1,
[in] ULONG unnamedParam2
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The client driver's implementation to set the test mode of the function controller.
unnamedParam1 [in]The handle to a USB device object that the client driver received in a previous call to the UfxDeviceCreate.
unnamedParam2 [in]Test mode selector value as defined by the USB 2.0 Specification. These values are defined in usbfnbase.h
The client driver for the function host controller registers its EVT_UFX_DEVICE_TEST_MODE_SET implementation with the USB function class extension (UFX) by calling the UfxDeviceCreate method.
The client driver indicates completion of this event by calling the UfxDeviceEventComplete method.
EVT_UFX_DEVICE_TEST_MODE_SET UfxDevice_EvtDeviceTestModeSet;
VOID
UfxDevice_EvtDeviceTestModeSet (
_In_ UFXDEVICE UfxDevice,
_In_ ULONG TestMode
)
/*++
Routine Description:
EvtDeviceTestModeSet handler for the UFXDEVICE object.
Handles a set test mode request from the host. Places the controller into
the specified test mode.
Arguments:
UfxDevice - UFXDEVICE object representing the device.
TestMode - Test mode value. See Section 7.1.20 of the USB 2.0 specification for definitions of
each test mode.
--*/
{
NTSTATUS Status;
UNREFERENCED_PARAMETER(TestMode);
TraceEntry();
//
// #### TODO: Insert code to put the controller into the specified test mode ####
//
Status = STATUS_SUCCESS;
UfxDeviceEventComplete(UfxDevice, Status);
TraceExit();
}