C# Class TTT.Teletype.SerialTeletypeConnectPort

Connection to a teletype via a serial port
Inheritance: ITeletypeConnectPort
Show file Open project: swindonmakers/TwitterToTeletype

Public Methods

Method Description
Close ( ) : void
Init ( string portName, int baudRate, Parity parity, int dataBits, StopBits stopBits, Handshake handShake ) : void
Open ( ) : void
ReadExisting ( ) : string
Write ( byte buffer, int offset, int count ) : void

Private Methods

Method Description
port_DataReceived ( object sender, System.IO.Ports.SerialDataReceivedEventArgs e ) : void

Method Details

Close() public method

public Close ( ) : void
return void

Init() public method

public Init ( string portName, int baudRate, Parity parity, int dataBits, StopBits stopBits, Handshake handShake ) : void
portName string
baudRate int
parity Parity
dataBits int
stopBits StopBits
handShake Handshake
return void

Open() public method

public Open ( ) : void
return void

ReadExisting() public method

public ReadExisting ( ) : string
return string

Write() public method

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void