The DlnUartIsEnabled() function retrieves information whether the specified SPI master port is activated. This function is defined in the dln_uart.h file.
DlnUartIsEnabled()
dln_uart.h
DLN_RESULT DlnUartIsEnabled( HDLN handle, uint8_t port, uint8_t *enabled );
A handle to the DLN-series adapter.
A number of the UART port to retrieve the information from.
A pointer to an unsigned 8-bit integer. The integer will be filled with information whether the specified UART port is activated after the function execution. There are two possible values:
0 or DLN_UART_DISABLED - the port is not configured as UART.
1 or DLN_UART_ENABLED - the port is configured as UART.
The operation completed successfully and UART port state was retrieved.