Class PvDeviceEventSink
Observer interface for an observable PvDevice object
Inherited Members
Namespace: eBUSDotNetReceive
Assembly: eBUSDotNetReceive.dll
Syntax
public class PvDeviceEventSink : PvDeviceEventSinkSwigInterface, IDisposable
Constructors
View SourcePvDeviceEventSink()
Constructor.
Declaration
public PvDeviceEventSink()
Fields
View SourceswigCMemOwn
Determines who is responsible for deleting the underlying C++ object.
Declaration
protected bool swigCMemOwn
Field Value
| Type | Description |
|---|---|
| bool |
Methods
View SourceDispose()
Dispose.
Declaration
public void Dispose()
Dispose(bool)
Dispose
Declaration
protected virtual void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing |
~PvDeviceEventSink()
Destructor.
Declaration
protected ~PvDeviceEventSink()
OnCmdLinkRead(byte[], long, long)
Callback invoked after a port read.
Declaration
public virtual void OnCmdLinkRead(byte[] aBuffer, long aAddress, long aLength)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | aBuffer | Pointer to the data read. |
| long | aAddress | Address of the data read on the device. |
| long | aLength | Length of the data, in bytes. |
OnCmdLinkWrite(byte[], long, long)
Callback invoked after a port write.
Declaration
public virtual void OnCmdLinkWrite(byte[] aBuffer, long aAddress, long aLength)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | aBuffer | Pointer to the data that was written. |
| long | aAddress | Address of the data written to the device. |
| long | aLength | Length of the data, in bytes. |
OnEvent(PvDevice, ushort, ushort, ulong, ulong, byte[], uint)
Messaging channel raw event notification.
Declaration
public virtual void OnEvent(PvDevice aDevice, ushort aEventID, ushort aChannel, ulong aBlockID, ulong aTimestamp, byte[] aData, uint aDataLength)
Parameters
| Type | Name | Description |
|---|---|---|
| PvDevice | aDevice | Pointer to the PvDevice object that triggered the callback. |
| ushort | aEventID | Event ID. Some standard event IDs are defined but usually device dependent. |
| ushort | aChannel | Streaming channel associated with the event, if any. 0xFFFF is used if the event is not associated to a streaming channel. |
| ulong | aBlockID | Streaming block ID associated with the event, if any. Can be used to pair one or more than one event with a block received from a device. 0 is used if the event is not associated to a block. |
| ulong | aTimestamp | Timestamp of the event on the time domain of the device. Time unit is defined by the device. 0 if timestamps are not supported by the device that generated the event. |
| byte[] | aData | Pointer to Event Data, if applicable. NULL otherwise. |
| uint | aDataLength | Data length, in bytes. |
OnEventGenICam(PvDevice, ushort, ushort, ulong, ulong, PvGenParameterList)
Messaging channel GenICam event notification.
Declaration
public virtual void OnEventGenICam(PvDevice aDevice, ushort aEventID, ushort aChannel, ulong aBlockID, ulong aTimestamp, PvGenParameterList aData)
Parameters
| Type | Name | Description |
|---|---|---|
| PvDevice | aDevice | Pointer to the PvDevice object that triggered the callback. |
| ushort | aEventID | Event ID. Some standard event IDs are defined but usually device dependent. |
| ushort | aChannel | Streaming channel associated with the event, if any. 0xFFFF is used if the event is not associated to a streaming channel. |
| ulong | aBlockID | Streaming block ID associated with the event, if any. Can be used to pair one or more than one event with a block received from a device. 0 is used if the event is not associated to a block. |
| ulong | aTimestamp | Timestamp of the event on the time domain of the device. Time unit is defined by the device. 0 if timestamps are not supported by the device that generated the event. |
| PvGenParameterList | aData | List containing all parameters invalidated by this event. Can be NULL if the event carried no data or the data was does not invalidate any GenApi parameters of the device. |
OnLinkDisconnected(PvDevice)
Notification that the #PvDevice unexpectedly lost contact with the device.
Declaration
public virtual void OnLinkDisconnected(PvDevice aDevice)
Parameters
| Type | Name | Description |
|---|---|---|
| PvDevice | aDevice | Pointer to the device object that invoked this callback. |
OnLinkReconnected(PvDevice)
Deprecated, no longer used.
Declaration
public virtual void OnLinkReconnected(PvDevice aDevice)
Parameters
| Type | Name | Description |
|---|---|---|
| PvDevice | aDevice | Pointer to the device object that invoked this callback. |