C# Class Rover.MicrocontrollerSingleton

Datei anzeigen Open project: jpadillak/Concordia_Capstone2013-14 Class Usage Examples

Public Methods

Method Description
CloseCommunications ( ) : void
Initialize ( ) : bool
Initialize ( string portName, int baud = 9600, int readTimeout = 500, int writeTimeout = 500 ) : bool
SetQueue ( IQueue Messagebox ) : void
WriteMessage ( string message ) : bool

Private Methods

Method Description
CommandReadyEvent ( object sender, System.IO.Ports.SerialDataReceivedEventArgs e ) : void
MicrocontrollerSingleton ( ) : System

Method Details

CloseCommunications() public method

public CloseCommunications ( ) : void
return void

Initialize() public method

public Initialize ( ) : bool
return bool

Initialize() public method

public Initialize ( string portName, int baud = 9600, int readTimeout = 500, int writeTimeout = 500 ) : bool
portName string
baud int
readTimeout int
writeTimeout int
return bool

SetQueue() public method

public SetQueue ( IQueue Messagebox ) : void
Messagebox IQueue
return void

WriteMessage() public method

public WriteMessage ( string message ) : bool
message string
return bool