/// <summary>
 /// Constructor to set the properties of the SerialPortManager Class
 /// </summary>
 /// <param name="portName"></param>
 /// <param name="baud"></param>
 /// <param name="dBits"></param>
 /// <param name="sBits"></param>
 /// <param name="par"></param>
 /// <param name="timeout"></param>
 /// <param name="databuf"></param>
 internal SerialPortManager(string portName, string baud, string dBits, string sBits, string par, int timeout, Buffer databuf)
 {
     comPort = new SerialPort();
     serialMutex = new MutexLock();
     dataBufferMutex = new MutexLock();
     statusBufferMutex = new MutexLock();
     _baudRate = baud;
     _parity = par;
     _stopBits = sBits;
     _dataBits = dBits;
     _portName = portName;
     _readTimeout = timeout;
     _dataRecvBuffer = databuf;
     _statusBuffer = new Buffer(statusBufferMutex);
 }
 /// <summary>
 /// Comstructor to set the properties of our
 /// serial port communicator to nothing
 /// </summary>
 internal SerialPortManager()
 {
     //DataRecievedHandler handler)
     comPort = new SerialPort();
     serialMutex = new MutexLock();
     dataBufferMutex = new MutexLock();
     statusBufferMutex = new MutexLock();
     _baudRate = "9600"; //string.Empty;
     _parity = "None";  //string.Empty;
     _stopBits = "1"; // string.Empty;
     _dataBits = "8"; // string.Empty;
     _portName = "COM1";
     _readTimeout = 2056;
     _dataRecvBuffer = new Buffer(dataBufferMutex);
     _statusBuffer = new Buffer(statusBufferMutex);
     //this.DataRecievedFxn = handler;
 }