If the pin is not currently assigned to the GPIO module, the pin direction setting is got from internal memory where it is saved when you define it. To change the current pin direction, use the DlnGpioPinSetDirection() function.
The DlnGpioPinGetDirection()
function is declared in the dln_gpio.h
file.