Click or drag to resize

ISerialProtocol Interface

A basic serial protocol interface which has an encoding, data-available, send and receive method It is also clonable so that it can be copied and assigned to multiple ports

Namespace: Brainboxes.IO
Assembly: Brainboxes.IO (in Brainboxes.IO.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public interface ISerialProtocol : IProtocol, 
	ICloneable

The ISerialProtocol type exposes the following members.

Properties
 NameDescription
Public propertyDataAvailable Indicates whether data is available, can be 0, for no data, 1 for 1 or more bytes, or a number representing the precise number of bytes
Public propertyEncoding The character encoding used to send and receive data
Public propertyStream The stream on which the protocol acts
(Inherited from IProtocol)
Top
Methods
 NameDescription
Public methodCloneCreates a new object that is a copy of the current instance.
(Inherited from ICloneable)
Public methodReceive Receive data from the serial port
Public methodSend Send data down the serial port
Top
See Also