Вы здесь

DlnUartSetStopbits() Function

The DlnUartSetStopbits() function selects the number of stop bits to be sent with each character.This function is defined in the dln_uart.h file.

Syntax
C/C++
DLN_RESULT DlnUartSetStopbits(
    HDLN handle, 
    uint8_t port, 
    uint8_t stopbits
);
Parameters
handle

A handle to the DLN-series adapter.

port

A number of the UART port to be configured.

stopbits

The stop bit value parameter. You can use predefined constants to set required value.

  • 0 or DLN_UART_STOPBITS_1

  • 1 or DLN_UART_STOPBITS_1_5

  • 2 or DLN_UART_STOPBITS_2

Return Value
DLN_RES_SUCCESS

The operation completed successfully and stop bit value has been set.

Языки

Вход на сайт