C# Class MaCRoGS.Communications.SerialTransport

Mostra file Open project: AlexAlbala/MaCRo Class Usage Examples

Protected Properties

Property Type Description
SendBuffer SafeData>.Dictionary
coder Coder
end bool
headerACK SafeSerialHeader
port System.IO.Ports.SerialPort
reSend Thread
receive Thread
sequence byte
sta SerialTransportAddress

Public Methods

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

Protected Methods

Method Description
WriteToPort ( byte buffer, int offset, int count, bool safe ) : void

Private Methods

Method 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 method

public GetTransportAddress ( ) : TransportAddress
return TransportAddress

Receive() public method

public Receive ( ) : void
return void

Send() public method

public Send ( TransportAddress t, byte data ) : void
t TransportAddress
data byte
return void

SerialTransport() public method

public SerialTransport ( SerialTransportAddress sta, int baudRate ) : System
sta SerialTransportAddress
baudRate int
return System

Start() public method

public Start ( Coder coder ) : void
coder Coder
return void

Stop() public method

public Stop ( ) : void
return void

WriteToPort() protected method

protected WriteToPort ( byte buffer, int offset, int count, bool safe ) : void
buffer byte
offset int
count int
safe bool
return void

Property Details

SendBuffer protected_oe property

protected Dictionary SendBuffer
return SafeData>.Dictionary

coder protected_oe property

protected Coder,MaCRoGS.Communications coder
return Coder

end protected_oe property

protected bool end
return bool

headerACK protected_oe property

protected SafeSerialHeader,MaCRoGS.Communications headerACK
return SafeSerialHeader

port protected_oe property

protected SerialPort,System.IO.Ports port
return System.IO.Ports.SerialPort

reSend protected_oe property

protected Thread reSend
return Thread

receive protected_oe property

protected Thread receive
return Thread

sequence protected_oe property

protected byte sequence
return byte

sta protected_oe property

protected SerialTransportAddress,MaCRoGS.Communications sta
return SerialTransportAddress