FPGABaseProperty.cs 677 B

12345678910111213141516171819202122232425
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace NIFPGA
  7. {
  8. public abstract class FPGABaseProperty : FPGABase
  9. {
  10. internal FPGABaseProperty(FPGASession session,uint indicator,bool isIndicator) : base(session)
  11. {
  12. Indicator = indicator;
  13. IsIndicator= isIndicator;
  14. }
  15. public uint SizeInBits { get; init; }
  16. public Boolean IsIndicator { get; }
  17. public uint Indicator { get; }
  18. public string Name { get; init; } = string.Empty;
  19. public override string ToString()
  20. {
  21. return Name;
  22. }
  23. }
  24. }