예제 #1
0
        private void ExecuteCmd(int address, CmdType cmdType, object data)
        {
            CmdData cmddata = new CmdData();

            cmddata.address = address;
            cmddata.cmdType = cmdType;
            cmddata.data    = data;
            this.Send(cmddata);
        }
예제 #2
0
 private void ExecuteCmd(int address, CmdType cmdType, object data)
 {
     CmdData  cmddata = new CmdData();
     cmddata.address = address;
     cmddata.cmdType = cmdType;
     cmddata.data = data;
     this.Send(cmddata);
 }
예제 #3
0
        public byte[] Encode(object CMD)
        {
            CmdData cmd = (CmdData)CMD;

            return(this.GenerateBytes(cmd.address, cmd.cmdType, cmd.data));
        }