EVT_UFX_DEVICE_TEST_MODE_SET callback function

The client driver's implementation to set the test mode of the function controller.

Syntax

EVT_UFX_DEVICE_TEST_MODE_SET EvtUfxDeviceTestModeSet;

void EvtUfxDeviceTestModeSet(
  UFXDEVICE ,
  ULONG 
)
{...}

Parameters

arg1

arg2

Return Value

This callback function does not return a value.

Remarks

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.

Examples

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();

}

Requirements

   
Target Platform Windows
Minimum KMDF version 1.0
Minimum UMDF version 2.0
Header ufxclient.h
IRQL "<=DISPATCH_LEVEL"

See Also

UfxDeviceCreate

UfxDeviceEventComplete