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); }
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); }