The DlnGpioPinOpendrainIsEnabled() function informs whether the pin output is currently configured as push-pull or Open Drain.
A handle to the DLN-series adapter.
A number of the pin that you want to check.
A pointer to an unsigned 8-bit integer. After the function execution, this integer is set to the current pin configuration. The following values are available:
The output is Open Drain.
The output is push-pull.
The function retrieved the open drain mode configuration successfully.
The pin number is not valid. Use the DlnGpioGetPinCount() function to find the maximum possible pin number.
The DlnGpioPinOpendrainIsEnabled() function is declared in the dln_gpio.h file.