Exemple #1
0
        public void setNetWorkConnectParam(string _targetIpV4Address, int _port)
        {
            CommunType = CommunicationType.NetWork;

            CommParam = new NetWorkCommunicationParam
            {
                IpAddress = _targetIpV4Address,
                Port      = _port
            };
        }
Exemple #2
0
        public void setTtyConnectParam(string _portName, int _baudRate, int _dataSize, float _stopSize, int _checkSum)
        {
            CommunType = CommunicationType.Tty;

            CommParam = new TtysComunicationParam
            {
                PortName = _portName,
                Baudrate = _baudRate,
                StopBits = (StopBits)(_stopSize == 1.5 ? 3 : _stopSize),
                DataBits = _dataSize,
                CheckSum = (Parity)_checkSum
            };
        }