PEP_ACPI_INITIALIZE_GPIO_IO_RESOURCE function (pep_x.h)
The PEP_ACPI_INITIALIZE_GPIO_IO_RESOURCE function initializes a platform extension plug-in's (PEP) PEP_ACPI_GPIO_RESOURCE structure.
Syntax
void PEP_ACPI_INITIALIZE_GPIO_IO_RESOURCE(
[in] BOOLEAN Shareable,
[in] BOOLEAN CanWake,
[in] GPIO_PIN_CONFIG_TYPE PinConfig,
[in] USHORT DebounceTimeout,
[in] USHORT DriveStrength,
[in] GPIO_PIN_IORESTRICTION_TYPE IoRestriction,
[in] UCHAR ResourceSourceIndex,
[in] PUNICODE_STRING ResourceSourceName,
[in] BOOLEAN ResourceUsage,
[in] PUCHAR VendorData,
[in] USHORT VendorDataLength,
[in] PUSHORT PinTable,
[in] USHORT PinCount,
[out] PPEP_ACPI_RESOURCE Resource
);
Parameters
[in] Shareable
Indicates if the device can be shared.
[in] CanWake
Indicates if the device can be woken from a low-power state.
[in] PinConfig
A GPIO_PIN_CONFIG_TYPE enumeration value that identifies the GPIO pin configuration type.
[in] DebounceTimeout
Specifies the hardware debounce wait time, in hundredths of milliseconds.
[in] DriveStrength
[in] IoRestriction
[in] ResourceSourceIndex
This parameter should always be zero.
[in] ResourceSourceName
This parameter should always be "ResourceConsumer."
[in] ResourceUsage
Indicates if this device is in use.
[in] VendorData
A pointer to a raw data buffer containing vendor-defined byte data to be decoded by the OS driver.
[in] VendorDataLength
The size of the buffer in the VendorData parameter.
[in] PinTable
A list of pin numbers on the resource.
[in] PinCount
The number of pins described by the PinTable parameter.
[out] Resource
A pointer to the resource. The structure behind the pointer is of type PEP_ACPI_GPIO_RESOURCE.
Return value
None
Requirements
Requirement | Value |
---|---|
Minimum supported client | Supported starting with Windows 10. |
Target Platform | Windows |
Header | pep_x.h (include Pep_x.h) |