C# Class Solar.Car.CanUsbWrapper

Communication with the CAN-USB cable, which is a serial port. Issues: CAN-USB
Inheritance: IDisposable
显示文件 Open project: nusolar/sc6-telemetry-code

Public Methods

Method Description
CanUsbWrapper ( ) : System
Close ( ) : void
Dispose ( ) : void
Open ( ) : void
PollPackets ( ) : void
TransmitPacket ( Can packet ) : void

Writes a CAN packet with SyncWriteLine.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
HandleLineReceived ( string InLine ) : void

Interpret line as CAN packet, update corresponding Report. Character layout of a CANUSB line, from datasheet: tiiildd...[CR]

Method Details

CanUsbWrapper() public method

public CanUsbWrapper ( ) : System
return System

Close() public method

public Close ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Open() public method

public Open ( ) : void
return void

PollPackets() public method

public PollPackets ( ) : void
return void

TransmitPacket() public method

Writes a CAN packet with SyncWriteLine.
public TransmitPacket ( Can packet ) : void
packet Can
return void