C# Class Animatroller.Framework.Expander.SerialController

Inheritance: IRunnable
Show file Open project: HakanL/animatroller

Protected Properties

Property Type Description
log Logger

Public Methods

Method Description
Run ( ) : void
SerialController ( string portName, byte address ) : System
Start ( ) : void
Stop ( ) : void

Protected Methods

Method Description
CommandReceived ( string data ) : void
SendRaw ( byte rawData ) : void
SendSerialCommand ( byte data ) : void
SendSerialCommand ( byte cmd, byte data ) : void
SendSerialCommand ( byte cmd, byte channel, byte data ) : void
SendSerialCommand ( string data ) : void

Private Methods

Method Description
lineManager_LineReceived ( object sender, LineManager e ) : void
serialPort_DataReceived ( object sender, System.IO.Ports.SerialDataReceivedEventArgs e ) : void

Method Details

CommandReceived() protected abstract method

protected abstract CommandReceived ( string data ) : void
data string
return void

Run() public method

public Run ( ) : void
return void

SendRaw() protected method

protected SendRaw ( byte rawData ) : void
rawData byte
return void

SendSerialCommand() protected method

protected SendSerialCommand ( byte data ) : void
data byte
return void

SendSerialCommand() protected method

protected SendSerialCommand ( byte cmd, byte data ) : void
cmd byte
data byte
return void

SendSerialCommand() protected method

protected SendSerialCommand ( byte cmd, byte channel, byte data ) : void
cmd byte
channel byte
data byte
return void

SendSerialCommand() protected method

protected SendSerialCommand ( string data ) : void
data string
return void

SerialController() public method

public SerialController ( string portName, byte address ) : System
portName string
address byte
return System

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

Property Details

log protected static property

protected static Logger log
return Logger