C# Class MiDeRP.SerialInterface

Inheritance: ISerial, IDisposable
Afficher le fichier Open project: EraYaN/MiDeRP Class Usage Examples

Méthodes publiques

Свойство Type Description
lastError string

Méthodes publiques

Méthode Description
DataSerial ( Byte b, System.IO.Ports.SerialDataReceivedEventArgs e ) : void
Dispose ( ) : void
OpenPort ( ) : int
SendByte ( Byte data ) : void
SerialInterface ( string _port, int _baudrate ) : System
serialPort_DataReceived ( object sender, System.IO.Ports.SerialDataReceivedEventArgs e ) : void
serialPort_ErrorReceived ( object sender, System.IO.Ports.SerialErrorReceivedEventArgs e ) : void
serialPort_PinChanged ( object sender, System.IO.Ports.SerialPinChangedEventArgs e ) : void

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void
OnSerialDataChanged ( MiDeRP.SerialDataEventArgs e ) : void

Method Details

DataSerial() public méthode

public DataSerial ( Byte b, System.IO.Ports.SerialDataReceivedEventArgs e ) : void
b Byte
e System.IO.Ports.SerialDataReceivedEventArgs
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

OnSerialDataChanged() protected méthode

protected OnSerialDataChanged ( MiDeRP.SerialDataEventArgs e ) : void
e MiDeRP.SerialDataEventArgs
Résultat void

OpenPort() public méthode

public OpenPort ( ) : int
Résultat int

SendByte() public méthode

public SendByte ( Byte data ) : void
data Byte
Résultat void

SerialInterface() public méthode

public SerialInterface ( string _port, int _baudrate ) : System
_port string
_baudrate int
Résultat System

serialPort_DataReceived() public méthode

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

serialPort_ErrorReceived() public méthode

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

serialPort_PinChanged() public méthode

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

Property Details

lastError public_oe property

public string lastError
Résultat string