C# 클래스 CyrusBuilt.MonoPi.IO.Serial.SerialCommandQueueProcessor

Serial command queue processor.
상속: IDisposable
파일 보기 프로젝트 열기: cyrusbuilt/MonoPi

공개 메소드들

메소드 설명
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Call Dispose when you are finished using the CyrusBuilt.MonoPi.IO.Serial.SerialCommandQueueProcessor. The Dispose method leaves the CyrusBuilt.MonoPi.IO.Serial.SerialCommandQueueProcessor in an unusable state. After calling Dispose, you must release all references to the CyrusBuilt.MonoPi.IO.Serial.SerialCommandQueueProcessor so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.IO.Serial.SerialCommandQueueProcessor was occupying.

Enqueue ( String data ) : void

Enqueue the specified serial command data.

SerialCommandQueueProcessor ( Rs232SerialPort serial ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.IO.Serial.SerialCommandQueueProcessor class with the serial port to queue commands for. This overload uses the default delay value.

SerialCommandQueueProcessor ( Rs232SerialPort serial, Int32 delay ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.IO.Serial.SerialCommandQueueProcessor class with the serial port to queue commands for and the delay between processing of commands.

Start ( ) : void

Starts processing the command queue.

Stop ( ) : void

Stops processing the command queue.

비공개 메소드들

메소드 설명
ProcessQueue ( ) : void

Processes the queue.

메소드 상세

Dispose() 공개 메소드

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Call Dispose when you are finished using the CyrusBuilt.MonoPi.IO.Serial.SerialCommandQueueProcessor. The Dispose method leaves the CyrusBuilt.MonoPi.IO.Serial.SerialCommandQueueProcessor in an unusable state. After calling Dispose, you must release all references to the CyrusBuilt.MonoPi.IO.Serial.SerialCommandQueueProcessor so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.IO.Serial.SerialCommandQueueProcessor was occupying.
public Dispose ( ) : void
리턴 void

Enqueue() 공개 메소드

Enqueue the specified serial command data.
/// This instance has been disposed. /// /// cannot be null. ///
public Enqueue ( String data ) : void
data String /// The command data to enqueue. ///
리턴 void

SerialCommandQueueProcessor() 공개 메소드

Initializes a new instance of the CyrusBuilt.MonoPi.IO.Serial.SerialCommandQueueProcessor class with the serial port to queue commands for. This overload uses the default delay value.
public SerialCommandQueueProcessor ( Rs232SerialPort serial ) : System
serial Rs232SerialPort /// The serial port to queue commands for. ///
리턴 System

SerialCommandQueueProcessor() 공개 메소드

Initializes a new instance of the CyrusBuilt.MonoPi.IO.Serial.SerialCommandQueueProcessor class with the serial port to queue commands for and the delay between processing of commands.
/// cannot be null. ///
public SerialCommandQueueProcessor ( Rs232SerialPort serial, Int32 delay ) : System
serial Rs232SerialPort /// The serial port to queue commands for. ///
delay System.Int32 /// The amount of time (in milliseconds) to delay between commands. ///
리턴 System

Start() 공개 메소드

Starts processing the command queue.
/// This instance has been disposed. ///
public Start ( ) : void
리턴 void

Stop() 공개 메소드

Stops processing the command queue.
public Stop ( ) : void
리턴 void