DlnGpioPinOpendrainIsEnabled() Function
DLN_RESULT DlnGpioPinOpendrainIsEnabled(
HDLN handle,
uint8_t pin,
uint8_t* enabled
);
The DlnGpioPinOpendrainIsEnabled() function informs whether the pin output is currently configured as push pull or Open Drain.
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 output is open drain. 0 The output is push pull.
Results:
| Result | Description |
|---|---|
| DLN_RES_SUCCESS | Open drain mode has been successfully enabled. |
| DLN_RES_INVALID_PIN_NUMBER | Invalid pin number was specified. |
This function is defined in the dln_gpio.h file.
2006-2012