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
Exibir arquivo Open project: swindonmakers/TwitterToTeletype

Public Methods

Method 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

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

Method Details

Backspace() public method

public Backspace ( ) : void
return void

Bell() public method

public Bell ( ) : void
return void

CR() public method

public CR ( ) : void
return void

CRLF() public method

public CRLF ( ) : void
return void

Connect() public method

public Connect ( ITeletypeConnectPort port ) : void
port ITeletypeConnectPort
return void

Disconnect() public method

public Disconnect ( ) : void
return void

EncodeBytes() public method

public EncodeBytes ( string message ) : byte[]
message string
return byte[]

LF() public method

public LF ( ) : void
return void

Print() public method

public Print ( byte b ) : void
b byte
return void

Print() public method

public Print ( string message ) : void
message string
return void

SwitchOff() public method

public SwitchOff ( ) : void
return void

SwitchOn() public method

public SwitchOn ( ) : void
return void

WaitForTT() public method

public WaitForTT ( int wait ) : void
wait int
return void