-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathWriteWordEventArgs.cs
More file actions
39 lines (35 loc) · 1.07 KB
/
WriteWordEventArgs.cs
File metadata and controls
39 lines (35 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using System;
namespace Waher.Networking.Modbus
{
/// <summary>
/// Event arguments for write word events.
/// </summary>
public class WriteWordEventArgs : EventArgs
{
/// <summary>
/// Event arguments for write word events.
/// </summary>
/// <param name="UnitAddress">Request was made for device at this unit address.</param>
/// <param name="ReferenceNr">Read is to start at this reference number.</param>
/// <param name="Value">Value to write.</param>
public WriteWordEventArgs(ushort UnitAddress, ushort ReferenceNr, ushort Value)
{
this.UnitAddress = UnitAddress;
this.ReferenceNr = ReferenceNr;
this.Value = Value;
}
/// <summary>
/// Request was made for device at this unit address.
/// </summary>
public ushort UnitAddress { get; }
/// <summary>
/// Read is to start at this reference number.
/// </summary>
public ushort ReferenceNr { get; }
/// <summary>
/// Value to write. Can be modifed by the handler of the event to return
/// the output value, if different.
/// </summary>
public ushort Value { get; set; }
}
}