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.

!UARTClass ()

Finalizer.

aErr setEnable(const unsigned char bEnabled)

Enable the UART channel.

Parameters:

bEnabled – true: enabled, false: disabled.

Returns:

Returns common entity return values

aErr getEnable(unsigned char %bEnabled)

Get the UART channel state.

Parameters:

bEnabled – true: enabled, false: disabled.

Returns:

Returns common entity return values

aErr setBaudRate(const unsigned int rate)

Set the UART baud rate.

Parameters:

rate – baud rate.

Returns:

Returns common entity return values

aErr getBaudRate(unsigned int %rate)

Get the UART baud rate.

Parameters:

rate – Pointer variable to be filled with baud rate.

Returns:

Returns common entity return values

aErr setProtocol(const unsigned char protocol)

Set the UART protocol.

Parameters:

protocol – Serial protocol.

Returns:

Returns common entity return values

aErr getProtocol(unsigned char %protocol)

Get the UART protocol.

Parameters:

protocol – Pointer to where result is placed.

Returns:

Returns common entity return values