DLN_RESULT DlnGpioPinIsEnabled( HDLN handle, uint8_t pin, uint8_t* enabled );
DlnGpioPinIsEnabled() function informs whether the pin is currently configured as general purpose input/output.
- A handle to the DLN-series adapter.
- A number of the pin to retrieve information about.
A pointer to an unsigned 8-bit integer. The integer will be filled with current pin configuration after the function execution. The following values are available:
Value Description 1 The pin is configured as GPIO. 0 The pin is NOT configured as GPIO.
|DLN_RES_SUCCESS||The pin information has been successfully retrieved.|
|DLN_RES_INVALID_PIN_NUMBER||Invalid pin number was specified.|
This function is defined in the dln_gpio.h file.