PEP_ACPI_INITIALIZE_GPIO_INT_RESOURCE function (pepfx.h)

The PEP_ACPI_INITIALIZE_GPIO_INT_RESOURCE function initializes a platform extension plug-in's (PEP) PEP_ACPI_GPIO_RESOURCE structure.

Syntax

void PEP_ACPI_INITIALIZE_GPIO_INT_RESOURCE(
  [in]  KINTERRUPT_MODE      InterruptType,
  [in]  KINTERRUPT_POLARITY  LevelType,
  [in]  BOOLEAN              Shareable,
  [in]  BOOLEAN              CanWake,
  [in]  GPIO_PIN_CONFIG_TYPE PinConfig,
  [in]  USHORT               DebounceTimeout,
  [in]  UCHAR                ResourceSourceIndex,
  [in]  PUNICODE_STRING      ResourceSourceName,
  [in]  BOOLEAN              ResourceUsage,
  [in]  PUCHAR               VendorData,
  [in]  USHORT               VendorDataLength,
  [in]  PUSHORT              PinTable,
  [in]  UCHAR                PinCount,
  [out] PPEP_ACPI_RESOURCE   Resource
);

Parameters

[in] InterruptType

A KINTERRUPT_MODE enumeration value that identifies the interrupt type.

[in] LevelType

A KINTERRUPT_POLARITY enumeration value that identifies how a device signals an interrupt request on an interrupt line.

[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] 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 pepfx.h (include Pep_x.h)

See also

GPIO_PIN_CONFIG_TYPE

KINTERRUPT_MODE

KINTERRUPT_POLARITY

PEP_ACPI_GPIO_RESOURCE