Sets the new serial port configuration.
It is recommended to read current configuration first by calling the GetConfig method.
GetConfig