This section describes the UART functions. They are used to control UART interface and modify its settings.Actual control of the device is performed by use of commands and responses. Each function utilizes respective commands and responses. You can send such commands directly if necessary.
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.
The DlnUartEnable()
function enables UART port.This function is defined in the dln_uart.h
file.
The DlnUartDisable()
function deactivates corresponding UART port on your DLN-Series adapter.
This function is defined in the dln_uart.h
file.
The DlnUartIsEnabled()
function retrieves information whether the specified SPI master port is activated. This function is defined in the dln_uart.h
file.
The DlnUartSetBaudrate()
function sets the baud rate, which represents the number of bits that are actually being sent.This function is defined in the dln_uart.h
file.
The DlnUartGetBaudrate()
function retrieves the baud rate value, which represents the number of bits that are actually being sent.This function is defined in the dln_uart.h
file.
The DlnUartSetCharacterLength()
function selects the data character length of 5, 6, 7, 8 and 9 bits per character. This function is defined in the dln_uart.h
file.
The DlnUartGetCharacterLength()
function retrieves the current data character length.This function is defined in the dln_uart.h
file.
The DlnUartSetParity()
function selects even, odd, mark (when the parity bit is always 1), space (the bit is always 0) or none parity.This function is defined in the dln_uart.h
file.
The DlnUartGetParity()
function retrieves the current parity bit value.This function is defined in the dln_uart.h
file.
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.
The DlnUartGetStopbits()
function retrieves the current number of stop bits to be sent with each character.This function is defined in the dln_uart.h
file.
The DlnUartWrite()
function sends data via UART interface. This function is defined in the dln_uart.h
file.
The DlnUartRead()
function receives data via UART interface.This function is defined in the dln_uart.h
file.
The DlnUartEnableEvent()
function enables UART event for specified UART port.This function is defined in the dln_uart.h
file.
The DlnUartDisableEvent()
function disables UART events for specified UART port.This function is defined in the dln_uart.h
file.
The DlnUartIsEventEnabled()
function informs whether the UART port is currently configured for monitoring events.This function is defined in the dln_uart.h
file.
The DlnUartSetEventSize()
function configures the event size.This function is defined in the dln_uart.h
file.
The DlnUartGetEventSize()
function retrieves the current event size value.This function is defined in the dln_uart.h
file.
The DlnUartSetEventPeriod() function configures the event period for specified UART port.This function is defined in the dln_uart.h file.
The DlnUartGetEventPeriod() function retrieves the current event period for specified UART port.This function is defined in the dln_uart.h file.
The DlnUartGetMinBaudrate()
function retrieves the minimum possible baud rate value.This function is defined in the dln_uart.h
file.
The DlnUartGetMaxBaudrate()
function retrieves the maximum possible baud rate value.This function is defined in the dln_uart.h
file.
The DlnUartGetSupportedCharacterLengths()
function returns all supported character length types. This function is defined in the dln_uart.h
file.
The DlnUartGetSupportedParities()
function returns all supported parities values. This function is defined in the dln_uart.h
file.
The DlnUartGetSupportedStopbits()
function returns all supported stop bits values. This function is defined in the dln_uart.h
file.