Show / Hide Table of Contents

Class SerialPortAdapter

Concrete Implementor - http://en.wikipedia.org/wiki/Bridge_Pattern

Inheritance
System.Object
SerialPortAdapter
Implements
IStreamResource
System.IDisposable
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.Serial
Assembly: NModbus.Serial.dll
Syntax
public class SerialPortAdapter : IStreamResource, IDisposable

Constructors

| Improve this Doc View Source

SerialPortAdapter(SerialPort)

Declaration
public SerialPortAdapter(SerialPort serialPort)
Parameters
Type Name Description
System.IO.Ports.SerialPort serialPort

Properties

| Improve this Doc View Source

InfiniteTimeout

Declaration
public int InfiniteTimeout { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

ReadTimeout

Declaration
public int ReadTimeout { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

WriteTimeout

Declaration
public int WriteTimeout { get; set; }
Property Value
Type Description
System.Int32

Methods

| Improve this Doc View Source

DiscardInBuffer()

Declaration
public void DiscardInBuffer()
| Improve this Doc View Source

Dispose()

Declaration
public void Dispose()
| Improve this Doc View Source

Dispose(Boolean)

Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type Name Description
System.Boolean disposing
| Improve this Doc View Source

Read(Byte[], Int32, Int32)

Declaration
public int Read(byte[] buffer, int offset, int count)
Parameters
Type Name Description
System.Byte[] buffer
System.Int32 offset
System.Int32 count
Returns
Type Description
System.Int32
| Improve this Doc View Source

Write(Byte[], Int32, Int32)

Declaration
public void Write(byte[] buffer, int offset, int count)
Parameters
Type Name Description
System.Byte[] buffer
System.Int32 offset
System.Int32 count

Implements

IStreamResource
System.IDisposable
  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX