public ControlWord(int address, CommandCode.WithDirection codeWithDirection, CommandSubaddress subaddress = CommandSubaddress.Ones) { Value = BuildCommand(address, (int)subaddress, (int)codeWithDirection).Value; }
public byte[] SendQuery(CommandSubaddress subaddress, byte?data = null, int bytesToRead = 0) { return(_commandDispatcher.SendQuery((byte)subaddress, data, bytesToRead)); }
//TODO public ControlWord(int address, DataDirection direction, CommandCode.Raw code, CommandSubaddress subaddress = CommandSubaddress.Ones) { Value = BuildCommand(address, direction, (int)subaddress, (int)code).Value; }
public void SendCommand(CommandSubaddress subaddress, byte?data = null) { _commandDispatcher.SendCommand((byte)subaddress, data); }