C# 클래스 MaCRo.Communications.SerialTransport

파일 보기 프로젝트 열기: AlexAlbala/MaCRo 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
SendBuffer MaCRo.Tools.Dictionary
coder Coder
end bool
headerACK SafeSerialHeader
port System.IO.Ports.SerialPort
reSend Thread
receive Thread
sequence byte
sta SerialTransportAddress

공개 메소드들

메소드 설명
GetTransportAddress ( ) : TransportAddress
Receive ( ) : void
Send ( TransportAddress t, byte data ) : void
SerialTransport ( SerialTransportAddress sta, int baudRate ) : System
Start ( Coder coder ) : void
Stop ( ) : void

보호된 메소드들

메소드 설명
WriteToPort ( byte buffer, int offset, int count, bool safe ) : void

비공개 메소드들

메소드 설명
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

메소드 상세

GetTransportAddress() 공개 메소드

public GetTransportAddress ( ) : TransportAddress
리턴 TransportAddress

Receive() 공개 메소드

public Receive ( ) : void
리턴 void

Send() 공개 메소드

public Send ( TransportAddress t, byte data ) : void
t TransportAddress
data byte
리턴 void

SerialTransport() 공개 메소드

public SerialTransport ( SerialTransportAddress sta, int baudRate ) : System
sta SerialTransportAddress
baudRate int
리턴 System

Start() 공개 메소드

public Start ( Coder coder ) : void
coder Coder
리턴 void

Stop() 공개 메소드

public Stop ( ) : void
리턴 void

WriteToPort() 보호된 메소드

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

프로퍼티 상세

SendBuffer 보호되어 있는 프로퍼티

protected Dictionary,MaCRo.Tools SendBuffer
리턴 MaCRo.Tools.Dictionary

coder 보호되어 있는 프로퍼티

protected Coder,MaCRo.Communications coder
리턴 Coder

end 보호되어 있는 프로퍼티

protected bool end
리턴 bool

headerACK 보호되어 있는 프로퍼티

protected SafeSerialHeader,MaCRo.Communications headerACK
리턴 SafeSerialHeader

port 보호되어 있는 프로퍼티

protected SerialPort,System.IO.Ports port
리턴 System.IO.Ports.SerialPort

reSend 보호되어 있는 프로퍼티

protected Thread reSend
리턴 Thread

receive 보호되어 있는 프로퍼티

protected Thread receive
리턴 Thread

sequence 보호되어 있는 프로퍼티

protected byte sequence
리턴 byte

sta 보호되어 있는 프로퍼티

protected SerialTransportAddress,MaCRo.Communications sta
리턴 SerialTransportAddress