// gpioclx.h
typedef struct _GPIO_WRITE_PINS_MASK_PARAMETERS {
BANK_ID BankId;
ULONG64 SetMask;
ULONG64 ClearMask;
GPIO_WRITE_PINS_FLAGS Flags;
PVOID Reserved;
} GPIO_WRITE_PINS_MASK_PARAMETERS, *PGPIO_WRITE_PINS_MASK_PARAMETERS;
View the official Windows Driver Kit DDI referenceNo description available.
The GPIO_WRITE_PINS_MASK_PARAMETERS structure describes a write operation on a bank of general-purpose I/O (GPIO) pins.
BankIdThe identifier for this bank of GPIO pins. If N is the number of banks in the GPIO controller, BankId is an integer in the range 0 to N–1. The GPIO framework extension (GpioClx) previously obtained the number of banks in the controller from the CLIENT_QueryControllerBasicInformation event callback function. For more information, see Remarks in CLIENT_CONTROLLER_BASIC_INFORMATION.
SetMaskA mask that specifies the GPIO pins to set in this bank. If a bit in this mask is set to 1, the GPIO controller driver sets the corresponding GPIO pin to the value 1. If N is the number of pins in this bank, the pins are numbered 0 to N–1. If bit 0 (the least significant bit) of the mask is 1, the function sets pin number 0; if bit 1 of the mask is 1, the function sets pin number 1; and so on.
ClearMaskA mask that specifies the GPIO pins to clear in this bank. If a bit in this mask is set to 1, the GPIO controller driver sets the corresponding GPIO pin to the value 0. If bit 0 of the mask is 1, the function clears pin 0; if bit 1 of the mask is 1, the function clears pin 1; and so on.
FlagsA set of flags to control the GPIO pin write operation. No flags are currently defined for this operation.
ReservedReserved for system use.
The WriteParameters parameter of the CLIENT_WriteGpioPinsUsingMask event callback function is a pointer to a caller-allocated GPIO_WRITE_PINS_MASK_PARAMETERS structure.
CLIENT_CONTROLLER_BASIC_INFORMATION
CLIENT_QueryControllerBasicInformation