Condividi tramite


struttura CLIENT_CONTROLLER_QUERY_SET_INFORMATION_INPUT (gpioclx.h)

La struttura CLIENT_CONTROLLER_QUERY_SET_INFORMATION_INPUT contiene una richiesta per gli attributi hardware del controller GPIO (General Purpose I/O).

Sintassi

typedef struct _CLIENT_CONTROLLER_QUERY_SET_INFORMATION_INPUT {
  CLIENT_CONTROLLER_QUERY_SET_REQUEST_TYPE RequestType;
  USHORT                                   Size;
  ULONG                                    Flags;
  union {
    struct {
      BANK_ID BankId;
    } BankPowerInformation;
    struct {
      WDFCMRESLIST ResourcesTranslated;
      WDFCMRESLIST ResourcesRaw;
      USHORT       TotalBanks;
    } BankInterruptBinding;
    struct {
      PVOID  InputBuffer;
      SIZE_T InputBufferSize;
      SIZE_T OutputBufferSize;
      USHORT TotalBanks;
    } ControllerFunctionBankMapping;
  };
} CLIENT_CONTROLLER_QUERY_SET_INFORMATION_INPUT, *PCLIENT_CONTROLLER_QUERY_SET_INFORMATION_INPUT;

Members

RequestType

Tipo di informazioni sugli attributi richieste. Questo membro è impostato su un valore di enumerazione CLIENT_CONTROLLER_QUERY_SET_REQUEST_TYPE .

Size

Specifica le dimensioni, in byte, della struttura CLIENT_CONTROLLER_QUERY_SET_INFORMATION_INPUT .

Flags

Set di bit di flag che forniscono informazioni aggiuntive sul tipo di richiesta di attributo indicato dal membro RequestType . Nessun flag è attualmente definito per il membro Flags .

BankPowerInformation

Struttura che contiene informazioni sulla banca GPIO i cui attributi di alimentazione vengono richiesti.

BankPowerInformation.BankId

Identificatore per una banca di pin GPIO. Se M è il numero di banche nel controller GPIO, BankId è un numero intero compreso nell'intervallo da 0 a M-1. L'estensione del framework GPIO (GpioClx) ha ottenuto in precedenza il numero di banche nel controller dalla funzione di callback degli eventi CLIENT_QueryControllerBasicInformation . Per altre informazioni, vedere La sezione Osservazioni in CLIENT_CONTROLLER_BASIC_INFORMATION.

BankInterruptBinding

Struttura che contiene informazioni sulle risorse di interrupt assegnate al controller GPIO.

BankInterruptBinding.ResourcesTranslated

Handle per un oggetto elenco risorse framework che identifica le risorse hardware tradotte assegnate dal gestore Plug and Play al dispositivo.

BankInterruptBinding.ResourcesRaw

Handle per un oggetto elenco risorse framework che identifica le risorse hardware non elaborate assegnate dal gestore Plug and Play al dispositivo.

BankInterruptBinding.TotalBanks

Numero di banche nel controller GPIO. Questo membro indica la lunghezza prevista della matrice BankInterruptBinding.ResourceMapping nella struttura CLIENT_CONTROLLER_QUERY_SET_INFORMATION_OUTPUT allocata dal chiamante, se il chiamante fornisce un puntatore non NULL a questa struttura.

ControllerFunctionBankMapping

Struttura che contiene informazioni su una richiesta di controllo I/O (IOCTL).

ControllerFunctionBankMapping.InputBuffer

Puntatore al buffer di input per IOCTL.

ControllerFunctionBankMapping.InputBufferSize

Dimensione, in byte, del buffer di input per IOCTL.

ControllerFunctionBankMapping.OutputBufferSize

Dimensioni, in byte, del buffer di output per IOCTL.

ControllerFunctionBankMapping.TotalBanks

Numero di banche nel controller GPIO. Questo membro indica la lunghezza prevista della matrice ControllerFunctionBankMapping.Mapping nella struttura CLIENT_CONTROLLER_QUERY_SET_INFORMATION_OUTPUT allocata dal chiamante, se il chiamante fornisce un puntatore non NULL a questa struttura.

Commenti

L'unione senza nome contiene informazioni di input per i vari tipi di richieste di attributi. Il membro RequestType determina quale membro di questa unione viene utilizzata. Nella tabella seguente viene illustrato il membro unione che corrisponde a ogni valore RequestType valido.

Valore RequestType Membro dell'unione
QueryBankPowerInformation BankPowerInformation
QueryBankInterruptBindingInformation BankInterruptBinding
QueryControllerFunctionBankMappingInformation ControllerFunctionBankMapping

Il parametro InputBuffer della funzione CLIENT_QuerySetControllerInformation è un puntatore a una struttura CLIENT_CONTROLLER_QUERY_SET_INFORMATION_INPUT .

Requisiti

Requisito Valore
Client minimo supportato Supportato a partire da Windows 8.
Intestazione gpioclx.h

Vedi anche