Пример #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);
 }