From cc4c25acad51126487a5eb601c86a5974ea56288 Mon Sep 17 00:00:00 2001 From: Chris Tacke Date: Thu, 2 Jan 2025 19:40:26 -0600 Subject: [PATCH] simulated analyzer updates --- .../Ports/SimulatedDigitalSignalAnalyzer.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Source/Meadow.Foundation.Core/Simulation/Ports/SimulatedDigitalSignalAnalyzer.cs b/Source/Meadow.Foundation.Core/Simulation/Ports/SimulatedDigitalSignalAnalyzer.cs index 9f10088ca..725898d88 100644 --- a/Source/Meadow.Foundation.Core/Simulation/Ports/SimulatedDigitalSignalAnalyzer.cs +++ b/Source/Meadow.Foundation.Core/Simulation/Ports/SimulatedDigitalSignalAnalyzer.cs @@ -7,6 +7,7 @@ public class SimulatedDigitalSignalAnalyzer : IDigitalSignalAnalyzer { private Frequency frequency; private double dutyCycle = 0.5; + private ulong count; public SimulatedDigitalSignalAnalyzer(Frequency frequency) { @@ -37,4 +38,14 @@ public Frequency GetMeanFrequency() { return frequency; } + + public void SetCount(ulong count) + { + this.count = count; + } + + public ulong GetCount() + { + return count; + } }