EVT_UFX_DEVICE_ADDRESSED - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ufxclient.h

EVT_UFX_DEVICE_ADDRESSED EvtUfxDeviceAddressed;

VOID EvtUfxDeviceAddressed(
  [in] UFXDEVICE unnamedParam1,
  [in] USHORT unnamedParam2
)
{...}
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-ufxclient-evt_ufx_device_addressed)

EVT_UFX_DEVICE_ADDRESSED callback function

Description

The client driver's implementation to assign an address on the function controller.

Parameters

unnamedParam1 [in]

The handle to a USB device object that the client driver received in a previous call to the UfxDeviceCreate.

unnamedParam2 [in]

New USB device address to assign.

Remarks

The client driver for the function host controller registers its EVT_UFX_DEVICE_ADDRESSED 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_ADDRESSED UfxDevice_EvtDeviceAddressed;

VOID
UfxDevice_EvtDeviceAddressed (
    _In_ UFXDEVICE UfxDevice,
    _In_ USHORT DeviceAddress
    )
/*++

Routine Description:

    EvtDeviceAddressed handler for the UFXDEVICE object.
    Sets the Address indicated by 'DeviceAddress' on the controller.

Arguments:

    UfxDevice - UFXDEVICE object representing the device.

    DeviceAddress - USB Device Address, as determined by the UFX.

--*/
{
    UNREFERENCED_PARAMETER(DeviceAddress);

    TraceEntry();

    //
    // Set the device address on the controller
    //

    //
    // #### Insert code to set the device address on controller ####
    //

    UfxDeviceEventComplete(UfxDevice, STATUS_SUCCESS);

    TraceExit();
}

See also

UfxDeviceCreate

UfxDeviceEventComplete