C# Class SerialComPort.Serial

Inheritance: IDisposable
Mostrar archivo Open project: HerrRiebmann/KDS2Bluetooth Class Usage Examples

Public Methods

Method Description
Close ( ) : bool
Dispose ( ) : void
Open ( ) : bool
Open ( ComSetup setup ) : bool
Send ( string command ) : bool
SendLine ( string command ) : bool
Serial ( ) : System
_comPort_DataReceived ( object sender, System.IO.Ports.SerialDataReceivedEventArgs e ) : void
_comPort_Disposed ( object sender, EventArgs e ) : void
_comPort_ErrorReceived ( object sender, System.IO.Ports.SerialErrorReceivedEventArgs e ) : void
_comPort_PinChanged ( object sender, System.IO.Ports.SerialPinChangedEventArgs e ) : void

Private Methods

Method Description
DisplayData ( MessageTypes type, string data ) : void

Method Details

Close() public method

public Close ( ) : bool
return bool

Dispose() public method

public Dispose ( ) : void
return void

Open() public method

public Open ( ) : bool
return bool

Open() public method

public Open ( ComSetup setup ) : bool
setup ComSetup
return bool

Send() public method

public Send ( string command ) : bool
command string
return bool

SendLine() public method

public SendLine ( string command ) : bool
command string
return bool

Serial() public method

public Serial ( ) : System
return System

_comPort_DataReceived() public method

public _comPort_DataReceived ( object sender, System.IO.Ports.SerialDataReceivedEventArgs e ) : void
sender object
e System.IO.Ports.SerialDataReceivedEventArgs
return void

_comPort_Disposed() public method

public _comPort_Disposed ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

_comPort_ErrorReceived() public method

public _comPort_ErrorReceived ( object sender, System.IO.Ports.SerialErrorReceivedEventArgs e ) : void
sender object
e System.IO.Ports.SerialErrorReceivedEventArgs
return void

_comPort_PinChanged() public method

public _comPort_PinChanged ( object sender, System.IO.Ports.SerialPinChangedEventArgs e ) : void
sender object
e System.IO.Ports.SerialPinChangedEventArgs
return void