메소드 | 설명 | |
---|---|---|
ClosePort ( ) : bool | ||
CommunicationManager ( ) : System |
Comstructor to set the properties of our serial port communicator to nothing
|
|
CommunicationManager ( string baud, string par, string sBits, string dBits, string name, System.Windows.Forms.RichTextBox rtb ) : System |
Constructor to set the properties of our Manager Class
|
|
OpenPort ( ) : bool | ||
SetParityValues ( object obj ) : void | ||
SetPortNameValues ( object obj ) : void | ||
SetStopBitValues ( object obj ) : void | ||
WriteData ( string msg ) : void | ||
comPort_DataReceived ( object sender, System.IO.Ports.SerialDataReceivedEventArgs e ) : void |
method that will be called when theres data waiting in the buffer
|
메소드 | 설명 | |
---|---|---|
ByteToHex ( byte comByte ) : string |
method to convert a byte array into a hex string
|
|
DisplayData ( MessageType type, string msg ) : void | ||
HexToByte ( string msg ) : byte[] |
method to convert hex string into a byte array
|
public CommunicationManager ( string baud, string par, string sBits, string dBits, string name, System.Windows.Forms.RichTextBox rtb ) : System | ||
baud | string | Desired BaudRate |
par | string | Desired Parity |
sBits | string | Desired StopBits |
dBits | string | Desired DataBits |
name | string | Desired PortName |
rtb | System.Windows.Forms.RichTextBox | |
리턴 | System |
public comPort_DataReceived ( object sender, System.IO.Ports.SerialDataReceivedEventArgs e ) : void | ||
sender | object | |
e | System.IO.Ports.SerialDataReceivedEventArgs | |
리턴 | void |