public void SetSetValueDelegate(SetBytesValueDelegate setValue) { SetBytesValueInternal = setValue; }
public RegisterBytes(DeviceBlock deviceBlock, RegisterSettings settings, SetBytesValueDelegate setValue, GetBytesValueDelegate getValue = null) : base(deviceBlock, settings) { String defaultValue = Settings.RegisterValue; if (defaultValue != null) RegisterValueBytes = new RegisterValueBytes(this, defaultValue); if (RegisterValueBytes != null) { HasFixedValue = true; MappedToRegisterData &= (Device.Params.Protocol.Type == ProtocolSettings.ProtocolType.Modbus); _Value = RegisterValueBytes.ValueBytes; } else { HasFixedValue = false; _Value = null; } SetBytesValueInternal = setValue; GetBytesValueInternal = getValue; LoadExtractor(settings.Extractor); LoadInserter(settings.Inserter); }
public override void ClearSetValueDelegate() { SetBytesValueInternal = null; }
public VariableEntry_Bytes(String name, SetBytesValueDelegate setValueDelegate, GetBytesValueDelegate getValueDelegate = null) : base(name) { SetValueDelegate = setValueDelegate; GetValueDelegate = getValueDelegate; }