C# Class SerialComPort.Serial

Inheritance: IDisposable
Afficher le fichier Open project: HerrRiebmann/KDS2Bluetooth Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
DisplayData ( MessageTypes type, string data ) : void

Method Details

Close() public méthode

public Close ( ) : bool
Résultat bool

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Open() public méthode

public Open ( ) : bool
Résultat bool

Open() public méthode

public Open ( ComSetup setup ) : bool
setup ComSetup
Résultat bool

Send() public méthode

public Send ( string command ) : bool
command string
Résultat bool

SendLine() public méthode

public SendLine ( string command ) : bool
command string
Résultat bool

Serial() public méthode

public Serial ( ) : System
Résultat System

_comPort_DataReceived() public méthode

public _comPort_DataReceived ( object sender, System.IO.Ports.SerialDataReceivedEventArgs e ) : void
sender object
e System.IO.Ports.SerialDataReceivedEventArgs
Résultat void

_comPort_Disposed() public méthode

public _comPort_Disposed ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

_comPort_ErrorReceived() public méthode

public _comPort_ErrorReceived ( object sender, System.IO.Ports.SerialErrorReceivedEventArgs e ) : void
sender object
e System.IO.Ports.SerialErrorReceivedEventArgs
Résultat void

_comPort_PinChanged() public méthode

public _comPort_PinChanged ( object sender, System.IO.Ports.SerialPinChangedEventArgs e ) : void
sender object
e System.IO.Ports.SerialPinChangedEventArgs
Résultat void