Show / Hide Table of Contents

Class SerialDeviceAdapter

UWP SerialDevice Modbus Adapter

Inheritance
System.Object
SerialDeviceAdapter
Namespace: NModbus.Serial
Assembly: NModbus.Serial.UWP.dll
Syntax
public class SerialDeviceAdapter : IStreamResource
Remarks

Contributed by https://github.com/LGinC

Constructors

| Improve this Doc View Source

SerialDeviceAdapter(SerialDevice)

Declaration
public SerialDeviceAdapter(SerialDevice serialDevice)
Parameters
Type Name Description
Windows.Devices.SerialCommunication.SerialDevice serialDevice

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

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
  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX