1 // 2 // Copyright (c) 2010-2025 Antmicro 3 // 4 // This file is licensed under the MIT License. 5 // Full license text is available in 'licenses/MIT.txt'. 6 // 7 using System.Collections.Generic; 8 9 namespace Antmicro.Renode.Peripherals 10 { 11 public interface IPeripheralWithTransactionState : IPeripheral 12 { 13 IReadOnlyDictionary<string, int> StateBits { get; } TryConvertStateObjToUlong(IContextState stateObj, out ulong? state)14 bool TryConvertStateObjToUlong(IContextState stateObj, out ulong? state); TryConvertUlongToStateObj(ulong? state, out IContextState stateObj)15 bool TryConvertUlongToStateObj(ulong? state, out IContextState stateObj); 16 } 17 } 18