C# Class sharp_arduino_serial_packet_lib.SerialPortReaderWriter.SerialPortManager

Manager for serial port data
Inheritance: IDisposable
Afficher le fichier Open project: jeroendoggen/Arduino-serial-messaging

Méthodes publiques

Méthode Description
Dispose ( ) : void
SendSerialData ( string data ) : void

Send serial byte array to serialport

SerialPortManager ( ) : System
StartUsingPort ( ) : void

Connects to a serial port defined through the current settings

StopUsingPort ( ) : void

Closes the serial port

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
UpdateBaudRateCollection ( ) : void

Retrieves the current selected device's COMMPROP structure, and extracts the dwSettableBaud property

_currentSerialSettings_PropertyChanged ( object sender, System e ) : void
_serialPort_DataReceived ( object sender, System.IO.Ports.SerialDataReceivedEventArgs e ) : void

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

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

SendSerialData() public méthode

Send serial byte array to serialport
public SendSerialData ( string data ) : void
data string
Résultat void

SerialPortManager() public méthode

public SerialPortManager ( ) : System
Résultat System

StartUsingPort() public méthode

Connects to a serial port defined through the current settings
public StartUsingPort ( ) : void
Résultat void

StopUsingPort() public méthode

Closes the serial port
public StopUsingPort ( ) : void
Résultat void