DlnGpioPinGetCfg() Function
DLN_RESULT DlnGpioPinGetCfg(
HDLN handle,
uint16_t pin,
DLN_GPIO_PIN_CONFIG* config
);
The DlnGpioPinGetCfg() function retrieves current configuration of the specified GPIO pin.
Parameters:
- handle
- A handle to the DLN-series adapter.
- pin
- A pin to get configuration for.
- config
- A pointer to the DLN_GPIO_PIN_CONFIG structure which will be filled with the configuration after function execution.
Results:
| Result | Description |
|---|---|
| DLN_RES_SUCCESS | The GPIO pin configuration was successfully retrieved. |
| DLN_RES_INVALID_HANDLE | The specified handle is not valid. |
| DLN_RES_CONNECTION_LOST | Connection to the DLN server was interrupted. |
| DLN_RES_INVALID_PIN_NUMBER | Wrong pin number was specified. |
This function is defined in the dln_gpio.h file.
2006-2012