DlnUartGetParity() Function

The DlnUartGetParity() function retrieves the current parity bit value.This function is defined in the dln_uart.h file.

Syntax
C/C++
DLN_RESULT DlnUartGetParity(
    HDLN handle, 
    uint8_t port, 
    uint8_t *parity
);
Parameters
handle

A handle to the DLN-series adapter.

port

A number of the UART.

parity

The pointer to uint8_t type variable. Variable will be filled with current parity value after successful function execution.

Return Value
DLN_RES_SUCCESS

The operation completed successfully and parity value has been retrieved.