C# Класс 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.
Наследование: ITeletype
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
SegmentEnd ( ) : void
port_DataReceived ( object sender, System.IO.Ports.SerialDataReceivedEventArgs e ) : void

Описание методов

Backspace() публичный Метод

public Backspace ( ) : void
Результат void

Bell() публичный Метод

public Bell ( ) : void
Результат void

CR() публичный Метод

public CR ( ) : void
Результат void

CRLF() публичный Метод

public CRLF ( ) : void
Результат void

Connect() публичный Метод

public Connect ( ITeletypeConnectPort port ) : void
port ITeletypeConnectPort
Результат void

Disconnect() публичный Метод

public Disconnect ( ) : void
Результат void

EncodeBytes() публичный Метод

public EncodeBytes ( string message ) : byte[]
message string
Результат byte[]

LF() публичный Метод

public LF ( ) : void
Результат void

Print() публичный Метод

public Print ( byte b ) : void
b byte
Результат void

Print() публичный Метод

public Print ( string message ) : void
message string
Результат void

SwitchOff() публичный Метод

public SwitchOff ( ) : void
Результат void

SwitchOn() публичный Метод

public SwitchOn ( ) : void
Результат void

WaitForTT() публичный Метод

public WaitForTT ( int wait ) : void
wait int
Результат void