Class SerialDeviceAdapter
UWP SerialDevice Modbus Adapter
Inheritance
System.Object
SerialDeviceAdapter
Assembly: NModbus.Serial.UWP.dll
Syntax
public class SerialDeviceAdapter : IStreamResource
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
|
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 |
|