C# Class sharp_arduino_serial_packet_lib.SerialPortReaderWriter.SerialPortManager

Manager for serial port data
Inheritance: IDisposable
Exibir arquivo Open project: jeroendoggen/Arduino-serial-messaging

Public Methods

Method 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

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method 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 method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

SendSerialData() public method

Send serial byte array to serialport
public SendSerialData ( string data ) : void
data string
return void

SerialPortManager() public method

public SerialPortManager ( ) : System
return System

StartUsingPort() public method

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

StopUsingPort() public method

Closes the serial port
public StopUsingPort ( ) : void
return void