Bewerken

Delen via


EVT_UFX_DEVICE_PROPRIETARY_CHARGER_SET_PROPERTY callback function (ufxclient.h)

The client driver's implementation to set charger information that it uses to enable charging over USB.

Syntax

EVT_UFX_DEVICE_PROPRIETARY_CHARGER_SET_PROPERTY EvtUfxDeviceProprietaryChargerSetProperty;

void EvtUfxDeviceProprietaryChargerSetProperty(
  [in] UFXDEVICE unnamedParam1,
  [in] WDFREQUEST unnamedParam2
)
{...}

Parameters

[in] unnamedParam1

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

[in] unnamedParam2

The handle framework request object that for an IOCTL_INTERNAL_CONFIGURE_CHARGER_PROPERTY request from the battery minidriver.

Return value

None

Remarks

EVT_UFX_DEVICE_PROPRIETARY_CHARGER_SET_PROPERTY is an optional event callback.

WdfRequest is contains a request for IOCTL_INTERNAL_CONFIGURE_CHARGER_PROPERTY, which specifies a charger ID that is known by the client driver and battery miniclass driver, and a voltage value in millivolts. The client driver can use this information to enable charging over the USB port at an appropriate current/voltage level.

Requirements

Requirement Value
Target Platform Windows
Minimum KMDF version 1.0
Minimum UMDF version 2.0
Header ufxclient.h
IRQL PASSIVE_LEVEL

See also

UfxDeviceCreate

UfxDeviceProprietaryChargerDetectComplete