DlnGpioPinIsEnabled() Function
Syntax
- C/C++
-
DLN_RESULT DlnGpioPinIsEnabled( HDLN handle, uint8_t pin, uint8_t* enabled );
The DlnGpioPinIsEnabled() function informs whether the pin is currently configured as general purpose input/output.
Parameters:
- handle
- A handle to the DLN-series adapter.
- pin
- A number of the pin to retrieve information about.
- enabled
-
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.
Results:
| Result | Description |
|---|---|
| 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.
2006-2012