Пример #1
0
        public Port(string PortName, DetailedPortSettings InitialSettings)
        {
            portName = PortName;
            Init();

            //override default ettings
            portSettings = InitialSettings;
        }
Пример #2
0
        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();
        }
Пример #3
0
        public Port(string PortName, DetailedPortSettings InitialSettings, uint RxBufferSize, uint TxBufferSize)
        {
            portName     = PortName;
            rxBufferSize = RxBufferSize;
            txBufferSize = TxBufferSize;
            Init();

            //override default ettings
            portSettings = InitialSettings;
        }