C# Class Earlz.MonoSump.Core.Serial

Inheritance: IPort, IDisposable
显示文件 Open project: Earlz/monosump

Public Properties

Property Type Description
SerialPort System.IO.Ports.SerialPort

Public Methods

Method Description
Dispose ( ) : void
ReadByte ( int timeout ) : byte?
ReadByteIfAvailable ( ) : byte?
Serial ( string name, int baudrate ) : System
WriteByte ( byte value ) : void
WriteBytes ( byte values ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

ReadByte() public method

public ReadByte ( int timeout ) : byte?
timeout int
return byte?

ReadByteIfAvailable() public method

public ReadByteIfAvailable ( ) : byte?
return byte?

Serial() public method

public Serial ( string name, int baudrate ) : System
name string
baudrate int
return System

WriteByte() public method

public WriteByte ( byte value ) : void
value byte
return void

WriteBytes() public method

public WriteBytes ( byte values ) : void
values byte
return void

Property Details

SerialPort public_oe property

public SerialPort,System.IO.Ports SerialPort
return System.IO.Ports.SerialPort