EVT_UFX_DEVICE_REMOTE_WAKEUP_SIGNAL função de retorno de chamada (ufxclient.h)
A implementação do driver cliente para iniciar a ativação remota no controlador de funções.
Sintaxe
EVT_UFX_DEVICE_REMOTE_WAKEUP_SIGNAL EvtUfxDeviceRemoteWakeupSignal;
void EvtUfxDeviceRemoteWakeupSignal(
[in] UFXDEVICE unnamedParam1
)
{...}
Parâmetros
[in] unnamedParam1
O identificador de um objeto de dispositivo USB que o driver cliente recebeu em uma chamada anterior para o método UfxDeviceCreate.
Valor de retorno
Nenhum
Observações
O driver cliente do controlador de host de função registra sua implementação de EVT_UFX_DEVICE_REMOTE_WAKEUP_SIGNAL com a extensão de 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_REMOTE_WAKEUP_SIGNAL UfxDevice_EvtDeviceRemoteWakeupSignal;
VOID
UfxDevice_EvtDeviceRemoteWakeupSignal (
_In_ UFXDEVICE UfxDevice
)
/*++
Routine Description:
Signals Remote Wakeup to the Host by issuing a link state change command.
It acquires and releases the power reference to ensure a valid power state
before accessing the device.
Arguments:
UfxDevice - UFXDEVICE object representing the device.
--*/
{
NTSTATUS Status;
PUFXDEVICE_CONTEXT DeviceContext;
PAGED_CODE();
TraceEntry();
DeviceContext = UfxDeviceGetContext(UfxDevice);
//
// Stop Idle to ensure the device is in working state
//
Status = WdfDeviceStopIdle(DeviceContext->FdoWdfDevice, TRUE);
if (!NT_SUCCESS(Status)) {
TraceError("Failed to stop idle %!STATUS!", Status);
goto End;
}
//
// Issue a Link State Change Request.
//
//
// #### TODO: Insert code to issue a link state change on the controller ####
//
WdfDeviceResumeIdle(DeviceContext->FdoWdfDevice);
End:
UfxDeviceEventComplete(UfxDevice, Status);
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 | PASSIVE_LEVEL |
Consulte também
- UfxDeviceCreate
- UfxDeviceEventComplete