GPIO Commands And Responses
The following commands and responses are used to control and monitor the GPIO module of a DLN-series adapter.
| Command/Response | Description |
|---|---|
| DLN_GPIO_GET_PORT_COUNT | Command is used to retrieve the number of GPIO ports available in your DLN-series adapter. |
| DLN_GPIO_GET_PIN_COUNT | Command is used to retrieve the total number of GPIO pins available in the DLN-series adapter. |
| DLN_GPIO_PIN_SET_CFG | Command is used to change the configuration of a single GPIO pin and set the conditions of DLN_GPIO_EVENT generation. |
| DLN_GPIO_PIN_GET_CFG | Command is used to retrieve the current configuration settings of a single GPIO pin. |
| DLN_GPIO_PORT_SET_CFG | Command is used to change the configuration of the GPIO pins from the specified port and set the conditions of the DLN_GPIO_CONDITION_MET_EV event generation. |
| DLN_GPIO_PORT_GET_CFG | Command is used to retrieve the current configuration settings of a GPIO port. |
| DLN_GPIO_SET_DEBOUNCE | Command is used to specify the minimum duration of the pulse to be registered (the Debounce interval). |
| DLN_GPIO_GET_DEBOUNCE | Command is used to retrieve the current setting for the minimum duration of the pulse to be registered (the Debounce interval). |
| DLN_GPIO_PORT_SET_OUT_VAL | Command is used to set the output values for the specified GPIO port pins. |
| DLN_GPIO_PORT_GET_VAL | Command is used to retrieve current values on the GPIO pins. |
| DLN_GPIO_PORT_GET_OUT_VAL | Command retrieves pin output values, set using the DLN_GPIO_PORT_SET_OUT_VAL command and stored in internal latches. |
| DLN_GPIO_PIN_SET_OUT_VAL | command is used to set the output value for the specified GPIO pin. |
| DLN_GPIO_PIN_GET_VAL | Command is used to retrieve the current value on the specified GPIO pin. |
| DLN_GPIO_PIN_GET_OUT_VAL | Command retrieves the pin output value, set using the DLN_GPIO_PIN_SET_OUT_VAL command and stored in the internal latch. |
| DLN_GPIO_PIN_ENABLE | Command is used to configure a pin as general purpose input/output. |
| DLN_GPIO_PIN_DISABLE | Command is used to disable a pin as general purpose input/output. |
| DLN_GPIO_PIN_IS_ENABLED | Command is used to retrieve information on whether the specified pin is currently configured as general purpose input/output. |
| DLN_GPIO_PIN_SET_DIRECTION | Command is used to configure the pin as input or as output. |
| DLN_GPIO_PIN_GET_DIRECTION | Command is used to retrieve currently set direction of the pin. |
| DLN_GPIO_PIN_OPENDRAIN_ENABLE | Command is used to enable Open Drain mode for the specified pin. |
| DLN_GPIO_PIN_OPENDRAIN_DISABLE | Command is used to disable the Open Drain mode for the specified pin. |
| DLN_GPIO_PIN_OPENDRAIN_IS_ENABLED | Command is used to retrieve information on whether the Open Drain mode is currently enabled for the specified pin. |
| DLN_GPIO_PIN_PULLUP_ENABLE | Command is used to enable embedded pull-up resistor for the specified pin. |
| DLN_GPIO_PIN_PULLUP_DISABLE | Command is used to disable the embedded pull-up resistor for the specified pin. |
| DLN_GPIO_PIN_PULLUP_IS_ENABLED | Command is used to retrieve information on whether the embedded pull-up resistor is currently activated for the specified pin. |
| DLN_GPIO_PIN_DEBOUNCE_ENABLE | Command is used to enable Debounce Filtering for the specified pin. |
| DLN_GPIO_PIN_DEBOUNCE_DISABLE | Command is used to disable Debounce Filtering for the specified pin. |
| DLN_GPIO_PIN_DEBOUNCE_IS_ENABLED | Command is used to retrieve information on whether Debounce Filtering is currently activated for the specified pin. |
| DLN_GPIO_PIN_SET_EVENT_CFG | Command is used to configure the event generation conditions for the specified pin. |
| DLN_GPIO_PIN_GET_EVENT_CFG | Command is used to retrieve currently set event generation conditions for the specified pin. |
2006-2012