Com |
public sealed class ComPort : PortDevice, IParentInformation
The ComPort type exposes the following members.
| Name | Description | |
|---|---|---|
| BaudRate | Get the current baud rate | |
| BREAK | Sets/Clears the long break. Set to true to start a long break and then set to false to end the long break. | |
| CD | Get the CD flag | |
| ComPort_Capabilities | Get the Capabilities of this com port. (RS 232/422/485 and RTS/CTS Support). Bitwise against the ComportCapabilitiesEnum. | |
| CTS | Get the current CTS flag state | |
| DataBits | Get the data bits | |
| DSR | Get the DSR state | |
| EnableFeedback | Enable Feedback for Comports Reserved for future use | |
| HwHandShake | Get the hardware handshake state | |
| Parity | Get the parity | |
| Present | Property to indicate if a device is connected to the specific COMPORT. This is only supported on the COMPORTS on the CenIoCom2 device. For all other devices this will always return false. | |
| Protocol | Get the current protocol | |
| RcvdString | Function to get the Rcvdata on the COMPORT | |
| ReportCTSChanges | Property to return if this COM port will report CTS changes | |
| RING | Get the RING state | |
| RTS | Set the RTS flag. | |
| SlotType |
Function to return the slot Type
(Overrides CrestronDevice.SlotType) | |
| StopBits | Get the number of stop bits | |
| SupportedBaudRates | Get the supported baudrates of this com port. Bitwise against the ComBaudRatesEnum. | |
| Supports232 | See if the COMPORT Supports 232 | |
| Supports422 | See if the COMPORT Supports 422 | |
| Supports485 | See if the COMPORT Supports 485 | |
| SupportsRTSCTS | See if the COMPORT supports RTS/CTS | |
| SwHandShake | Get the software handshake state | |
| TransmitString | Send data to the COMPORT |
| Name | Description | |
|---|---|---|
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| Send(String) | Function for the user to send a string out the com port. | |
| Send(Char, Int32) | Function for the user to send a character array using the specified start and length. Does not update the TransmitString property to avoid string allocation overhead. | |
| SendShortBreak | Function for sending a short break. | |
| SetComPortSpec(ComPortComPortSpec) | Function to set the COM port's specification as defined in the ComPortSpec structure. | |
| SetComPortSpec(ComPorteComBaudRates, ComPorteComDataBits, ComPorteComParityType, ComPorteComStopBits, ComPorteComProtocolType, ComPorteComHardwareHandshakeType, ComPorteComSoftwareHandshakeType, Boolean) | Function to set the com spec for the specified COM Port | |
| UnRegister |
Function to unregister the ComPort, if registered.
(Overrides PortDevice.UnRegister) |
| Name | Description | |
|---|---|---|
| ExtendedInformationChanged | Extended Information of the com port change event handler | |
| PropertyChanged | Property change event handler | |
| SerialDataReceived | Serial data receive event handler | |
| SerialDataTransmitted | Serial data transmit event handler. Not currently supported. |