C# Class NapkinCommon.ThreadedSerialDevice

显示文件 Open project: cjdaly/napkin

Public Methods

Method Description
IsNewline ( char c ) : bool
ThreadedSerialDevice ( string serialPortName = Serial.COM1 ) : System
Write ( byte data ) : void
Write ( string text ) : void
WriteLine ( string text ) : void

Private Methods

Method Description
Init ( ) : void
ReadLoop ( ) : void
WriteLoop ( ) : void

Method Details

IsNewline() public method

public IsNewline ( char c ) : bool
c char
return bool

ThreadedSerialDevice() public method

public ThreadedSerialDevice ( string serialPortName = Serial.COM1 ) : System
serialPortName string
return System

Write() public method

public Write ( byte data ) : void
data byte
return void

Write() public method

public Write ( string text ) : void
text string
return void

WriteLine() public method

public WriteLine ( string text ) : void
text string
return void