Nedap.HandheldApi
|
Interface to communication port. More...
Public Member Functions | |
bool | Connect () |
Connect to port. | |
bool | Disconnect () |
Disconnect from port. | |
int | WriteData (byte[] buffer, int offset, int length) |
Writes data to port. | |
int | ReadData (byte[] buffer, int offset, int length) |
Reads data from port, if no data is available it should return with 0 result. | |
Properties | |
bool | Connected [get] |
Defines if port is connected. | |
Events | |
EventHandler | OnDataReceived |
Event thrown when data is available to read. |
Interface to communication port.
bool Nedap.HandheldApi.CommunicationQueue.ICommunicationPort.Connect | ( | ) |
Connect to port.
Implemented in Nedap.HandheldApi.CommunicationPort.BluetoothCommunicationPort, and Nedap.HandheldApi.CommunicationPort.SerialCommunicationPort.
bool Nedap.HandheldApi.CommunicationQueue.ICommunicationPort.Disconnect | ( | ) |
Disconnect from port.
Implemented in Nedap.HandheldApi.CommunicationPort.BluetoothCommunicationPort, and Nedap.HandheldApi.CommunicationPort.SerialCommunicationPort.
int Nedap.HandheldApi.CommunicationQueue.ICommunicationPort.ReadData | ( | byte[] | buffer, |
int | offset, | ||
int | length | ||
) |
Reads data from port, if no data is available it should return with 0 result.
buffer | Buffer to read into |
offset | Position where to start writing |
length | Maximum number of bytes to read |
Implemented in Nedap.HandheldApi.CommunicationPort.BluetoothCommunicationPort, and Nedap.HandheldApi.CommunicationPort.SerialCommunicationPort.
int Nedap.HandheldApi.CommunicationQueue.ICommunicationPort.WriteData | ( | byte[] | buffer, |
int | offset, | ||
int | length | ||
) |
Writes data to port.
buffer | Data buffer |
offset | Position where to start writing |
length | Number of bytes to write |
Implemented in Nedap.HandheldApi.CommunicationPort.BluetoothCommunicationPort, and Nedap.HandheldApi.CommunicationPort.SerialCommunicationPort.
bool Nedap.HandheldApi.CommunicationQueue.ICommunicationPort.Connected [get] |
Defines if port is connected.
Implemented in Nedap.HandheldApi.CommunicationPort.BluetoothCommunicationPort, and Nedap.HandheldApi.CommunicationPort.SerialCommunicationPort.
EventHandler Nedap.HandheldApi.CommunicationQueue.ICommunicationPort.OnDataReceived |
Event thrown when data is available to read.
Implemented in Nedap.HandheldApi.CommunicationPort.BluetoothCommunicationPort, and Nedap.HandheldApi.CommunicationPort.SerialCommunicationPort.