C# 클래스 System.IO.Ports.SerialInterruptPort

Provides a connection to a serial communications port that supports line delimited reading and interruptable writing, including timeouts and DataReceived event implementation.
상속: SerialInterruptPortBase, ISerialPort, IDisposable
파일 보기 프로젝트 열기: toxsedyshev/imBMW

공개 프로퍼티들

프로퍼티 타입 설명
BusyValue bool

보호된 프로퍼티들

프로퍼티 타입 설명
_busy Microsoft.SPOT.Hardware.InterruptPort

공개 메소드들

메소드 설명
Dispose ( ) : void

Releases resources used by a serial port.

SerialInterruptPort ( SerialPortConfiguration config ) : System

Creates a new instance of SerialInterruptPort class, with hardware flow control and output pausing disabled. This corresponds to standard SerialPort class behavior.

SerialInterruptPort ( SerialPortConfiguration config, Cpu busySignal, int writeBufferSize, int readBufferSize, int readTimeout = Timeout.Infinite ) : System

Creates a new instance of SerialInterruptPort class, allowing to specify buffer sizes and blocking input port.

비공개 메소드들

메소드 설명
OnBusyChanged ( uint port, uint state, System.DateTime time ) : void

메소드 상세

Dispose() 공개 메소드

Releases resources used by a serial port.
public Dispose ( ) : void
리턴 void

SerialInterruptPort() 공개 메소드

Creates a new instance of SerialInterruptPort class, with hardware flow control and output pausing disabled. This corresponds to standard SerialPort class behavior.
public SerialInterruptPort ( SerialPortConfiguration config ) : System
config SerialPortConfiguration An object that contains the configuration information for the serial port.
리턴 System

SerialInterruptPort() 공개 메소드

Creates a new instance of SerialInterruptPort class, allowing to specify buffer sizes and blocking input port.
public SerialInterruptPort ( SerialPortConfiguration config, Cpu busySignal, int writeBufferSize, int readBufferSize, int readTimeout = Timeout.Infinite ) : System
config SerialPortConfiguration An object that contains the configuration information for the serial port.
busySignal Microsoft.SPOT.Hardware.Cpu A to use as a output hardware flow control. Can be if none used.
writeBufferSize int The size of output buffer in bytes. Data output is paused for milliseconds every time this amount of data is sent. Can be zero to disable pausing.
readBufferSize int The size of input buffer in bytes. DataReceived event will fire only after this amount of data is received. Default is 1.
readTimeout int Timeout of port reading.
리턴 System

프로퍼티 상세

BusyValue 공개적으로 프로퍼티

The value of input pin when pauding the data output is requested. Default is true, that is, the input is of active high type.
public bool BusyValue
리턴 bool

_busy 보호되어 있는 프로퍼티

protected InterruptPort,Microsoft.SPOT.Hardware _busy
리턴 Microsoft.SPOT.Hardware.InterruptPort