The DlnGpioPinGetCfg() function retrieves the current configuration of the specified GPIO pin.
DlnGpioPinGetCfg()
DLN_RESULT DlnGpioPinGetCfg( HDLN handle, uint16_t pin, DLN_GPIO_PIN_CONFIG* config );
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:
cfg
A bit field that defines the pin configuration.
eventType
A type of the event.
eventPeriod
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.
dln_gpio.h