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()¶
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