C# Class ControlSystem.SerialSTK

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

Méthodes publiques

Méthode 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 méthode

Closes for communication
public Close ( ) : bool
Résultat bool

Open() public méthode

Opens for communication
public Open ( ) : bool
Résultat bool

ReadADC() public méthode

Reads an ADC value
public ReadADC ( ) : double
Résultat double

SerialSTK() public méthode

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
Résultat System