다음을 통해 공유


UfxDevicePortDetectComplete 함수(ufxclient.h)

검색된 포트 유형에 대해 UFX에 알렸습니다.

구문

void UfxDevicePortDetectComplete(
  [in] UFXDEVICE       UfxDevice,
  [in] USBFN_PORT_TYPE PortType
);

매개 변수

[in] UfxDevice

UfxDeviceCreate를 호출하여 드라이버가 만든 UFX 디바이스 개체에 대한 핸들입니다.

[in] PortType

USBFN_PORT_TYPE 형식의 열거형 값을 포함합니다.

반환 값

없음

설명

클라이언트 드라이버는 포트 검색이 완료되면 UfxDevicePortDetectComplete 를 호출합니다. 일부 플랫폼에서 UFX는 보고된 포트 유형을 사용하여 배터리 관리자에게 USB 포트에서 그릴 수 있는 최대 전류를 알릴 수 있습니다.

클라이언트 드라이버는 일반적으로 이 예제와 같이 EVT_UFX_DEVICE_PORT_DETECT 콜백 함수에서 UfxDevicePortDetectComplete를 호출합니다.

    // In this example we will return an unknown port type.  This will allow UFX to connect to a host if
    // one is present.  UFX will timeout after 5 seconds if no host is present and transition to
    // an invalid charger type, which will allow the controller to exit D0.
    //
    UfxDevicePortDetectComplete(ControllerContext->UfxDevice, UsbfnUnknownPort);

요구 사항

요구 사항
지원되는 최소 클라이언트 Windows 10
대상 플랫폼 Windows
헤더 ufxclient.h
라이브러리 ufxstub.lib
IRQL DISPATCH_LEVEL