Lines Matching refs:context
23 public byte ReadByte(ulong address, IPeripheral context = null, ulong? cpuState = null) in ReadByte() argument
26 if(IsAddressRangeLocked(address.By((ulong)accessWidth), context)) in ReadByte()
33 using(SetLocalContext(context, cpuState)) in ReadByte()
35 …if(!TryFindPeripheralAccessMethods(address, context, out var accessMethods, out var startAddress, … in ReadByte()
67 public byte ReadByteWithState(ulong address, IPeripheral context, IContextState stateObj) in ReadByteWithState() argument
70 if(!TryConvertStateToUlongForContext(context, stateObj, out ulong? state)) in ReadByteWithState()
76 return ReadByte(address, context, state); in ReadByteWithState()
79 …public void WriteByte(ulong address, byte value, IPeripheral context = null, ulong? cpuState = nul… in WriteByte() argument
82 if(IsAddressRangeLocked(address.By((ulong)accessWidth), context)) in WriteByte()
89 using(SetLocalContext(context, cpuState)) in WriteByte()
91 …if(!TryFindPeripheralAccessMethods(address, context, out var accessMethods, out var startAddress, … in WriteByte()
125 …public void WriteByteWithState(ulong address, byte value, IPeripheral context, IContextState state… in WriteByteWithState() argument
128 if(!TryConvertStateToUlongForContext(context, stateObj, out ulong? state)) in WriteByteWithState()
134 WriteByte(address, value, context, state); in WriteByteWithState()
137 public ushort ReadWord(ulong address, IPeripheral context = null, ulong? cpuState = null) in ReadWord() argument
140 if(IsAddressRangeLocked(address.By((ulong)accessWidth), context)) in ReadWord()
147 using(SetLocalContext(context, cpuState)) in ReadWord()
149 …if(!TryFindPeripheralAccessMethods(address, context, out var accessMethods, out var startAddress, … in ReadWord()
181 public ushort ReadWordWithState(ulong address, IPeripheral context, IContextState stateObj) in ReadWordWithState() argument
184 if(!TryConvertStateToUlongForContext(context, stateObj, out ulong? state)) in ReadWordWithState()
190 return ReadWord(address, context, state); in ReadWordWithState()
193 …public void WriteWord(ulong address, ushort value, IPeripheral context = null, ulong? cpuState = n… in WriteWord() argument
196 if(IsAddressRangeLocked(address.By((ulong)accessWidth), context)) in WriteWord()
203 using(SetLocalContext(context, cpuState)) in WriteWord()
205 …if(!TryFindPeripheralAccessMethods(address, context, out var accessMethods, out var startAddress, … in WriteWord()
239 …public void WriteWordWithState(ulong address, ushort value, IPeripheral context, IContextState sta… in WriteWordWithState() argument
242 if(!TryConvertStateToUlongForContext(context, stateObj, out ulong? state)) in WriteWordWithState()
248 WriteWord(address, value, context, state); in WriteWordWithState()
251 … public uint ReadDoubleWord(ulong address, IPeripheral context = null, ulong? cpuState = null) in ReadDoubleWord() argument
254 if(IsAddressRangeLocked(address.By((ulong)accessWidth), context)) in ReadDoubleWord()
261 using(SetLocalContext(context, cpuState)) in ReadDoubleWord()
263 …if(!TryFindPeripheralAccessMethods(address, context, out var accessMethods, out var startAddress, … in ReadDoubleWord()
295 … public uint ReadDoubleWordWithState(ulong address, IPeripheral context, IContextState stateObj) in ReadDoubleWordWithState() argument
298 if(!TryConvertStateToUlongForContext(context, stateObj, out ulong? state)) in ReadDoubleWordWithState()
304 return ReadDoubleWord(address, context, state); in ReadDoubleWordWithState()
307 …public void WriteDoubleWord(ulong address, uint value, IPeripheral context = null, ulong? cpuState… in WriteDoubleWord() argument
310 if(IsAddressRangeLocked(address.By((ulong)accessWidth), context)) in WriteDoubleWord()
317 using(SetLocalContext(context, cpuState)) in WriteDoubleWord()
319 …if(!TryFindPeripheralAccessMethods(address, context, out var accessMethods, out var startAddress, … in WriteDoubleWord()
353 …public void WriteDoubleWordWithState(ulong address, uint value, IPeripheral context, IContextState… in WriteDoubleWordWithState() argument
356 if(!TryConvertStateToUlongForContext(context, stateObj, out ulong? state)) in WriteDoubleWordWithState()
362 WriteDoubleWord(address, value, context, state); in WriteDoubleWordWithState()
365 public ulong ReadQuadWord(ulong address, IPeripheral context = null, ulong? cpuState = null) in ReadQuadWord() argument
368 if(IsAddressRangeLocked(address.By((ulong)accessWidth), context)) in ReadQuadWord()
375 using(SetLocalContext(context, cpuState)) in ReadQuadWord()
377 …if(!TryFindPeripheralAccessMethods(address, context, out var accessMethods, out var startAddress, … in ReadQuadWord()
409 … public ulong ReadQuadWordWithState(ulong address, IPeripheral context, IContextState stateObj) in ReadQuadWordWithState() argument
412 if(!TryConvertStateToUlongForContext(context, stateObj, out ulong? state)) in ReadQuadWordWithState()
418 return ReadQuadWord(address, context, state); in ReadQuadWordWithState()
421 …public void WriteQuadWord(ulong address, ulong value, IPeripheral context = null, ulong? cpuState … in WriteQuadWord() argument
424 if(IsAddressRangeLocked(address.By((ulong)accessWidth), context)) in WriteQuadWord()
431 using(SetLocalContext(context, cpuState)) in WriteQuadWord()
433 …if(!TryFindPeripheralAccessMethods(address, context, out var accessMethods, out var startAddress, … in WriteQuadWord()
467 …public void WriteQuadWordWithState(ulong address, ulong value, IPeripheral context, IContextState … in WriteQuadWordWithState() argument
470 if(!TryConvertStateToUlongForContext(context, stateObj, out ulong? state)) in WriteQuadWordWithState()
476 WriteQuadWord(address, value, context, state); in WriteQuadWordWithState()
659 …private bool TryFindPeripheralAccessMethods(ulong address, IPeripheral context, out PeripheralAcce… in TryFindPeripheralAccessMethods() argument
661 if(context == null) in TryFindPeripheralAccessMethods()
664 context = cpu; in TryFindPeripheralAccessMethods()
666 if(context != null) in TryFindPeripheralAccessMethods()
668 … if(peripheralsCollectionByContext.TryGetValue(context, cpuState, out var collection)) in TryFindPeripheralAccessMethods()