SerialPortChannel 클래스
Serial 포트 통신 채널
네임스페이스: VagabondK.Protocols.Channels
어셈블리: VagabondK.Protocols.Channels.SerialPort.dll
구문
public class SerialPortChannel : Channel, IChannel, IDisposable
생성자
이름 | 설명 |
---|---|
SerialPortChannel(string, int, int, StopBits, Parity, Handshake) | 생성자 |
속성
이름 | 설명 |
---|---|
BaudRate | Baud Rate |
BytesToRead | 수신 버퍼에 있는 데이터의 바이트 수입니다. |
DataBits | Data Bits |
Description | 채널 설명 |
DtrEnable | DTR 활성화 여부 |
Handshake | Handshake |
Parity | Parity |
PortName | 포트 이름 |
RtsEnable | RTS 활성화 여부 |
SerialPort | Serial 포트 |
StopBits | Stop Bits |
메서드
이름 | 설명 |
---|---|
Close() | 채널 닫기 |
Dispose() | 리소스 해제 |
~SerialPortChannel() | 소멸자 |
Read(int) | 1 바이트 읽기 |
Read(uint, int) | 여러 개의 바이트 읽기 |
ReadAllRemain() | 채널에 남아있는 모든 바이트 읽기 |
Write(byte[]) | 바이트 배열 쓰기 |