AbstractController_RadioFrequency.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using Uestc.Auto6.Dso.ComModel;
  7. namespace Uestc.Auto6.Dso.Hardware.Driver
  8. {
  9. internal abstract class AbstractController_RadioFrequency
  10. {
  11. protected Action? _CtrlConfig;
  12. protected Action? _CtrlConfigWindow;
  13. protected Action? _CtrlSpan;
  14. protected Action? _CtrlSTFTSource;
  15. public static ChannelId CurrentRFChannel
  16. {
  17. get;
  18. set;
  19. } = ChannelId.RF1;
  20. public static Int64 RBWHardware
  21. {
  22. get;
  23. set;
  24. } = 1024;
  25. public static Int64 SpanHardware
  26. {
  27. get;
  28. set;
  29. } = 1024;
  30. public static void CtrlConfig() => Hd.currProduct?.Ctrl_RadioFrequency?._CtrlConfig?.Invoke();
  31. public static void CtrlConfigWindow() => Hd.currProduct?.Ctrl_RadioFrequency?._CtrlConfigWindow?.Invoke();
  32. public static void CtrlSpan() => Hd.currProduct?.Ctrl_RadioFrequency?._CtrlSpan?.Invoke();
  33. public static void CtrlSTFTSource() => Hd.currProduct?.Ctrl_RadioFrequency?._CtrlSTFTSource?.Invoke();
  34. }
  35. }