public Port(string PortName, DetailedPortSettings InitialSettings) { portName = PortName; Init(); //override default ettings portSettings = InitialSettings; }
private void Init() { // create a system event for synchronizing Closing closeEvent = CommAPI.CreateEvent(true, false, closeEventName); rxBuffer = new byte[rxBufferSize + 1000]; txBuffer = new byte[txBufferSize]; portSettings = new DetailedPortSettings(); }
public Port(string PortName, DetailedPortSettings InitialSettings, uint RxBufferSize, uint TxBufferSize) { portName = PortName; rxBufferSize = RxBufferSize; txBufferSize = TxBufferSize; Init(); //override default ettings portSettings = InitialSettings; }