다음을 통해 공유


HcdPdd_CheckConfigPower (Windows CE 5.0)

Send Feedback

This function checks power for a requested configuration.

BOOLHcdPdd_CheckConfigPower(UCHARbPort,DWORDdwConfigPower,DWORDdwTotalPower);

Parameters

  • bPort
    [in] Root hub port number.
  • dwConfigPower
    [in] Power, in milliamps (mA), required by the configuration being checked.
  • dwTotalPower
    [in] Power, in mA, drawn by other devices on this port.

Return Values

TRUE indicates that the USB system supports the configuration. FALSE indicates that a configuration is not supported.

Remarks

When a device is initially attached to the bus, the host controller interface (HCI) selects a configuration, based on the power requirements of the system, by calling this function for each configuration until the HCI finds one that is supported. If no configurations in a device are supported, the device is not configured. This enables the platform to perform additional processing if necessary, such as checking whether the Windows CE–based platform is using batteries or external power, or possibly sampling the power status of the current system.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Hcdddsi.h or Ohcdddsi.h.

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.