Class PvDeviceSerialPortEchoSink
Receives serial port echo notifications for transmitted and received data.
Implements
Inherited Members
Namespace: eBUSDotNetReceive
Assembly: eBUSDotNetReceive.dll
Syntax
public class PvDeviceSerialPortEchoSink : IDisposable
Constructors
View SourcePvDeviceSerialPortEchoSink()
Constructor.
Declaration
public PvDeviceSerialPortEchoSink()
Fields
View SourceswigCMemOwn
Declaration
protected bool swigCMemOwn
Field Value
| Type | Description |
|---|---|
| bool |
Methods
View SourceDispose()
Dispose.
Declaration
public void Dispose()
Dispose(bool)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing |
~PvDeviceSerialPortEchoSink()
Destructor.
Declaration
protected ~PvDeviceSerialPortEchoSink()
OnRead(string, PvDeviceSerial, byte*, uint, ulong)
Notification that bytes were read from a serial port.
Declaration
public void OnRead(string aDeviceID, PvDeviceSerial aPort, byte* aBytes, uint aByteCount, ulong aTimestamp)
Parameters
| Type | Name | Description |
|---|---|---|
| string | aDeviceID | Identifier of the originating device. |
| PvDeviceSerial | aPort | Serial port on which data was read. |
| byte* | aBytes | Pointer to the received bytes. |
| uint | aByteCount | Number of bytes received. |
| ulong | aTimestamp | Timestamp associated with the read. |
OnReadComplete(string, PvDeviceSerial, ulong)
Notification that a read operation completed on a serial port.
Declaration
public virtual void OnReadComplete(string aDeviceID, PvDeviceSerial aPort, ulong aTimestamp)
Parameters
| Type | Name | Description |
|---|---|---|
| string | aDeviceID | Identifier of the originating device. |
| PvDeviceSerial | aPort | Serial port on which the read completed. |
| ulong | aTimestamp | Timestamp associated with the completion. |
OnTransmitted(string, PvDeviceSerial, byte*, uint, ulong)
Notification that bytes were transmitted on a serial port.
Declaration
public void OnTransmitted(string aDeviceID, PvDeviceSerial aPort, byte* aBytes, uint aByteCount, ulong aTimestamp)
Parameters
| Type | Name | Description |
|---|---|---|
| string | aDeviceID | Identifier of the originating device. |
| PvDeviceSerial | aPort | Serial port on which data was transmitted. |
| byte* | aBytes | Pointer to the transmitted bytes. |
| uint | aByteCount | Number of bytes transmitted. |
| ulong | aTimestamp | Timestamp associated with the transmission. |