AdcRegisterDataFormat.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Text.Json.Serialization;
  7. namespace Uestc.Auto6.Dso.Hardware.Calibration.Data.Base
  8. {
  9. public class AdcRegisterDataFormat
  10. {
  11. [JsonPropertyName("BoardIndex")]
  12. public int BoardIndex
  13. {
  14. get;
  15. set;
  16. }
  17. public Adc[]? AllAdc
  18. {
  19. get;
  20. set;
  21. }
  22. }
  23. public class Adc
  24. {
  25. [JsonPropertyName("AdcIndex")]
  26. public int AdcIndex
  27. {
  28. get;
  29. set;
  30. }
  31. public RegisterAddrValuePair[]? RegisterValuePair
  32. {
  33. get;
  34. set;
  35. }
  36. }
  37. public class RegisterAddrValuePair
  38. {
  39. [JsonPropertyName("RegAddress")]
  40. public uint RegAddress
  41. {
  42. get;
  43. set;
  44. }
  45. [JsonPropertyName("RegValue")]
  46. public uint RegValue
  47. {
  48. get;
  49. set;
  50. }
  51. }
  52. }