示例#1
0
文件: Port.cs 项目: Collis88/epos_v5
        public Port(string PortName, DetailedPortSettings InitialSettings)
        {
            portName = PortName;
            Init();

            //override default ettings
            portSettings = InitialSettings;
        }
示例#2
0
文件: Port.cs 项目: Collis88/epos_v5
        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
文件: Port.cs 项目: Collis88/epos_v5
        public Port(string PortName, DetailedPortSettings InitialSettings, uint RxBufferSize, uint TxBufferSize)
        {
            portName     = PortName;
            rxBufferSize = RxBufferSize;
            txBufferSize = TxBufferSize;
            Init();

            //override default ettings
            portSettings = InitialSettings;
        }