C# Class SimTelemetry.Peripherals.Device

Inheritance: IDevice
显示文件 Open project: nlhans/SimTelemetry Class Usage Examples

Public Properties

Property Type Description
SP System.IO.Ports.SerialPort

Public Methods

Method Description
Device ( string name, int com, int baud ) : System
TX ( SimTelemetry.Objects.Peripherals.DevicePacket packet ) : void

Private Methods

Method Description
SP_DataReceived ( object sender, System.IO.Ports.SerialDataReceivedEventArgs e ) : void
TX_Sync ( SimTelemetry.Objects.Peripherals.DevicePacket devicePacket ) : void
TX_Timer_Elapsed ( object sender, System.Timers.ElapsedEventArgs e ) : void

Method Details

Device() public method

public Device ( string name, int com, int baud ) : System
name string
com int
baud int
return System

TX() public method

public TX ( SimTelemetry.Objects.Peripherals.DevicePacket packet ) : void
packet SimTelemetry.Objects.Peripherals.DevicePacket
return void

Property Details

SP public_oe property

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