// gpioclx.h
typedef struct _GPIO_WRITE_PINS_PARAMETERS {
BANK_ID BankId;
PPIN_NUMBER PinNumberTable;
ULONG PinCount;
PVOID Buffer;
GPIO_WRITE_PINS_FLAGS Flags;
PVOID Reserved;
} GPIO_WRITE_PINS_PARAMETERS, *PGPIO_WRITE_PINS_PARAMETERS;
View the official Windows Driver Kit DDI referenceNo description available.
The GPIO_WRITE_PINS_PARAMETERS structure describes a write operation on a group of general-purpose I/O (GPIO) pins.
BankIdThe identifier for the bank of GPIO pins that contains the pins to write to. 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.
PinNumberTableA pointer to an array of bank-relative PIN_NUMBER values. Each array element specifies the number of a GPIO pin to write to. If this bank has N pins, the pins are numbered 0 to N–1. The number of elements in this array is specified by the PinCount member.
PinCountThe number of elements in the PinNumberTable array.
BufferA pointer to a buffer that contains the bit values that this callback function is to write to the GPIO pins that are identified in the PinNumberTable array. The function writes bit 0 (the least significant bit) from the buffer to the GPIO pin that is identified by array element 0, writes bit 1 from the buffer to the pin identified by array element 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_WriteGpioPins event callback function is a pointer to a caller-allocated GPIO_WRITE_PINS_PARAMETERS structure. All of the pins that this function writes to are part of the same bank of GPIO pins.
CLIENT_CONTROLLER_BASIC_INFORMATION
CLIENT_QueryControllerBasicInformation