C# Class TTT.Teletype.SerialTeletypeConnectPort

Connection to a teletype via a serial port
Inheritance: ITeletypeConnectPort
Afficher le fichier Open project: swindonmakers/TwitterToTeletype

Méthodes publiques

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

Méthode Description
port_DataReceived ( object sender, System.IO.Ports.SerialDataReceivedEventArgs e ) : void

Method Details

Close() public méthode

public Close ( ) : void
Résultat void

Init() public méthode

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
Résultat void

Open() public méthode

public Open ( ) : void
Résultat void

ReadExisting() public méthode

public ReadExisting ( ) : string
Résultat string

Write() public méthode

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
Résultat void