Вы здесь

DlnUartIsEnabled() Function

The DlnUartIsEnabled() function retrieves information whether the specified SPI master port is activated. This function is defined in the dln_uart.h file.

Syntax
C/C++
DLN_RESULT DlnUartIsEnabled(
    HDLN handle, 
    uint8_t port, 
    uint8_t *enabled
);
Parameters
handle

A handle to the DLN-series adapter.

port

A number of the UART port to retrieve the information from.

enabled

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.

Return Value
DLN_RES_SUCCESS

The operation completed successfully and UART port state was retrieved.

Языки

Вход на сайт