Beispiel #1
0
        public virtual void Toggle(int bit)
        {
            Buffer <byte>    param = new Buffer <byte>(CMD_LEN), rsp;
            BinNativeEncoder enc = new BinNativeEncoder(param);

            enc.PutInt32(bit);
            port.SendCommand(TARGET, (uint)Cmds.Toggle, param, out rsp);
        }
Beispiel #2
0
        public virtual void Set(int bit, bool on)
        {
            Buffer <byte>    param = new Buffer <byte>(CMD_LEN), rsp;
            BinNativeEncoder enc = new BinNativeEncoder(param);


            enc.PutInt32(bit);
            enc.PutBool(on);

            port.SendCommand(TARGET, (uint)Cmds.Set, param, out rsp);
        }
Beispiel #3
0
 protected void SetHeader(BinNativeEncoder enc, uint cmd)
 {
 }