The DlnGpioPinOpendrainIsEnabled() function informs whether the pin output is currently configured as push-pull or Open Drain.
DlnGpioPinOpendrainIsEnabled()
DLN_RESULT DlnGpioPinOpendrainIsEnabled( HDLN handle, uint8_t pin, uint8_t* enabled );
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:
1
The output is Open Drain.
0
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.
dln_gpio.h