Bewerken

Delen via


CLIENT_CONTROLLER_QUERY_SET_INFORMATION_OUTPUT structure (gpioclx.h)

The CLIENT_CONTROLLER_QUERY_SET_INFORMATION_OUTPUT structure contains a set of general-purpose I/O (GPIO) controller attributes that were requested by the GPIO framework extension (GpioClx).

Syntax

typedef struct _CLIENT_CONTROLLER_QUERY_SET_INFORMATION_OUTPUT {
  USHORT Version;
  USHORT Size;
  union {
    CLIENT_QUERY_BANK_POWER_INFORMATION_OUTPUT BankPowerInformation;
    struct {
      ULONG ResourceMapping[ANYSIZE_ARRAY];
    } BankInterruptBinding;
    struct {
      BOOLEAN Mapping[ANYSIZE_ARRAY];
    } ControllerFunctionBankMapping;
  };
} CLIENT_CONTROLLER_QUERY_SET_INFORMATION_OUTPUT, *PCLIENT_CONTROLLER_QUERY_SET_INFORMATION_OUTPUT;

Members

Version

Specifies the version number of this structure.

Size

Specifies the size, in bytes, of this structure.

BankPowerInformation

A CLIENT_QUERY_BANK_POWER_INFORMATION_OUTPUT structure that contains the power attributes of the GPIO bank that is identified by the BankPowerInformation.BankId member of the corresponding CLIENT_CONTROLLER_QUERY_SET_INFORMATION_INPUT structure.

BankInterruptBinding

A structure that contains information about the binding of interrupt resources to GPIO banks.

BankInterruptBinding.ResourceMapping[ANYSIZE_ARRAY]

An array of interrupt resource numbers. The number of elements in the array equals the number of GPIO banks. If N is the number of banks in the GPIO controller, the banks are numbered 0 to N–1. Element 0 of the array contains the interrupt resource number that is bound to bank 0, element 1 contains the interrupt resource number that is bound to bank 1, and so on. No more than one interrupt resource can be bound to a GPIO bank, but two or more banks might share an interrupt resource. If a bank is not bound to an interrupt resource, the corresponding array element is set to GPIO_BANK_INTERRUPT_BINDING_RESERVED_INDEX (0xffff).

An interrupt resource is identified by its resource number, which is the index of the resource in the ResourcesTranslated or ResourcesRaw resource list in the BankInterruptBinding member of the CLIENT_CONTROLLER_QUERY_SET_INFORMATION_INPUT structure. If a list contains M resources, the resources are numbered 0 to M-1. Only resource numbers that correspond to interrupt resources in the resource list can appear in the ResourceMapping array.

ControllerFunctionBankMapping

A structure that contains information about the GPIO banks that must be in the F0 (fully on) power state to handle an I/O control request (IOCTL).

ControllerFunctionBankMapping.Mapping[ANYSIZE_ARRAY]

An array of BOOLEAN values that indicates the mapping of required F0 power states to GPIO banks. The number of elements in the array equals the number of GPIO banks. If N is the number of banks in the GPIO controller, the banks are numbered 0 to N–1. Element 0 of the array contains the mapping for bank 0, element 1 contains the mapping for bank 1, and so on. If an element is TRUE, the corresponding GPIO bank must be in the F0 power state to handle the IOCTL. If an element is FALSE, the corresponding bank is not required to be in the F0 power state.

Remarks

The unnamed union contains output information for the various types of attribute requests. The RequestType member of the corresponding CLIENT_CONTROLLER_QUERY_SET_INFORMATION_INPUT structure determines which of these members is used.

The optional OutputBuffer parameter of the CLIENT_QuerySetControllerInformation function is a pointer to a caller-allocated CLIENT_CONTROLLER_QUERY_SET_INFORMATION_OUTPUT structure. The function writes the requested attribute information to this structure, if OutputBuffer is non-NULL.

Requirements

Requirement Value
Minimum supported client Supported starting with Windows 8.
Header gpioclx.h

See also