EVT_UFX_DEVICE_ADDRESSED função de retorno de chamada (ufxclient.h)
A implementação do driver cliente para atribuir um endereço no controlador de função.
Sintaxe
EVT_UFX_DEVICE_ADDRESSED EvtUfxDeviceAddressed;
void EvtUfxDeviceAddressed(
[in] UFXDEVICE unnamedParam1,
[in] USHORT unnamedParam2
)
{...}
Parâmetros
[in] unnamedParam1
O identificador de um objeto de dispositivo USB que o driver cliente recebeu em uma chamada anterior para o UfxDeviceCreate.
[in] unnamedParam2
Novo endereço de dispositivo USB a ser atribuído.
Valor de retorno
Nenhum
Observações
O driver cliente do controlador de host de função registra sua implementação de EVT_UFX_DEVICE_ADDRESSED com a extensão da classe de função USB (UFX) chamando o método UfxDeviceCreate.
O driver cliente indica a conclusão desse evento chamando o método UfxDeviceEventComplete.
Exemplos
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();
}
Requisitos
Requisito | Valor |
---|---|
da Plataforma de Destino | Windows |
versão mínima do KMDF | 1.0 |
versão mínima do UMDF | 2.0 |
cabeçalho | ufxclient.h |
IRQL | <=DISPATCH_LEVEL |