Exemplo n.º 1
0
        public void CreateWriteSingleRegisterCommand()
        {
            Register register = new Register(RegisterType.R12, 0x5040);

            WriteSingleRegister cmd = new WriteSingleRegister(register);
            Assert.AreEqual("P", cmd.Command);
            Assert.AreEqual("P0C000000=40500000", cmd.Pack());
        }
Exemplo n.º 2
0
 private void WriteSingleRegister(Register register)
 {
     WriteSingleRegister command = new WriteSingleRegister(register);
     this.Client.SendCommandWithoutErrorReply<OkReply>(command);
 }