C# Class MaCRoGS.Communications.SerialTransport

Afficher le fichier Open project: AlexAlbala/MaCRo Class Usage Examples

Protected Properties

Свойство Type Description
SendBuffer SafeData>.Dictionary
coder Coder
end bool
headerACK SafeSerialHeader
port System.IO.Ports.SerialPort
reSend Thread
receive Thread
sequence byte
sta SerialTransportAddress

Méthodes publiques

Méthode Description
GetTransportAddress ( ) : TransportAddress
Receive ( ) : void
Send ( TransportAddress t, byte data ) : void
SerialTransport ( SerialTransportAddress sta, int baudRate ) : System
Start ( Coder coder ) : void
Stop ( ) : void

Méthodes protégées

Méthode Description
WriteToPort ( byte buffer, int offset, int count, bool safe ) : void

Private Methods

Méthode Description
CreateSerialPort ( SerialTransportAddress sta, int baudRate ) : SerialPort

Override this method in order to perform a custom Serial Port initialization.

GetSequence ( ) : byte
ProcessPacket ( SerialHeader sh, byte buffer, int offset ) : void
ReSend ( ) : void

Method Details

GetTransportAddress() public méthode

public GetTransportAddress ( ) : TransportAddress
Résultat TransportAddress

Receive() public méthode

public Receive ( ) : void
Résultat void

Send() public méthode

public Send ( TransportAddress t, byte data ) : void
t TransportAddress
data byte
Résultat void

SerialTransport() public méthode

public SerialTransport ( SerialTransportAddress sta, int baudRate ) : System
sta SerialTransportAddress
baudRate int
Résultat System

Start() public méthode

public Start ( Coder coder ) : void
coder Coder
Résultat void

Stop() public méthode

public Stop ( ) : void
Résultat void

WriteToPort() protected méthode

protected WriteToPort ( byte buffer, int offset, int count, bool safe ) : void
buffer byte
offset int
count int
safe bool
Résultat void

Property Details

SendBuffer protected_oe property

protected Dictionary SendBuffer
Résultat SafeData>.Dictionary

coder protected_oe property

protected Coder,MaCRoGS.Communications coder
Résultat Coder

end protected_oe property

protected bool end
Résultat bool

headerACK protected_oe property

protected SafeSerialHeader,MaCRoGS.Communications headerACK
Résultat SafeSerialHeader

port protected_oe property

protected SerialPort,System.IO.Ports port
Résultat System.IO.Ports.SerialPort

reSend protected_oe property

protected Thread reSend
Résultat Thread

receive protected_oe property

protected Thread receive
Résultat Thread

sequence protected_oe property

protected byte sequence
Résultat byte

sta protected_oe property

protected SerialTransportAddress,MaCRoGS.Communications sta
Résultat SerialTransportAddress