C# Class ControlSystem.SerialSTK

Class for functions to communicating with the STK kit.(Serial communication.)
Show file Open project: syre/SortingIndustrialRobot Class Usage Examples

Public Methods

Method Description
Close ( ) : bool

Closes for communication

Open ( ) : bool

Opens for communication

ReadADC ( ) : double

Reads an ADC value

SerialSTK ( int baud = 9600, Parity parity = Parity.None, int dataBits = 8, StopBits stopBits = StopBits.One ) : System

Classconstructor

Method Details

Close() public method

Closes for communication
public Close ( ) : bool
return bool

Open() public method

Opens for communication
public Open ( ) : bool
return bool

ReadADC() public method

Reads an ADC value
public ReadADC ( ) : double
return double

SerialSTK() public method

Classconstructor
public SerialSTK ( int baud = 9600, Parity parity = Parity.None, int dataBits = 8, StopBits stopBits = StopBits.One ) : System
baud int baudrate (has to be the same as the STK-kit)
parity Parity Parity
dataBits int Databits
stopBits StopBits Stopbits
return System