public SerialReaderWriter(SerialSettings settings)
 {
     _statistics = new Statistics();
     spManager.CurrentSerialSettings = settings;
 }
 public SerialReaderWriter(int baudrate = 115200, string comport = "COM2")
 {
     _statistics = new Statistics();
     spManager.CurrentSerialSettings.BaudRate = baudrate;
     spManager.CurrentSerialSettings.PortName = comport;
 }