Class FactoryExtensions
Extension methods for the IModbusFactory interface.
Inheritance
System.Object
FactoryExtensions
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
Assembly: NModbus.dll
Syntax
public static class FactoryExtensions
Methods
| Improve this Doc View SourceCreateAsciiMaster(IModbusFactory, IStreamResource)
Creates an ASCII master.
Declaration
public static IModbusSerialMaster CreateAsciiMaster(this IModbusFactory factory, IStreamResource streamResource)
Parameters
Type | Name | Description |
---|---|---|
IModbusFactory | factory | |
IStreamResource | streamResource |
Returns
Type | Description |
---|---|
IModbusSerialMaster |
CreateAsciiSlaveNetwork(IModbusFactory, IStreamResource)
Creates an ASCII slave network.
Declaration
public static IModbusSlaveNetwork CreateAsciiSlaveNetwork(this IModbusFactory factory, IStreamResource streamResource)
Parameters
Type | Name | Description |
---|---|---|
IModbusFactory | factory | |
IStreamResource | streamResource |
Returns
Type | Description |
---|---|
IModbusSlaveNetwork |
CreateRtuMaster(IModbusFactory, IStreamResource)
Creates an RTU master.
Declaration
public static IModbusSerialMaster CreateRtuMaster(this IModbusFactory factory, IStreamResource streamResource)
Parameters
Type | Name | Description |
---|---|---|
IModbusFactory | factory | |
IStreamResource | streamResource |
Returns
Type | Description |
---|---|
IModbusSerialMaster |
CreateRtuSlaveNetwork(IModbusFactory, IStreamResource)
Creates an RTU slave network.
Declaration
public static IModbusSlaveNetwork CreateRtuSlaveNetwork(this IModbusFactory factory, IStreamResource streamResource)
Parameters
Type | Name | Description |
---|---|---|
IModbusFactory | factory | |
IStreamResource | streamResource |
Returns
Type | Description |
---|---|
IModbusSlaveNetwork |