C# 클래스 XBeeP.CommunicationManager

파일 보기 프로젝트 열기: Skye07/XBeeP 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

ClosePort() 공개 메소드

public ClosePort ( ) : bool
리턴 bool

CommunicationManager() 공개 메소드

Comstructor to set the properties of our serial port communicator to nothing
public CommunicationManager ( ) : System
리턴 System

CommunicationManager() 공개 메소드

Constructor to set the properties of our Manager Class
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

OpenPort() 공개 메소드

public OpenPort ( ) : bool
리턴 bool

SetParityValues() 공개 메소드

public SetParityValues ( object obj ) : void
obj object
리턴 void

SetPortNameValues() 공개 메소드

public SetPortNameValues ( object obj ) : void
obj object
리턴 void

SetStopBitValues() 공개 메소드

public SetStopBitValues ( object obj ) : void
obj object
리턴 void

WriteData() 공개 메소드

public WriteData ( string msg ) : void
msg string
리턴 void

comPort_DataReceived() 공개 메소드

method that will be called when theres data waiting in the buffer
public comPort_DataReceived ( object sender, System.IO.Ports.SerialDataReceivedEventArgs e ) : void
sender object
e System.IO.Ports.SerialDataReceivedEventArgs
리턴 void