| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Time/ |
| D | ClockEntry.cs | 17 …ulationElement owner, string localName, bool enabled = true, Direction direction = Direction.Ascen… in ClockEntry() 19 this.Value = direction == Direction.Ascending ? 0 : period; in ClockEntry() 25 this.Direction = direction; in ClockEntry() 34 … ulong? value = null, Direction? direction = null, WorkMode? workMode = null, long? step = null) in With() 43 direction ?? Direction, in With() 58 public Direction Direction { get; } property
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Timers/ |
| D | MSP430_Timer.cs | 45 …: ushort.MaxValue, workMode: WorkMode.OneShot, eventEnabled: true, direction: Direction.Ascending); in MSP430_Timer() 97 …mainTimer.Direction = mainTimer.Direction == Direction.Ascending ? Direction.Descending : Directio… in LimitReached() 98 mainTimer.Value = mainTimer.Direction == Direction.Ascending ? 0 : mainTimer.Limit; in LimitReached() 113 …var currentCount = mainTimer.Direction == Direction.Ascending ? mainTimer.Value : mainTimer.Limit … in RecalculateCompareTimers() 116 …var newLimit = mainTimer.Direction == Direction.Ascending ? timerCompare[entry.Index].Value : main… in RecalculateCompareTimers() 152 mainTimer.Direction = Direction.Ascending; in UpdateMode() 156 mainTimer.Direction = Direction.Ascending; in UpdateMode() 186 mainTimer.Direction = Direction.Ascending; in DefineRegisters() 188 … mainTimer.Value = mainTimer.Direction == Direction.Ascending ? 0 : mainTimer.Limit; in DefineRegisters()
|
| D | Efm32Timer.cs | 35 …imer(IMachine machine) : base(machine.ClockSource, 48000000, direction: Direction.Ascending, limit… in Efm32Timer() 68 Direction = Direction.Ascending; in WriteDoubleWord() 71 Direction = Direction.Descending; in WriteDoubleWord()
|
| D | SAMD21_Timer.cs | 26 …ine.ClockSource, baseFrequency, this, "clock", eventEnabled: true, direction: Direction.Ascending); in SAMD21_Timer() 27 … this, "capture0", eventEnabled: true, workMode: WorkMode.OneShot, direction: Direction.Ascending); in SAMD21_Timer() 28 … this, "capture1", eventEnabled: true, workMode: WorkMode.OneShot, direction: Direction.Ascending); in SAMD21_Timer() 190 mainTimer.Value = mainTimer.Direction == Direction.Ascending ? 0 : CounterTopValue; in ReconfigureCounter() 198 if(mainTimer.Direction == Direction.Ascending) in StartChannels() 249 valueProviderCallback: _ => mainTimer.Direction == Direction.Descending, in DefineRegisters() 250 … writeCallback: (_, value) => { if(value) mainTimer.Direction = Direction.Descending; }) in DefineRegisters() 276 valueProviderCallback: _ => mainTimer.Direction == Direction.Descending, in DefineRegisters() 277 … writeCallback: (_, value) => { if(value) mainTimer.Direction = Direction.Ascending; }) in DefineRegisters()
|
| D | EFR32_Timer.cs | 24 …e, frequency, this, "timer", limit: (1UL << (int)width) - 1, direction: Direction.Ascending, event… in EFR32_Timer() 81 …thFlag(1, FieldMode.Read, valueProviderCallback: _ => innerTimer.Direction == Direction.Descending) in DefineRegisters() 118 if(innerTimer.Direction == Direction.Descending) in LimitReached() 136 innerTimer.Direction = mode == Mode.Up ? Direction.Ascending : Direction.Descending; in SetMode()
|
| D | RenesasRZG_GTM.cs | 21 …LimitTimer(machine.ClockSource, frequency, this, "timer", FreeRunLimit, Direction.Descending, work… in RenesasRZG_GTM() 111 timer.Direction = Direction.Descending; in DefineRegisters() 114 timer.Direction = Direction.Ascending; in DefineRegisters()
|
| D | RenesasRZG_GPT.cs | 17 using TimeDirection = Antmicro.Renode.Time.Direction; 155 … .WithEnumField<DoubleWordRegister, Direction>(0, 1, name: "UD (Count Direction Setting)", in BuildChannelRegisterMap() 156 valueProviderCallback: _ => channel.Direction, in BuildChannelRegisterMap() 157 writeCallback: (_, value) => channel.Direction = value in BuildChannelRegisterMap() 431 Direction = Direction.DownCounting; in Reset() 449 public Direction Direction property in Antmicro.Renode.Peripherals.Timers.RenesasRZG_GPT.GPTChannel 455 …timer.Direction = direction == Direction.UpCounting ? TimeDirection.Ascending : TimeDirection.Desc… 517 if(direction == Direction.UpCounting) in OnMainTimerLimitReached() 532 private Direction direction; 560 public enum Direction enum in Antmicro.Renode.Peripherals.Timers.RenesasRZG_GPT
|
| D | Cadence_TTC.cs | 117 … writeCallback: (_, val) => timer.Direction = (val ? Direction.Descending : Direction.Ascending), in BuildTimerUnitRegisters() 118 valueProviderCallback: (_) => timer.Direction == Direction.Descending in BuildTimerUnitRegisters() 223 …kSource, frequency, parent, localName, limit: OverflowLimit, direction: Direction.Ascending, event… in TimerUnit() 328 public Direction Direction property in Antmicro.Renode.Peripherals.Timers.Cadence_TTC.TimerUnit 330 get => timer.Direction; 333 timer.Direction = value; 421 …kSource, frequency, parent, localName, limit: OverflowLimit, direction: Direction.Ascending, workM… in MatchTimerUnit() 526 private bool IsAscending => owner.Direction == Direction.Ascending;
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/GPIOPort/ |
| D | PULP_APB_GPIO.cs | 39 …valueProviderCallback: (idx, _) => gpioDirection[idx] == Direction.Out ? Connections[idx].IsSet : … in PULP_APB_GPIO() 68 …valueProviderCallback: (idx, _) => gpioDirection[idx + 32] == Direction.Out ? Connections[idx + 32… in PULP_APB_GPIO() 107 … writeCallback: (idx, _, val) => gpioDirection[idx] = val ? Direction.Out : Direction.In, in PULP_APB_GPIO() 108 valueProviderCallback: (idx, _) => gpioDirection[idx] == Direction.Out in PULP_APB_GPIO() 113 … writeCallback: (idx, _, val) => gpioDirection[idx + 32] = val ? Direction.Out : Direction.In, in PULP_APB_GPIO() 114 valueProviderCallback: (idx, _) => gpioDirection[idx + 32] == Direction.Out in PULP_APB_GPIO() 139 gpioDirection[i] = Direction.In; in Reset() 145 if(gpioDirection[pin] != Direction.In) in ReadInputPin() 162 if(gpioDirection[pin] == Direction.Out) in WriteOutputPin() 177 private Direction[] gpioDirection = new Direction[NumberOfGPIOs]; [all …]
|
| D | MiV_CoreGPIO.cs | 63 … if((irqManager.PinDirection[i] & GPIOInterruptManager.Direction.Output) != 0) in MiV_CoreGPIO() 100 irqManager.PinDirection[j] |= GPIOInterruptManager.Direction.Output; in MiV_CoreGPIO() 104 … irqManager.PinDirection[j] &= ~GPIOInterruptManager.Direction.Output; in MiV_CoreGPIO() 109 … return (irqManager.PinDirection[j] & GPIOInterruptManager.Direction.Output) != 0; in MiV_CoreGPIO() 122 irqManager.PinDirection[j] |= GPIOInterruptManager.Direction.Input; in MiV_CoreGPIO() 126 irqManager.PinDirection[j] &= ~GPIOInterruptManager.Direction.Input; in MiV_CoreGPIO() 131 … return (irqManager.PinDirection[j] & GPIOInterruptManager.Direction.Input) != 0; in MiV_CoreGPIO() 178 if((irqManager.PinDirection[number] & GPIOInterruptManager.Direction.Input) == 0) in OnGPIO() 217 irqManager.PinDirection[number] = GPIOInterruptManager.Direction.Input; in ConfigureFixedPinDirection() 220 irqManager.PinDirection[number] = GPIOInterruptManager.Direction.Output; in ConfigureFixedPinDirection() [all …]
|
| D | NRF52840_GPIO.cs | 107 Registers.Direction.Define(this) in DefineRegisters() 109 valueProviderCallback: (id, _) => Pins[id].Direction == PinDirection.Output, in DefineRegisters() 110 …writeCallback: (id, _, val) => Pins[id].Direction = val ? PinDirection.Output : PinDirection.Input) in DefineRegisters() 115 valueProviderCallback: (id, _) => Pins[id].Direction == PinDirection.Output, in DefineRegisters() 116 … writeCallback: (id, _, val) => { if(val) Pins[id].Direction = PinDirection.Output; }) in DefineRegisters() 121 valueProviderCallback: (id, _) => Pins[id].Direction == PinDirection.Output, in DefineRegisters() 122 … writeCallback: (id, _, val) => { if(val) Pins[id].Direction = PinDirection.Input; }) in DefineRegisters() 141 if(newValue != Pins[idx].Direction) in DefineRegisters() 143 Pins[idx].Direction = newValue; in DefineRegisters() 146 valueProviderCallback: _ => Pins[idx].Direction == PinDirection.Output) in DefineRegisters() [all …]
|
| D | MPFS_GPIO.cs | 38 … if((irqManager.PinDirection[i] & GPIOInterruptManager.Direction.Input) != 0) in MPFS_GPIO() 51 … var pins = irqManager.PinDirection.Select(x => (x & GPIOInterruptManager.Direction.Input) != 0); in MPFS_GPIO() 61 … var pins = irqManager.PinDirection.Select(x => (x & GPIOInterruptManager.Direction.Output) != 0); in MPFS_GPIO() 72 … if((irqManager.PinDirection[i] & GPIOInterruptManager.Direction.Output) != 0) in MPFS_GPIO() 105 irqManager.PinDirection[j] |= GPIOInterruptManager.Direction.Output; in MPFS_GPIO() 109 … irqManager.PinDirection[j] &= ~GPIOInterruptManager.Direction.Output; in MPFS_GPIO() 112 …oviderCallback: _ => (irqManager.PinDirection[j] & GPIOInterruptManager.Direction.Output) != 0, na… in MPFS_GPIO() 118 irqManager.PinDirection[j] |= GPIOInterruptManager.Direction.Input; in MPFS_GPIO() 122 irqManager.PinDirection[j] &= ~GPIOInterruptManager.Direction.Input; in MPFS_GPIO() 125 …oviderCallback: _ => (irqManager.PinDirection[j] & GPIOInterruptManager.Direction.Input) != 0, nam… in MPFS_GPIO() [all …]
|
| D | RenesasRA_GPIO.cs | 24 pinDirection = new IEnumRegisterField<Direction>[numberOfConnections]; in RenesasRA_GPIO() 110 if(pinDirection[number].Value != Direction.Input) in OnGPIO() 149 if(pinDirection[i].Value != Direction.Input) in UpdateIRQOutput() 165 … changeCallback: (i, _, value) => { if(value == Direction.Input) UpdateIRQOutput(); }) in DefineRegisters() 198 … changeCallback: (_, value) => { if(value == Direction.Input) UpdateIRQOutput(); }) in DefinePinConfigurationRegisters() 221 if(pinDirection[index].Value == Direction.Output) in GetInput() 230 if(pinDirection[index].Value != Direction.Output) in SetOutput() 263 private IEnumRegisterField<Direction>[] pinDirection; 278 private enum Direction enum in Antmicro.Renode.Peripherals.GPIOPort.RenesasRA_GPIO
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Tests/UnitTests/ |
| D | CoreTimerTest.cs | 26 …er = new LimitTimer(manualClockSource, 100, null, String.Empty, 100000, Direction.Ascending, true); in ShouldBeAscending() 41 …er = new LimitTimer(manualClockSource, 100, null, String.Empty, 100000, Direction.Descending, true… in ShouldBeDescending() 57 …var timer = new LimitTimer(manualClockSource, 1, null, String.Empty, limit, Direction.Ascending, t… in ShouldNotExceedLimitAscending() 73 …var timer = new LimitTimer(manualClockSource, 1, null, String.Empty, limit, Direction.Descending, … in ShouldNotExceedLimitDescending() 91 …= new LimitTimer(manualClockSource, 1000000, null, String.Empty, limit, Direction.Descending, true… in ShouldHandleMicrosecondPrecisionTimerEvents() 107 … new LimitTimer(manualClockSource, 10000000, null, String.Empty, limit, Direction.Descending, true… in ShouldHandleSubMicrosecondPrecisionTimerEvents() 120 …er = new LimitTimer(manualClockSource, 100, null, String.Empty, 100000, Direction.Ascending, true); in ShouldSwitchDirectionProperly() 125 timer.Direction = Direction.Descending; // and then change the direction in ShouldSwitchDirectionProperly() 134 …var timer = new LimitTimer(manualClockSource, 1, null, String.Empty, 10, Direction.Descending, tru… in ShouldNotFireAlarmWhenInterruptsAreDisabled() 145 …var timer = new LimitTimer(manualClockSource, 1, null, String.Empty, 10, Direction.Descending, tru… in ShouldFireAlarmWhenInterruptsAreEnabled()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/Timers/ |
| D | LimitTimer.cs | 19 …heral owner, string localName, ulong limit = ulong.MaxValue, Direction direction = Direction.Desce… in LimitTimer() 50 …e clockSource, long frequency, ulong limit = ulong.MaxValue, Direction direction = Direction.Desce… in LimitTimer() 167 … return oldEntry.With(period: value, value: oldEntry.Direction == Direction.Ascending ? 0 : value); 250 if(oldEntry.Direction == Direction.Ascending) in ResetValue() 260 public Direction Direction property in Antmicro.Renode.Peripherals.Timers.LimitTimer 264 return clockSource.GetClockEntry(OnLimitReached).Direction; 317 { Value = initialDirection == Direction.Ascending ? 0 : initialLimit }; in InternalReset() 336 private readonly Direction initialDirection;
|
| D | ComparingTimer.cs | 19 …heral owner, string localName, ulong limit = ulong.MaxValue, Direction direction = Direction.Ascen… in ComparingTimer() 54 …e clockSource, long frequency, ulong limit = ulong.MaxValue, Direction direction = Direction.Ascen… in ComparingTimer() 245 { Value = initialDirection == Direction.Ascending ? 0 : initialLimit }; in InternalReset() 268 private readonly Direction initialDirection;
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/USB/ |
| D | USBEndpoint.cs | 19 Direction direction, in USBEndpoint() 27 Direction = direction; in USBEndpoint() 40 if(Direction != Direction.HostToDevice) 62 if(Direction != Direction.HostToDevice) in WriteData() 85 if(Direction != Direction.DeviceToHost) in PreparePacket() 160 public Direction Direction { get; } property in Antmicro.Renode.Core.USB.USBEndpoint 170 .Append((byte)(((int)Direction << 7) | Identifier)) in FillDescriptor()
|
| D | SetupPacket.cs | 19 public Direction Direction; field
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Sensors/ |
| D | AK0991x.cs | 96 get => GetSampleFromRESDStream(ref magResdStream, Direction.X); 102 get => GetSampleFromRESDStream(ref magResdStream, Direction.Y); 108 get => GetSampleFromRESDStream(ref magResdStream, Direction.Z); 120 private int GetMagneticSampleValueDefault(Direction d) in GetMagneticSampleValueDefault() 124 case Direction.X: in GetMagneticSampleValueDefault() 126 case Direction.Y: in GetMagneticSampleValueDefault() 128 case Direction.Z: in GetMagneticSampleValueDefault() 135 private int GetMagneticSampleValue(MagneticSample sample, Direction d) in GetMagneticSampleValue() 139 case Direction.X: in GetMagneticSampleValue() 141 case Direction.Y: in GetMagneticSampleValue() [all …]
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/DMA/ |
| D | STM32DMA.cs | 253 direction = Direction.PeripheralToMemory; in Reset() 264 case Direction.PeripheralToMemory: in CreateRequest() 265 case Direction.MemoryToMemory: in CreateRequest() 269 case Direction.MemoryToPeripheral: in CreateRequest() 275 …var sourceTransferType = direction == Direction.PeripheralToMemory ? peripheralTransferType : memo… in CreateRequest() 276 …var destinationTransferType = direction == Direction.MemoryToPeripheral ? peripheralTransferType :… in CreateRequest() 277 …var incrementSourceAddress = direction == Direction.PeripheralToMemory ? peripheralIncrementAddres… in CreateRequest() 278 …var incrementDestinationAddress = direction == Direction.MemoryToPeripheral ? peripheralIncrementA… in CreateRequest() 351 direction = (Direction)((value >> 6) & 3); in HandleConfigurationWrite() 361 if(direction != Direction.PeripheralToMemory) in HandleConfigurationWrite() [all …]
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/USB/HID/ |
| D | Interface.cs | 38 … return HandleStandardRequest(packet.Direction, (StandardRequest)packet.Request, packet.Value); in HandleRequest() 40 … return HandleClassRequest(packet.Direction, (HidClassRequest)packet.Request, packet.Value); in HandleRequest() 47 … private BitStream HandleClassRequest(Direction direction, HidClassRequest request, ushort value) in HandleClassRequest() 60 …private BitStream HandleStandardRequest(Direction direction, StandardRequest request, ushort value) in HandleStandardRequest() 65 if(direction != Direction.DeviceToHost) in HandleStandardRequest()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/USB/ |
| D | USBHost.cs | 79 setupPacket.Direction = Core.USB.Direction.DeviceToHost; in GetDescriptor() 92 setupPacket.Direction = Core.USB.Direction.HostToDevice; in SetAddress() 111 setupPacket.Direction = Core.USB.Direction.HostToDevice; in SetConfiguration()
|
| D | NRF_USBD.cs | 234 valueProviderCallback: _ => (ulong)setupPacket.Direction) in DefineRegisters() 382 Direction.DeviceToHost, in InitiateUSBCore() 388 Direction.DeviceToHost, in InitiateUSBCore() 394 Direction.DeviceToHost, in InitiateUSBCore() 400 Direction.DeviceToHost, in InitiateUSBCore() 406 Direction.DeviceToHost, in InitiateUSBCore() 412 Direction.DeviceToHost, in InitiateUSBCore() 418 Direction.DeviceToHost, in InitiateUSBCore() 424 Direction.DeviceToHost, in InitiateUSBCore() 430 Direction.HostToDevice, in InitiateUSBCore() [all …]
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/GPIOPort/ |
| D | GPIOInterruptManager.cs | 27 … pinDirection = new EventRisingCollection<Direction>(numberOfGpios, () => RefreshInterrupts()); in GPIOInterruptManager() 67 if(!InterruptEnable[i] || (pinDirection[i] & Direction.Input) == 0) in RefreshInterrupts() 143 public IArray<Direction> PinDirection { get { return pinDirection; } } 158 private readonly EventRisingCollection<Direction> pinDirection; 170 public enum Direction enum in Antmicro.Renode.Peripherals.GPIOPort.GPIOInterruptManager
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/Utilities/USBIP/ |
| D | USBIPServer.cs | 213 … if(urbHeader.Direction == URBDirection.Out && packet.TransferBufferLength > 0) in HandleIncomingData() 222 … if(urbHeader.Direction == URBDirection.Out && packet.TransferBufferLength > 0) in HandleIncomingData() 251 …t((int)urbHeader.EndpointNumber, urbHeader.Direction == URBDirection.Out ? Direction.HostToDevice … in HandleIncomingData() 256 else if(ep.Direction == Direction.DeviceToHost) in HandleIncomingData() 306 Direction = hdr.Direction, in GenerateURBReply() 353 Direction = Direction.DeviceToHost, in ReadDeviceDescriptor() 368 Direction = Direction.DeviceToHost, in ReadConfigurationDescriptor()
|