GPIO_CONNECT_IO_PINS_MODE列舉 (gpioclx.h)
GPIO_CONNECT_IO_PINS_MODE 列舉指出是否已將一組一般用途 I/O (GPIO) 針腳設定為輸入或輸出。
語法
typedef enum _GPIO_CONNECT_IO_PINS_MODE {
ConnectModeInvalid,
ConnectModeInput,
ConnectModeOutput,
ConnectModeMaximum
} GPIO_CONNECT_IO_PINS_MODE, *PGPIO_CONNECT_IO_PINS_MODE;
常數
ConnectModeInvalid 此組 GPIO 針腳的連接模式(輸入或輸出)未初始化。 |
ConnectModeInput 這組 GPIO 針腳會設定為數據輸入。 |
ConnectModeOutput 這組 GPIO 針腳會設定為資料輸出。 |
ConnectModeMaximum 列舉中的最大值。 |
言論
GPIO_CONNECT_IO_PINS_PARAMETERS 結構的 ConnectMode 成員包含 GPIO_CONNECT_IO_PINS_MODE 列舉常數。
ConnectModeInput 列舉常數卷標一組可由 IOCTL_GPIO_READ_PINS 要求讀取的 GPIO 針腳。 ConnectModeOutput 會標記一組可由 IOCTL_GPIO_WRITE_PINS 要求寫入的 GPIO 針腳。
要求
要求 | 價值 |
---|---|
最低支援的用戶端 | 從 Windows 8 開始支援。 |
標頭 | gpioclx.h |