Class PointSource<T>
A simple implementation of the point source. All registers are.
Inheritance
System.Object
PointSource<T>
Implements
IPointSource<T>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: NModbus.Data
Assembly: NModbus.dll
Syntax
public class PointSource<T> : IPointSource<T> where T : struct
Type Parameters
Name | Description |
---|---|
T |
Constructors
| Improve this Doc View SourcePointSource()
Declaration
public PointSource()
Methods
| Improve this Doc View SourceReadPoints(UInt16, UInt16)
Declaration
public T[] ReadPoints(ushort startAddress, ushort numberOfPoints)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16 | startAddress | |
System.UInt16 | numberOfPoints |
Returns
Type | Description |
---|---|
T[] |
WritePoints(UInt16, T[])
Declaration
public void WritePoints(ushort startAddress, T[] points)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16 | startAddress | |
T[] | points |
Events
| Improve this Doc View SourceAfterWrite
Declaration
public event EventHandler<PointEventArgs> AfterWrite
Event Type
Type | Description |
---|---|
System.EventHandler<PointEventArgs> |
BeforeRead
Declaration
public event EventHandler<PointEventArgs> BeforeRead
Event Type
Type | Description |
---|---|
System.EventHandler<PointEventArgs> |
BeforeWrite
Declaration
public event EventHandler<PointEventArgs<T>> BeforeWrite
Event Type
Type | Description |
---|---|
System.EventHandler<PointEventArgs<T>> |
Explicit Interface Implementations
| Improve this Doc View SourceIPointSource<T>.ReadPoints(UInt16, UInt16)
Declaration
T[] IPointSource<T>.ReadPoints(ushort startAddress, ushort numberOfPoints)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16 | startAddress | |
System.UInt16 | numberOfPoints |
Returns
Type | Description |
---|---|
T[] |
IPointSource<T>.WritePoints(UInt16, T[])
Declaration
void IPointSource<T>.WritePoints(ushort startAddress, T[] points)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16 | startAddress | |
T[] | points |