C# 클래스 Queue.Hub.Svetovod.SvetovodConnection

상속: IDisposable
파일 보기 프로젝트 열기: breslavsky/queue

보호된 프로퍼티들

프로퍼티 타입 설명
disposed bool
logger Logger
receivedBytes List
receivedResetEvent System.Threading.ManualResetEvent

공개 메소드들

메소드 설명
Dispose ( ) : void
SvetovodConnection ( string port ) : NLog

보호된 메소드들

메소드 설명
CreateBody ( byte data ) : byte[]
CreateHeader ( byte sysnum, byte com1, byte com2, byte com3 ) : byte[]
Dispose ( bool disposing ) : void
OnDispose ( ) : void
WriteToPort ( byte bytes ) : void
WriteToPort ( byte header, byte body ) : void

비공개 메소드들

메소드 설명
CleanupReceivedData ( List data ) : void
High ( int num ) : byte
Low ( int num ) : byte
Port_DataReceived ( object sender, System.IO.Ports.SerialDataReceivedEventArgs e ) : void
Port_ErrorReceived ( object sender, System.IO.Ports.SerialErrorReceivedEventArgs e ) : void

메소드 상세

CreateBody() 보호된 정적인 메소드

protected static CreateBody ( byte data ) : byte[]
data byte
리턴 byte[]

CreateHeader() 보호된 정적인 메소드

protected static CreateHeader ( byte sysnum, byte com1, byte com2, byte com3 ) : byte[]
sysnum byte
com1 byte
com2 byte
com3 byte
리턴 byte[]

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

OnDispose() 보호된 메소드

protected OnDispose ( ) : void
리턴 void

SvetovodConnection() 공개 메소드

public SvetovodConnection ( string port ) : NLog
port string
리턴 NLog

WriteToPort() 보호된 메소드

protected WriteToPort ( byte bytes ) : void
bytes byte
리턴 void

WriteToPort() 보호된 메소드

protected WriteToPort ( byte header, byte body ) : void
header byte
body byte
리턴 void

프로퍼티 상세

disposed 보호되어 있는 프로퍼티

protected bool disposed
리턴 bool

logger 보호되어 있는 프로퍼티

protected Logger logger
리턴 Logger

receivedBytes 보호되어 있는 프로퍼티

protected List receivedBytes
리턴 List

receivedResetEvent 보호되어 있는 프로퍼티

protected ManualResetEvent,System.Threading receivedResetEvent
리턴 System.Threading.ManualResetEvent