C# 클래스 AGENT.Contrib.Hardware.Bluetooth.Connection

상속: IDisposable, IConnection
파일 보기 프로젝트 열기: nothingmn/AGENT.Contrib

공개 메소드들

메소드 설명
Close ( ) : void
Connection ( string port, IChannel channel, int baudRate = 9600, Parity parity = Parity.None, int dataBits = 8, StopBits stopBits = StopBits.One ) : System
Dispose ( ) : void
Open ( ) : void
Write ( object data ) : void
_port_DataReceived ( object sender, System.IO.Ports.SerialDataReceivedEventArgs e ) : void

보호된 메소드들

메소드 설명
GetBytes ( SerialPort port ) : byte[]

Get a byte[] from the serial port. Will keep reading until the port returns a 0. 0 bytes were read on the port

비공개 메소드들

메소드 설명
CombineArrays ( byte source, byte destination ) : byte[]

Append source to the end of destination Resize or new up destination if needed. We assume that destination is full, so no need to keep track of the last byte used, just extend and copy source into

메소드 상세

Close() 공개 메소드

public Close ( ) : void
리턴 void

Connection() 공개 메소드

public Connection ( string port, IChannel channel, int baudRate = 9600, Parity parity = Parity.None, int dataBits = 8, StopBits stopBits = StopBits.One ) : System
port string
channel IChannel
baudRate int
parity Parity
dataBits int
stopBits StopBits
리턴 System

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

GetBytes() 보호된 메소드

Get a byte[] from the serial port. Will keep reading until the port returns a 0. 0 bytes were read on the port
protected GetBytes ( SerialPort port ) : byte[]
port System.IO.Ports.SerialPort
리턴 byte[]

Open() 공개 메소드

public Open ( ) : void
리턴 void

Write() 공개 메소드

public Write ( object data ) : void
data object
리턴 void

_port_DataReceived() 공개 메소드

public _port_DataReceived ( object sender, System.IO.Ports.SerialDataReceivedEventArgs e ) : void
sender object
e System.IO.Ports.SerialDataReceivedEventArgs
리턴 void