Class ModbusSerialTransport
Transport for Serial protocols. Refined Abstraction - http://en.wikipedia.org/wiki/Bridge_Pattern
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.IO
Assembly: NModbus.dll
Syntax
public abstract class ModbusSerialTransport : ModbusTransport, IModbusSerialTransport, IModbusTransport, IDisposable
Properties
| Improve this Doc View SourceCheckFrame
Gets or sets a value indicating whether LRC/CRC frame checking is performed on messages.
Declaration
public bool CheckFrame { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceChecksumsMatch(IModbusMessage, Byte[])
Declaration
public abstract bool ChecksumsMatch(IModbusMessage message, byte[] messageFrame)
Parameters
Type | Name | Description |
---|---|---|
IModbusMessage | message | |
System.Byte[] | messageFrame |
Returns
Type | Description |
---|---|
System.Boolean |
CreateResponse<T>(Byte[])
Declaration
public override IModbusMessage CreateResponse<T>(byte[] frame)where T : IModbusMessage, new ()
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | frame |
Returns
Type | Description |
---|---|
IModbusMessage |
Type Parameters
Name | Description |
---|---|
T |
Overrides
| Improve this Doc View SourceDiscardInBuffer()
Declaration
public void DiscardInBuffer()
IgnoreResponse()
Declaration
public abstract void IgnoreResponse()
Write(IModbusMessage)
Declaration
public override void Write(IModbusMessage message)
Parameters
Type | Name | Description |
---|---|---|
IModbusMessage | message |
Overrides
Implements
System.IDisposable