The DlnGpioGetPinCount()
function retrieves the number of pins that can be configured as GPIO. Even the pins that are assigned for other modules (but can be configured as GPIO) will be counted. To check whether a pin is connected to the GPIO module, use the DlnGpioPinIsEnabled() function.
The GPIO functions that accept a pin number as a parameter will return the DLN_RES_INVALID_PIN_NUMBER
error code if the specified pin number exceeds the value returned by the DlnGpioGetPinCount()
function.
The DlnGpioGetPinCount()
function is declared in the dln_gpio.h
file.