UART Entity

The UART entity is a simple class which allows the enabling and disabling of a specified uart port.

Channel Enable (Get/Set)

uart [ index ] . setEnable => (unsigned char) enable
uart [ index ] . getEnable <= (unsigned char) enable

Enables the uart channel for the specified index

Code Examples

C++

// All commands return aErr values when errors are encountered and aErrNone on
// success. Get calls will fill the variable with the returned value.

err = stem.uart[0].setEnable(1);
err = stem.uart[1].setEnable(1);

err = stem.uart[0].getEnable(&enable);
err = stem.uart[1].getEnable(&enable);

err = stem.uart[0].setEnable(0);
err = stem.uart[1].setEnable(0);

Python

err = stem.uart[0].setEnable(1);
err = stem.uart[1].setEnable(1);

result = stem.uart[0].getEnable()
print result.value

result = stem.uart[1].getEnable()
print result.value

err = stem.uart[0].setEnable(0);
err = stem.uart[1].setEnable(0);