You are here

Digital Inputs

Each of 24 USB-I/O adapter GPIO pins can be configured as a digital input. The pins can be turned into the digital input mode with GPIO_SET_CFG command. Use GPIO_SET_IN_CFG command to configure input mode settings for specified I/O pins.

The values for all 24 GPIO pins can be retrieved with GPIO_GET_VAL command. For digital input pins this command returns current input values.

You can configure digital input pins to send GPIO_EV_IN event to your application. The conditions of the event generation are defined with three bytes: Byte 4: PHASE, Byte 5: DEBOUNCE and Byte 6: REPEAT of GPIO_SET_IN_CFG command. For more detailed information see Section 6.1, “Digital Input Event”.