示例#1
0
        public void SetMeasMode(bool loggerMode, bool flush)
        {
            W1Register w1 = new W1Register();

            w1.LoggerMode = loggerMode;
            _Protocol.PrepareWriteRequest(w1);
            if (flush)
            {
                FlushProtocol();
            }
        }
示例#2
0
        public void SetChState(int ch, bool enable, bool flush)
        {
            W1Register w1 = new W1Register();

            w1.SetChState(ch, enable);
            _Protocol.PrepareWriteRequest(w1);
            if (flush)
            {
                FlushProtocol();
            }
        }
示例#3
0
        public void SetChStates(bool ch1enable, bool ch2enable, bool ch3enable, bool ch4enable, bool flush)
        {
            W1Register w1 = new W1Register();

            w1.SetChState(0, ch1enable);
            w1.SetChState(1, ch2enable);
            w1.SetChState(2, ch3enable);
            w1.SetChState(3, ch4enable);

            _Protocol.PrepareWriteRequest(w1);
            if (flush)
            {
                FlushProtocol();
            }
        }