UART Class

class UARTClass

UARTClass. 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.

Public Functions

UARTClass(Acroname::BrainStem::UARTClass &uart)

Constructor.

~UARTClass()

Destructor.

Acroname::BrainStem2CLI::UARTClass::!UARTClass()

Finalizer.

aErr setEnable(const unsigned char bEnable)

Enable the UART channel.

Return

Returns common entity return values

Parameters
  • bEnable: False or 0 = Disabled, True or 1 = Enabled

aErr getEnable(unsigned char %bEnabled)

Get the UART channel state.

Return

Returns common entity return values

Parameters
  • bEnabled: true: enabled, false: disabled.