DlnGpioGetPortCount() Function

DLN_RESULT DlnGpioGetPortCount(
    HDLN handle,    
    uint8_t* count
 );

The DlnGpioGetPortCount() function retrieves the total number of the GPIO ports available in your DLN-series adapter.

Parameters:

handle
A handle to the DLN-series adapter.
count
A pointer to an unsigned 8-bit integer. This integer will be filled with the number of available ports after function execution.

Results:

Result Description
DLN_RES_SUCCESS The GPIO port count has been successfully retrieved.

This function is defined in the dln_gpio.h file.