The DlnGpioPinGetCfg() function retrieves the current configuration of the specified GPIO pin.
A handle to the DLN-series adapter.
A number of the pin which configuration you want to know.
A pointer to the DLN_GPIO_PIN_CONFIG structure which is set to the configuration (after the function execution). This structure contains the following fields:
A bit field that defines the pin configuration.
A type of the event.
An interval for repeating events.
The function successfully retrieved the pin configuration.
The specified handle is not valid.
Connection to the DLN server was interrupted.
The pin number is not valid. Use the DlnGpioGetPinCount() function to find the maximum possible pin number.
The DlnGpioPinGetCfg() function is declared in the dln_gpio.h file.