C# Class TTT.Teletype.TeletypeViaAtmega

Represents a Teletype connected via the hackspaces AtMega interface that allows the Teletype to be turned on and off as well as translating messages from 9600 baud to the 110 baud required for the teletype. The Serial conversion has a limited buffer, so this class deals with that by breaking longer messages into short segments and allowing time for the buffer to be forwarded to the Teletype.
Inheritance: ITeletype
Afficher le fichier Open project: swindonmakers/TwitterToTeletype

Méthodes publiques

Méthode Description
Backspace ( ) : void
Bell ( ) : void
CR ( ) : void
CRLF ( ) : void
Connect ( ITeletypeConnectPort port ) : void
Disconnect ( ) : void
EncodeBytes ( string message ) : byte[]
LF ( ) : void
Print ( byte b ) : void
Print ( string message ) : void
SwitchOff ( ) : void
SwitchOn ( ) : void
WaitForTT ( int wait ) : void

Private Methods

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

Method Details

Backspace() public méthode

public Backspace ( ) : void
Résultat void

Bell() public méthode

public Bell ( ) : void
Résultat void

CR() public méthode

public CR ( ) : void
Résultat void

CRLF() public méthode

public CRLF ( ) : void
Résultat void

Connect() public méthode

public Connect ( ITeletypeConnectPort port ) : void
port ITeletypeConnectPort
Résultat void

Disconnect() public méthode

public Disconnect ( ) : void
Résultat void

EncodeBytes() public méthode

public EncodeBytes ( string message ) : byte[]
message string
Résultat byte[]

LF() public méthode

public LF ( ) : void
Résultat void

Print() public méthode

public Print ( byte b ) : void
b byte
Résultat void

Print() public méthode

public Print ( string message ) : void
message string
Résultat void

SwitchOff() public méthode

public SwitchOff ( ) : void
Résultat void

SwitchOn() public méthode

public SwitchOn ( ) : void
Résultat void

WaitForTT() public méthode

public WaitForTT ( int wait ) : void
wait int
Résultat void