UART Entity

group UARTEntity

UART Class. A UART is a “Universal Asynchronous Receiver/Transmitter. Many times referred to as a COM (communication), Serial, or TTY (teletypewriter) port.

The UART Class allows the enabling and disabling of the UART data lines.

void uart_setEnable(unsigned int *id, struct Result *result, const int index, const unsigned char bEnable)

Enable the UART channel.

Parameters:
  • id – The id assigned by the create stem vi.

  • result – Object containing aErrNone on success. Non-zero error code on failure.

  • index – The index of the entity in question.

  • bEnable – False or 0 = Disabled, True or 1 = Enabled

Returns:

Returns common entity return values

void uart_getEnable(unsigned int *id, struct Result *result, const int index)

Get the UART channel state.

Parameters:
  • id – The id assigned by the create stem vi.

  • result – Object containing aErrNone and the requested value on success. Non-zero error code on failure.

  • index – The index of the entity in question.

Returns:

Returns common entity return values