The CommPort type exposes the following members.

Constructors

  NameDescription
CommPort
Initializes a new instance of the CommPort class

Methods

  NameDescription
Check
Check to see if a port can be opened.
Close
Close the serial port
DiscardBuffers
If port is open flush both the in and out buffers
Dispose
Implement IDisposable
EnumeratePorts
List the comm ports available on a system.
Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType
Gets the Type of the current instance.
(Inherited from Object.)
OpenOverloaded.
OpenPolled
Open a serial port at the default baudrate in polled mode
ToString
Returns a String that represents the current Object.
(Inherited from Object.)
WriteOverloaded.

Fields

  NameDescription
DefaultBaudRate
Standard baudrate

Properties

  NameDescription
ForceStopEnumerating
Flag to terminate an ennumeration sequence which can possibly take a while.
IsOpen
Gets a value indicating whether the port is open.
ReadTimeout
Set read timeout in mS
RxCount
Get the number of bytes in the recieve buffer This is used for polled operation
RxData
Get the data in the recieve buffer This is used for polled operation
SimpleName
Simple name of the fome COM#
WriteTimeout
Set write timeout in mS

Events

  NameDescription
ReceivedData
Event fires on reception of serial port data

See Also