SlaveDataStore.cs 799 B

12345678910111213141516171819202122232425
  1. namespace NModbus.Data
  2. {
  3. public class SlaveDataStore : ISlaveDataStore
  4. {
  5. public PointSource<ushort> HoldingRegisters { get; } = new PointSource<ushort>();
  6. public PointSource<ushort> InputRegisters { get; } = new PointSource<ushort>();
  7. public PointSource<bool> CoilDiscretes { get; } = new PointSource<bool>();
  8. public PointSource<bool> CoilInputs { get; } = new PointSource<bool>();
  9. #region ISlaveDataStore
  10. IPointSource<ushort> ISlaveDataStore.HoldingRegisters => HoldingRegisters;
  11. IPointSource<ushort> ISlaveDataStore.InputRegisters => InputRegisters;
  12. IPointSource<bool> ISlaveDataStore.CoilDiscretes => CoilDiscretes;
  13. IPointSource<bool> ISlaveDataStore.CoilInputs => CoilInputs;
  14. #endregion
  15. }
  16. }