예제 #1
0
 public ControlWord(int address, CommandCode.WithDirection codeWithDirection, CommandSubaddress subaddress = CommandSubaddress.Ones)
 {
     Value = BuildCommand(address, (int)subaddress, (int)codeWithDirection).Value;
 }
예제 #2
0
 public byte[] SendQuery(CommandSubaddress subaddress, byte?data = null, int bytesToRead = 0)
 {
     return(_commandDispatcher.SendQuery((byte)subaddress, data, bytesToRead));
 }
예제 #3
0
        //TODO


        public ControlWord(int address, DataDirection direction, CommandCode.Raw code, CommandSubaddress subaddress = CommandSubaddress.Ones)
        {
            Value = BuildCommand(address, direction, (int)subaddress, (int)code).Value;
        }
예제 #4
0
 public void SendCommand(CommandSubaddress subaddress, byte?data = null)
 {
     _commandDispatcher.SendCommand((byte)subaddress, data);
 }