C# Class 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.
Inheritance: SerialInterruptPortBase, ISerialPort, IDisposable
Afficher le fichier Open project: toxsedyshev/imBMW

Méthodes publiques

Свойство Type Description
BusyValue bool

Protected Properties

Свойство Type Description
_busy Microsoft.SPOT.Hardware.InterruptPort

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
OnBusyChanged ( uint port, uint state, System.DateTime time ) : void

Method Details

Dispose() public méthode

Releases resources used by a serial port.
public Dispose ( ) : void
Résultat void

SerialInterruptPort() public méthode

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.
Résultat System

SerialInterruptPort() public méthode

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.
Résultat System

Property Details

BusyValue public_oe property

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
Résultat bool

_busy protected_oe property

protected InterruptPort,Microsoft.SPOT.Hardware _busy
Résultat Microsoft.SPOT.Hardware.InterruptPort