class UARTConfiguration

August 13, 2019 ยท View on GitHub

Member values

Member nameData typeDescription
port_iduint32UART port identification
enabledboolTrue if UART device is enabled, false otherwise
speeduint32Speed selection
word_lengthuint32Word length
stop_bitsuint32Stop bits
parityuint32Parity mode

Member functions

Function nameReturn typeInput typeDescription
port_id()uint32voidReturns the current value of port_id. If the port_id is not set, returns 0.
set_port_id()voiduint32Sets the value of port_id. After calling this, port_id() will return value.
clear_port_id()voidvoidClears the value of port_id. After calling this, port_id() will return 0.
enabled()boolvoidReturns the current value of enabled. If the enabled is not set, returns 0.
set_enabled()voidboolSets the value of enabled. After calling this, enabled() will return value.
clear_enabled()voidvoidClears the value of enabled. After calling this, enabled() will return 0.
speed() constuint32voidReturns the current value of speed. If the speed is not set, returns 0.
set_speed()voiduint32Sets the value of speed. After calling this, speed() will return value.
clear_speed()voidvoidClears the value of speed. After calling this, speed() will return the empty string/empty bytes.
word_length() constuint32voidReturns the current value of word_length. If the word_length is not set, returns 0.
set_word_length()voiduint32Sets the value of word_length. After calling this, word_length() will return value.
clear_word_length()voidvoidClears the value of word_length. After calling this, word_length() will return the empty string/empty bytes.
stop_bits() constuint32voidReturns the current value of stop_bits. If the stop_bits is not set, returns 0.
set_stop_bits()voiduint32Sets the value of stop_bits. After calling this, stop_bits() will return value.
clear_stop_bits()voidvoidClears the value of stop_bits. After calling this, stop_bits() will return the empty string/empty bytes.
parity() constuint32voidReturns the current value of parity. If the parity is not set, returns 0.
set_parity()voiduint32Sets the value of parity. After calling this, parity() will return value.
clear_parity()voidvoidClears the value of parity. After calling this, parity() will return the empty string/empty bytes.

Parent topic: Common (C++)