// ucmtypes.h
VOID UCM_PD_POWER_DATA_OBJECT_INIT_ULONG(
[out] PUCM_PD_POWER_DATA_OBJECT Pdo,
[in] ULONG UlongInLittleEndian
);
View the official Windows Driver Kit DDI referenceNo description available.
Initializes a UCM_PD_POWER_DATA_OBJECT structure by interpreting Power Data Object values and sets each field correctly.
Pdo [out]A pointer to a UCM_PD_POWER_DATA_OBJECT structure.
UlongInLittleEndian [in]The ULONG value to set in the Ul member of UCM_PD_POWER_DATA_OBJECT.
A Power Data Object, as defined by the Power Delivery specification, is a 32-bit value. The hardware is expected to retrieve the Power Data Objects as 32-bit values. This utility function initializes a UCM_PD_POWER_DATA_OBJECT structure by interpreting those values and setting each field correctly.
The 4 byte value is expected to be in little-endian format. The structure is 4 bytes and the client driver can memcopy the Power Data Objects from the hardware into an array of UCM_PD_POWER_DATA_OBJECT structures.