config property

Gets the current configuration of the serial port.

Implementation

SerialPortConfig get config;
void config=(SerialPortConfig config)

Sets the configuration for the serial port.

For each parameter in the configuration, there is a special value (usually -1, but see the documentation for each field). These values will be ignored and the corresponding setting left unchanged on the port.

Upon errors, the configuration of the serial port is unknown since partial/incomplete config updates may have happened.

Implementation

set config(SerialPortConfig config);