UART

class brainstem.stem.UART(module, index)[source]

Provides UART entity access on certain BrainStem modules.

A UART is a “Universal Asynchronous Reciever/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

getEnable()[source]

Get the enable status of the UART.

Returns

Result object, containing NO_ERROR and the UART state

or a non zero Error code.

Return type

Result

setEnable(bEnable)[source]

Enable the UART.

Param:

bEnable (bool): True = Enable, False = Disable

Returns

Return NO_ERROR on success, or one of the common sets of return error codes on failure.

Return type

Result.error