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;
Membri
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. Non sono attualmente definiti flag per il membro flag.
BankPowerInformation
Struttura che contiene informazioni sulla banca GPIO i cui attributi di alimentazione vengono richiesti.
BankPowerInformation.BankId
Identificatore di una banca di pin GPIO. Se M è il numero di banche nel controller GPIO, BankId è un numero intero compreso tra 0 e M-1. L'estensione del framework GPIO (GpioClx) ottenuta in precedenza il numero di banche nel controller dalla funzione di callback degli eventi CLIENT_QueryControllerBasicInformation. Per altre informazioni, vedere 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 del BankInterruptBinding.ResourceMapping matrice 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
Dimensioni, 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.
Osservazioni
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 utilizzato. Nella tabella seguente viene illustrato il membro dell'unione che corrisponde a ogni valore RequestType valido.
Valore RequestType | Leghista |
---|---|
QueryBankPowerInformation | BankPowerInformation |
QueryBankInterruptBindingInformation | BankInterruptBinding |
QueryControllerFunctionBankMappingInformation | ControllerFunctionBankMapping |
Il parametro InputBuffer della funzione CLIENT_QuerySetControllerInformation è un puntatore a una struttura CLIENT_CONTROLLER_QUERY_SET_INFORMATION_INPUT.
Fabbisogno
Requisito | Valore |
---|---|
client minimo supportato | Supportato a partire da Windows 8. |
intestazione | gpioclx.h |