You are here

DlnUartGetPortCount() Function

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

This function is defined in the dln_uart.h file.

Syntax
C/C++
DLN_RESULT DlnUartGetPortCount(
    HDLN handle, 
    uint8_t *count
);
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.

Return Value
DLN_RES_SUCCESS

The UART port count has been successfully retrieved.

User login